/*
Author: NeoSynaptica
Author URL: http://neosynaptica.com
License: Creative Commons Attribution 3.0 Unported
License URL: http://creativecommons.org/licenses/by/3.0/
--*/

/* FORZAR A OCULTAR EL DESBORDAMIENTO HORIZONTAL */
/* html {
  scroll-behavior: smooth;
} */
html, body {
    overflow-x: hidden;
}

body {
    font-family: 'Bebas Neue', sans-serif;
    margin: 0;
    padding: 0;
    background: #fff;
}

body a {
    transition: 0.5s all;
    -webkit-transition: 0.5s all;
    -moz-transition: 0.5s all;
    -o-transition: 0.5s all;
    -ms-transition: 0.5s all;
}

h1,h2,h3,h4,h5,h6 {
    margin: 0;
}

p {
    margin: 0;
}

ul {
    margin: 0;
    padding: 0;
}

/* --- Estilos del Preloader --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #03466E;
    background: linear-gradient(to right, #03466E 0%, #0277a8 50%, #00ADEF 100%);
}

.spinner-container {
    text-align: center;
}

.logo-spinner {
    max-width: 200px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/*-- header --*/
.header {
    padding: 10px 0;
    background: linear-gradient(to right, #03466E 0%, #0277a8 50%, #00ADEF 100%);
    position: relative;
}
.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
}


.header-left {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

/* ESTILOS GENERALES PARA LOGOS IZQUIERDOS - TAMAÑO GRANDE POR DEFECTO */
/* === NUEVA SOLUCIÓN FLEXIBLE PARA LOGOS === */
.header-left a {
    display: inline-flex; /* Usamos flexbox para centrar verticalmente */
    align-items: center;
    height: 55px;         /* Mantenemos una altura consistente para el espacio de cada logo */
    margin-right: 15px;
}
.header-left a .thumbnail-preview {
    height: 100%;          /* La imagen intenta llenar la altura del contenedor (55px) */
    width: auto;           /* El ancho se ajusta para mantener la proporción y no deformarse */
    max-width: 170px;      /* ¡LA CLAVE! Evita que los logos muy anchos se extiendan demasiado */
}

.header-right {
    display: flex;
    align-items: center;
}
.header-right .nav1 {
    margin: 0;
    padding: 0;
    list-style: none;
}
.header-right .nav1 > li {
    display: inline-block;
    position: relative;
    margin-left: 15px;
}
.header-right .nav1 > li > a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    padding: 5px 0;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    min-width: 180px;
    padding: 10px 0;
    list-style: none;
    background-color: #03466E;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
}
.header-right .nav1 li:hover > .submenu {
    display: block;
}
.submenu li a {
    display: block;
    padding: 8px 20px;
    color: #ffffff !important;
    text-decoration: none;
    white-space: nowrap;
}
.submenu li a:hover {
    background-color: #0277a8;
}
/*-- //header --*/


/*-- banner --*/
.banner {
    position: relative;
    width: 100%;
    min-height: 70vh;
    background-color: #03466E;
    overflow: hidden;
}

.callbacks_container {
    position: relative;
    width: 100%;
    height: 70vh;
}

.rslides {
    position: relative;
    list-style: none;
    overflow: hidden;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
}

.rslides li {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    -webkit-backface-visibility: hidden;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-info {
    text-align: center;
    color: white;
    width: 75%;
    max-width: 1200px;
    z-index: 10;
    padding: 60px 40px;
    background-color: rgba(3, 70, 110, 0.7);
    border-radius: 10px;
}

.banner-info h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
}

.banner-info p {
    font-size: 2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

.start {
    margin-top: 30px;
}

.start a {
    color: #ffffff;
    font-size: 16px;
    border: 2px solid #ffffff;
    border-radius: 55px;
    padding: 16px 30px;
    font-weight: 500;
    display: inline-block;
    text-decoration: none;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.start a:hover {
    background: #ffffff;
    border: 2px solid #03466E;
    color: #03466E;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.callbacks_tabs {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 10;
    list-style: none;
    gap: 10px;
}

.callbacks_tabs li a {
    display: block;
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    text-indent: -9999px;
}

.callbacks_tabs li.callbacks_here a {
    background-color: #ffffff;
}

.rslides img {
    display: none;
}
/*-- //banner --*/


.about-info h3{
  font-size: 36px;
  margin: 0 0 20px 0;
  color: #ffffff;
  font-weight: bold;
  text-align: center;
  display: inline-block;
  padding: 8px 15px;
  border-radius: 5px;
  background: linear-gradient(to right, #03466E 0%, #0277a8 50%, #00ADEF 100%);
}
.approach-right h3{
    font-size:36px;
    margin: 40px 0 40px 0;
    color:#ffffff;
    font-weight:bold;
    padding: 8px 15px;
    border-radius: 5px;
    background: linear-gradient(to right, #03466E 0%, #0277a8 50%, #00ADEF 100%);
    display: inline-block;
    white-space: nowrap;
}
/* Estilos para la sección about */
.about {
  background-image: url('../img/pic1.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 5px 0;
  position: relative;
}

.about-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px;
  text-align: center;
  color: white;
}
.about-info p {
  color: #ffffff;
  margin: 0 0 20px 0;
  font-family: 'Myriad Pro', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.8em;
}
.about-info p:nth-child(3) {
  margin: 0 0 54px 0;
}
.about-info a {
    color: #ffffff;
    font-size: 16px;
    border: 2px solid #ffffff;
    border-radius: 55px;
    padding: 16px 30px;
    font-weight: 500;
    display: inline-block;
    text-decoration: none;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.about-info a:hover {
    background: #ffffff;
    border: 2px solid #03466E;
    color: #03466E;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.about-info .text-background {
    background-color: rgba(3, 70, 110, 0.7);
    padding: 25px;
    border-radius: 10px;
    margin: 0 auto 30px auto;
    max-width: 950px;
}

.about-info .text-background h3,
.about-info .text-background p {
    color: #ffffff;
}
.behind {
    background: linear-gradient(to right, #03466E 0%, #0277a8 50%, #00ADEF 100%);
    padding: 50px 0;
}
.behind p {
    margin: 0 auto;
    width: 75%;
    line-height: 1.5em;
    color: #FF1111;
    font-family: 'Style Script', cursive;
    font-size: 55px;
    text-align: center;
    font-weight: 400;
    text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
}
.approach-left{
width:48%;
float:left;
}
.about-left{
width:38%;
float:left;
}
.approach-right{
width:47%;
float:right;
}
.approach-right p {
  color: #242424;
  margin: 0 0 20px 0;
  font-family: myriad pro;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.8em;
}
.about-right{
width:50%;
float:right;
}
.approach-left img{
width:100%;
}
.kick {
    background:url(../img/pic3.jpg) no-repeat 0px 0px;
    background-size:cover;
    padding: 70px 0 0 0;
    min-height: 310px;
}
.kick p{
margin: 0 auto;
width: 75%;
line-height: 1.5em;
color:#ffffff;
font-size:36px;
text-align:center;
font-weight:400;
}
.services h3 {
  font-size: 36px;
  margin: 0 0 20px 0;
  color: #ffffff;
  font-weight: bold;
  text-align: center;
  display: inline-block;
  padding: 8px 15px;
  border-radius: 5px;
  background: linear-gradient(to right, #03466E 0%, #0277a8 50%, #00ADEF 100%);
}
.services-right ul {
padding:0;
margin:0;
}
.services-list {
    background: rgb(13 33 83 / 0.54); /* Mayor opacidad */
    padding: 40px 20px;
    border-radius: 8px;
}
/* ESTILO CORREGIDO para las viñetas - alineación superior */
.services-right ul li {
    list-style-type: none;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.6em;
    padding: 8px 0 8px 35px;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
    position: relative;
    min-height: 30px;
}
/* Eliminamos cualquier estilo duplicado que pueda estar causando viñetas dobles */
.services-right ul li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px; /* Alineado con la primera línea de texto */
    width: 22px;
    height: 22px;
    background: url(../img/pic10.png) no-repeat center center;
    background-size: contain;
}


.services-right {
float:right;
width:50%;
}
.services-left {
    float: left;
    width: 37%;
    padding: 53px 0 0 144px;
    margin-bottom: 30px; /* Añade espacio en la parte inferior */
}
.services-grids {
    background: url(../img/pic4.png) no-repeat 0px 0px;
    background-size: cover;
    padding: 70px 0 0 0;
    min-height: 382px;
}
.services-left p {
    color: #ffffff; /* Cambié a color oscuro para mejor contraste */
    margin: 0 0 20px 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.8em;
    background-color: rgb(13 33 83 / 0.54); /* Fondo semitransparente */
    padding: 15px;
    border-radius: 5px;
}
.services-left a {
    color: #03466E;
    font-size: 16px;
    border: 2px solid #03466E;
    border-radius: 55px;
    padding: 12px 25px;
    font-weight: 500;
    display: inline-block;
    text-decoration: none;
    margin-top: 15px;
    transition: all 0.3s ease;
    background-color: white;
}

.services-left a:hover {
    background: #03466E;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/*---- Nav ---*/
.nbs-flexisel-nav-left, .nbs-flexisel-nav-right {
    width:24px;
    height:36px;
    position: absolute;
    cursor: pointer;
    z-index: 100;
}
.nbs-flexisel-nav-left {
left: -4.3%;
top: 20% !important;
background: url(../img/themes.png) no-repeat 0px 0px;
}
.nbs-flexisel-nav-right {
right: -4.3%;
top: 20% !important;
background: url(../img/themes.png) no-repeat -24px 0px;
}

.clients h3 {
    font-size: 36px;
    margin-bottom: 50px;
    color: #ffffff;
    font-weight: bold;
    text-align: center;
    display: inline-block;
    padding: 8px 15px;
    border-radius: 5px;
    background: linear-gradient(to right, #03466E 0%, #0277a8 50%, #00ADEF 100%);
}
.clients {
    background: #0e2662;
    padding: 30px 0;
    text-align: center;
}

.flex-slider {
    margin-top: 30px;
}
.keep{
background:url(../img/banner2.png) no-repeat 0px 0px;
    background-size:cover;
     padding: 10px 0;
}
.keep h3 {
    font-size: 36px;
    color: #ffffff;
    font-weight: 400;
    text-align: center;
    padding: 25px 30px;
    width: 58%;
    border-radius: 88px;
    background: linear-gradient(to right, #03466E 0%, #0277a8 50%, #00ADEF 100%);

    /* ANTES: margin: 0 auto; */
    /* AHORA: Añadimos 30px de margen arriba para bajarlo */
    margin: 30px auto 0 auto;
}

.keep ul {
    padding: 0;
    text-align: center;
    
    /* ANTES: margin: 80px 0 0 0; */
    /* AHORA: Reducimos el margen para acercar los íconos al título */
    margin: 40px 0 0 0;
}
.keep ul li{
    display:inline-block;
    list-style-type:none;
    margin: 0 8px;
    }
.keep ul li a.facebook{
    background: url(../img/social.png) no-repeat 0px 0px;
    display: block;
    width: 48px;
    height: 48px;
    }
.keep ul li a.facebook:hover{
    background: url(../img/social2.png) no-repeat 0px 0px;
    transform: rotateY(360deg);
    }
.keep ul li a.twitter{
    background: url(../img/social.png) no-repeat -57px 0px;
    display: block;
    width: 48px;
    height: 48px;
    }
.keep ul li a.twitter:hover{
    background: url(../img/social2.png) no-repeat -57px 0px;
    transform: rotateY(360deg);
    }
.keep ul li a.googl{
    background: url(../img/social.png) no-repeat -116px 0px;
    display: block;
    width: 48px;
    height: 48px;
    }
.keep ul li a.googl:hover{
    background: url(../img/social2.png) no-repeat -116px 0px;
    transform: rotateY(360deg);
    }
.keep ul li a.message{
    background: url(../img/social.png) no-repeat -175px 0px;
    display: block;
    width: 48px;
    height: 48px;
    }
.keep ul li a.message:hover{
    background: url(../img/social2.png) no-repeat -175px 0px;
    transition: .5s all;
    -webkit-transition: .5s all;
    -o-transition: .5s all;
    -ms-transition: .5s all;
    -moz-transition: .5s all;
    transform: rotateY(360deg);
    }
.footer{
  padding: 15px 0;
  background: linear-gradient(to right, #03466E 0%, #0277a8 50%, #00ADEF 100%);
}
.footer p:nth-child(2){
margin-top:15px;
}
.footer p{
margin:0;
font-size:18px;
color:#ffffff;
text-align:center;
}
.footer p a{
color:#ffffff;
}
.footer p a:hover{
  border-bottom: 2px dashed #ffffff;
  padding-bottom: 5px;
}
/*-- to-top --*/
#toTop {
    display: none;
    text-decoration: none;
    position: fixed;
    bottom: 12px;
    right: 1%;
    overflow: hidden;
    z-index: 999;
    width: 40px;
    height: 40px;
    border: none;
    background-color: #00ADEF;
    color: #ffffff;
    text-align: center;
    line-height: 40px;
    font-size: 24px;
    border-radius: 50%;
}
#toTop:hover {
    background-color: #FF9000;
}
/*-- //to-top --*/
/*-- contact --*/
.contact {
padding: 70px 0;
    }
.contact-info {
    margin-bottom: 52px;
    }
.contact-left{
    width:30%;
    float:left;
    }
.contact-right{
    width:68%;
    float:right;
    }
.contact-left input[type="text"]{
    width: 93%;
    color:#4038ae;
    margin: 0 23px 23px 0;
    font-size:16px;
    padding: 12px 10px;
    outline: none;
    border: 1px solid #e8e8e8;
    }
.contact-right textarea{
    width: 100%;
    color:#4038ae;
    font-size:16px;
    resize: none;
    height: 185px;
    padding: 12px;
    outline: none;
    border: 1px solid #e8e8e8;
    }
.contact-form input[type=submit] {
    color: #ffffff;
    padding: 13px 43px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 500;
    border-radius:5px;
    border:none;
    background: linear-gradient(to right, #03466E 0%, #0277a8 50%, #00ADEF 100%);
    }
.contact-form input[type=submit]:hover {
    background:#4038ae;
    transform: rotateY(360deg);
    transition: .5s all;
    -webkit-transition: .5s all;
    -o-transition: .5s all;
    -ms-transition: .5s all;
    -moz-transition: .5s all;
    }
.contact-info h3{
  margin: 0;
  color: #d717cf;
  font-size: 36px;
  font-weight: bold;
}
.contact-info h3 span {
  color: #4038ae;
}
.contact-map{
width:100%;
height:330px;
margin-bottom: 52px;
}
.contact-map iframe{
width:100%;
height:330px;
}
/*-- //contact --*/


/*-- responsive-media-queries --*/
@media(max-width:1440px){
    .about-info {
     margin: 72px 0px 0 137px;
    }
    .approach-right {
       padding: 72px 122px 0 0px;
    }
    .services-left {
       padding: 53px 0 0 144px;
    }
    .approach-right {
       width: 47%;
       }
    .about-left {
       width: 37%;
    }
}
@media(max-width:1366px){
    .about-info {
       margin: 72px 0px 0 106px;
    }
    .approach-right {
       padding: 72px 106px 0 0px;
    }
    .approach-right p:nth-child(3) {
       overflow: hidden;
       height: 86px;
    }
    .services-left {
       padding: 53px 0 0 120px;
    }
}
@media(max-width:1280px){
    .about-info {
       margin: 72px 0px 0 88px;
    }
    .about-left {
       width: 44%;
    }
    .approach-right {
       width: 46%;
       padding: 72px 73px 0 0px;
    }
    .approach-right p:nth-child(4) {
       overflow: hidden;
       height: 80px;
    }
    .services-left {
       padding: 53px 0 0 78px;
    }
    .nbs-flexisel-nav-left {
       left: -2.3%;
       }
    .nbs-flexisel-nav-right {
       right: -2.3%;
       }
     .keep {
       padding: 153px 0 0px 0;
       }
}
@media(max-width:1024px){
    .header-right {
       width: auto;
    }
    .banner-info h1 {
       font-size: 50px;
       }
    .banner-info p {
    font-size: 25px;
    margin: 20px 0 66px 0;
       }
    .about-info h3 {
       font-size: 25px;
       margin: 0 0 16px 0;
       }
    .about-info {
       margin: 50px 0px 0 49px;
    }
    .about-info p:nth-child(3) {
       margin: 0 0 29px 0;
    }
    .about-info a {
       padding: 11px 22px;
       }
    .start a{
       padding: 11px 22px;
    }
    .behind p {
       font-size: 25px;
       }
    .approach-right {
       padding: 50px 73px 0 0px;
    }
    .approach-right h3 {
       font-size: 25px;
       margin: 0 0 16px 0;
       }
    .behind{
    padding: 50px 0;
    }
    .kick{
       padding: 50px 0 0 0;
       min-height: 226px;
    }
    .approach-right p:nth-child(3) {
       overflow: hidden;
       height: 55px;
    }
    .kick p {
       width: 73%;
       font-size: 25px;
       }
    .services h3 {
       font-size: 25px;
       }
    .services-grids {
       padding: 50px 0 0 0;
        min-height: 345px;
    }
    .services-left {
       padding: 38px 0 0 59px;
    }
    .clients {
       padding: 50px 0;
    }
    .services {
       padding: 50px 0;
    }
    .services-left {
       width: 39%;
       }
    .keep {
       padding: 114px 0 0px 0;
       min-height: 434px;
    }
    .clients h3 {
       font-size: 25px;
       }
    .keep h3 {
       font-size: 25px;
       padding: 26px 0;
       width: 42%;
       }
    .contact-info h3 {
       font-size: 25px;
       }
    .contact {
       padding: 50px 0;
    }
}

/* ======================================= */
/* ====== ESTILOS PRINCIPALES PARA MÓVIL ====== */
/* ======================================= */
@media(max-width:768px){
    .header .container {
        display: flex;
        justify-content: space-between; /* LOGOS A LA IZQUIERDA, MENÚ A LA DERECHA */
        align-items: center;
        padding: 0 15px;
        flex-wrap: nowrap;
    }

    .header-left {
        flex: 0 1 auto; /* No permitir que crezca, encoger si es necesario */
    }
    
    .header-right {
        width: auto !important; /* Anular anchos fijos de otras media queries */
    }

    /* ESTILOS PARA LOGOS IZQUIERDOS EN MÓVIL - TAMAÑO PEQUEÑO */
/* === NUEVA SOLUCIÓN FLEXIBLE PARA MÓVIL === */
.header-left a {
    display: inline-flex;
    align-items: center;
    height: 40px;           /* Altura consistente para el espacio en móvil */
    margin-right: 10px;
}
.header-left a .thumbnail-preview {
    height: 100%;
    width: auto;
    max-width: 120px;       /* Límite de ancho para la vista móvil */
}
    
    .header-right .nav1 {
        display: none; /* OCULTO POR DEFECTO */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #0277a8;
        z-index: 9999;
        padding: 0;
        margin: 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }
    
    /* REGLA AÑADIDA PARA ACTIVAR MENÚ CON JAVASCRIPT */
    .header-right .nav1.menu-abierto {
        display: block;
    }
    
    .header-right .nav1 > li {
        display: block;
        width: 100%;
        margin: 0;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .header-right .nav1 > li > a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 15px 20px;
        color: white;
        font-size: 16px;
    }

    .header-right .nav1 > li.dropdown > a:after {
        content: "▼";
        font-size: 10px;
        margin-left: 8px;
        transition: transform 0.3s;
    }

    .header-right .nav1 > li.dropdown.open > a:after {
        transform: rotate(180deg);
    }

    .submenu {
        position: static;
        display: none;
        width: 100%;
        background-color: rgba(2, 60, 95, 0.95);
        box-shadow: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        animation: slideDown 0.3s ease;
    }

    .header-right .nav1 > li.open > .submenu {
        display: block;
    }

    .submenu li a {
        padding: 12px 20px 12px 40px;
        font-size: 14px;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            max-height: 0;
        }
        to {
            opacity: 1;
            max-height: 300px;
        }
    }

    /* OTRAS REGLAS PARA 768px */
    .banner-info h1 { font-size: 40px; }
    .banner-info p { font-size: 20px; margin: 17px 0 44px 0; }
    .callbacks_tabs { left: 44%; }
    .start a { padding: 9px 14px; }
    .about-info { margin: 50px 0px 0 32px; }
    .about-info h3 ,.behind p,.approach-right h3,.kick p,.services h3,.clients h3,.keep h3,.contact-info h3 { font-size: 22px; }
    .about-info p{ font-size: 14px; margin: 0 0 28px 0; }
    .about-info p:nth-child(3) { display: none; }
    .about-info a { padding: 9px 14px; }
    .approach-right p{ font-size: 14px; margin: 0 0 7px 0; }
    .approach-right { padding: 50px 37px 0 0px; }
    .approach-right p:nth-child(3) { display: none; }
    .kick p { width: 83%; }
    .kick { min-height: 202px; }
    .services-grids { min-height: 327px; }
    .services-list { padding: 60px 0 60px 36px; }
    .services-right ul li{ font-size: 14px; background-size: 6% !important; }
    .services-left p { font-size: 14px; }
    .services-right { width: 56%; }
    .services-left { padding: 37px 0 0 30px; }
    .flex-slider { width: 90%; margin: 32px auto 0 auto; }
    .nbs-flexisel-nav-left { left: -5.3%; }
    .nbs-flexisel-nav-right { right: -6.3%; }
    @media (max-width: 768px) {
    /*
    ... aquí van tus otros estilos para 768px ...
    */


    /* === INICIO DE LOS CAMBIOS PARA LA SECCIÓN DE CONTACTO === */

    .keep {
        /* ANTES: padding: 64px 0 0px 0; min-height: 290px; */
        
        /* AHORA: Usamos un padding equilibrado y quitamos la altura mínima */
        padding: 50px 15px;
        min-height: unset; /* 'unset' resetea la altura mínima */
    }

    .keep h3 {
        /* Nos aseguramos de que el título no ocupe todo el ancho */
        width: 90%;
        /* Añadimos un margen superior para bajar el título, como en la versión de escritorio */
        margin: 15px auto 0 auto;
    }

    .keep ul {
        /* ANTES: margin: 45px 0 0 0; */
        
        /* AHORA: Reducimos el espacio para que se vea bien en móvil */
        margin: 35px 0 0 0;
    }

    /* === FIN DE LOS CAMBIOS === */


    /*
    ... aquí continúan tus otros estilos para 768px ...
    */
}
    .footer p { font-size: 14px; }
    .contact-info { margin-bottom: 24px; }
    .contact-map iframe, .contact-map { height: 275px; }
    .contact-left input[type="text"] { width: 100%; font-size: 14px; margin: 0 0px 23px 0; }
    .contact-left { width: 29%; }
    .contact-right textarea { font-size: 14px; }
    .contact-form input[type=submit] { padding: 9px 22px; font-size: 14px; }
    .posts-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 2rem; }
}

@media(max-width:640px){
    .header-right ul li a { font-size: 13px; margin: 0 8px; }
    .banner-info h1 { font-size: 35px; }
    .banner-info p { font-size: 16px; margin: 17px 0 34px 0; }
    .about-info { margin: 30px 0px 0 25px; }
    .start a{ font-size: 13px; }
    .about-left { width: 48%; }
    .about-info p { font-size: 13px; overflow: hidden; height: 72px; margin: 0 0 18px 0; }
    .about-info a { font-size: 13px; }
    .behind p { width: 84%; }
    .behind{ padding: 30px 0; }
    .kick { padding: 30px 0 0 0; min-height: 170px; }
    .services-grids { min-height: 273px; }
    .approach-right { width: 48%; }
    .approach-right { padding: 30px 30px 0 0px; }
    .approach-right p { font-size: 13px; margin: 0 0 18px 0; }
    .approach-right p:nth-child(4) { overflow: hidden; height: 51px; }
    .kick p { width: 96%; }
    .services { padding: 30px 0; }
    .services-right ul li:nth-child(2),.services-right ul li:nth-child(4) { overflow: hidden; height: 22px; }
    .services-right ul li { font-size: 13px; background-size: 7% !important; }
    .services-list { padding: 36px 0 36px 36px; }
    .services-left { padding: 29px 0 0 30px; }
    .services-left p { font-size: 13px; overflow: hidden; height: 120px; }
    .clients { padding: 30px 0; }
    .footer p { font-size: 13px; }
    .contact-left input[type="text"] ,.contact-right textarea{ font-size: 13px; }
    .contact { padding: 30px 0; }
    .contact-map { margin-bottom: 30px; height: 220px; }
    .contact-map iframe { height: 220px; }
    .contact-left input[type="text"] { padding: 9px 10px; }
    .contact-right textarea { height: 160px; }
    .contact-form input[type=submit] { font-size: 13px; }
    .keep h3 { width: 47%; }
    .callbacks_tabs { left: 43%; }
}

@media(max-width:480px){
    .banner-info h1 { font-size: 30px; }
    .banner-info p { font-size: 14px; margin: 11px 0 25px 0; }
    .start a:nth-child(2) { margin-left: 18px !important; }
    .callbacks_tabs { left: 40%; }
    .about-info h3, .behind p, .approach-right h3, .kick p, .services h3, .clients h3, .keep h3, .contact-info h3 { font-size: 20px; }
    .about-info h3 { margin: 0 0 6px 0; }
    .about-info a ,.start a{ padding: 5px 10px; }
    .about-info p { overflow: hidden; height: 44px; margin: 0 0 14px 0; }
    .about-info { margin: 22px 0px 0 25px; }
    .behind p { width: 100%; }
    .behind{ padding: 22px 0; }
    .kick { padding: 22px 0; min-height: 140px; }
    .services-grids { min-height: 260px; }
    .approach-right { padding: 22px 18px 0 0px; }
    .approach-right p:nth-child(4) { display: none; }
    .approach-right h3 { margin: 0 0 13px 0; }
    .kick p { width: 100%; }
    .services { padding: 22px 0; }
    .services-left { width: 45%; padding: 19px 0 0 18px; }
    .services-right ul li:nth-child(2), .services-right ul li:nth-child(4), .services-right ul li:nth-child(1), .services-right ul li:nth-child(3), .services-right ul li:nth-child(5) { overflow: hidden; height: 22px; }
    .services-right ul li { padding-left: 24px; }
    .services-list { padding: 25px 0 25px 17px; }
    .services-right { width: 52%; }
    .flex-slider { margin: 16px auto 0 auto; }
    .keep h3 { width: 61%; }
    .keep ul { margin: 28px 0 0 0; }
    .keep ul li { margin: 0 2px; }
    .keep { padding: 45px 0 0px 0; min-height: 238px; }
    .footer{ padding: 18px 0; }
    .contact-left { width: 36%; }
    .contact-right { width: 60%; }
    .contact-map iframe, .contact-map { height: 190px; }
    .approach-right p { margin: 0 0 0px 0; }
    .header-left a .thumbnail-preview, .header-left img { max-height: 30px; } /* Reducción adicional para pantallas muy pequeñas */
}

@media(max-width:320px){
    .banner-info h1 { font-size: 17px; }
    .banner-info p { font-size: 13px; margin: 8px 0 19px 0; }
    .callbacks_tabs { left: 36%; }
    .about-left, .about-right { width: 100%; }
    .about-info { margin: 30px 17px 35px 24px; }
    .about-info h3, .behind p, .approach-right h3, .kick p, .services h3, .clients h3, .keep h3, .contact-info h3 { font-size: 18px; }
    .behind{ padding: 30px 0; }
    .about-info p { overflow: hidden; height: 75px; }
    .kick { padding: 30px 0 0 0; }
    .behind p { width: 100%; overflow: hidden; height: 52px; }
    .approach-left, .approach-right { width: 100%; padding: 30px 12px 30px 20px; }
    .kick p { overflow: hidden; height: 78px; }
    .services-left { width: 95%; padding: 0px 0 18px 18px; }
    .services-grids { padding: 30px 0 0 0; min-height: 370px; }
    .keep { min-height: 215px; }
    .services-right { width: 100%; }
    .flex-slider { width: 80%; }
    .nbs-flexisel-nav-right{ right: -12.3%; }
    .nbs-flexisel-nav-left{ left: -11.3%; }
    .keep h3 { width: 88%; padding: 15px 0; }
    .contact-map iframe, .contact-map { height: 175px; }
    .contact-left, .contact-right { width: 100%; }
    .contact-left input[type="text"] { margin: 0 0px 15px 0; }
    .contact-right textarea { height: 126px; margin-bottom: 15px; }
}

.contact-social {
  background: url(../img/banner2.jpg) no-repeat 0px 0px;
  background-size: cover;
  padding: 70px 0;
  min-height: 300px;
}

/* ======================================= */
/* ====== ESTILOS SECCIÓN DE NOTICIAS ====== */
/* ======================================= */

.blog-section {
    padding: 60px 0;
    background-color: #f9f9f9;
    text-align: center;
}

.section-title {
    font-size: 36px;
    margin-bottom: 50px;
    color: #ffffff;
    font-weight: bold;
    text-align: center;
    display: inline-block;
    padding: 8px 15px;
    border-radius: 5px;
    background: linear-gradient(to right, #03466E 0%, #0277a8 50%, #00ADEF 100%);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.post-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.card-image {
    height: 200px; /* ¡Ajusta esta altura a tu gusto! 200px es un buen punto de partida. */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f0f0; /* Un color de fondo por si la imagen no carga */
}
.card-image img {
    width: 100%;
    max-width: 300px;
    height: auto;
    display: block;
}

.card-image video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* ¡Esta es la propiedad mágica! */
}

.card-content {
    padding: 25px;
}

.card-meta {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 10px;
}

.card-title a {
    font-size: 1.25rem;
    font-weight: bold;
    color: #222;
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-title a:hover {
    color: #007bff;
}

.card-excerpt {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin: 15px 0;
}

.read-more {
    font-weight: bold;
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #0056b3;
}

/* ================================================= */
/* ====== ESTILOS CORREGIDOS PARA CARRUSEL SPLIDE ====== */
/* ================================================= */

.splide__slide {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    background: transparent;
    border: none;
    overflow: hidden;
}

.client-image {
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    border-radius: 8px;
}

.splide__arrow {
    background: rgba(3, 70, 110, 0.7);
}

.splide__arrow svg {
    fill: #ffffff;
}

/* =================================================== */
/* ====== ESTILOS UNIFICADOS PARA ÍCONO HAMBURGUESA ====== */
/* =================================================== */

/* Este ícono solo aparece en pantallas menores a 768px */
.header-right span.menu {
    display: none; /* Oculto por defecto */
    cursor: pointer;
    z-index: 10000;
}

@media (max-width: 768px) {
    .header-right span.menu {
        width: 40px;      
        height: 35px;     
        display: flex; /* Se hace visible y se usa flex para alinear las barras */
        flex-direction: column;
        justify-content: space-between;
        padding: 8px 6px; 
        box-sizing: border-box; 
    }

    .bar {
        display: block;
        width: 100%;      
        height: 3px;      
        background-color: #ffffff;
        border-radius: 2px;
    }
}

/* ========================================================= */
/* ====== CONTROL DE VISIBILIDAD DEL LOGO RESPONSIVE ====== */
/* ========================================================= */

/* * VISTA MÓVIL (por defecto, pantallas de 0px a 768px)
 * - Se OCULTA el logo de la derecha (versión escritorio).
 * - Se MUESTRA el logo junto a los otros (versión móvil).
*/
.logo-escritorio {
    display: none;
}
.logo-movil {
    display: inline-flex; /* Usar flex para alinear igual que los otros logos */
    align-items: center;
}


/* * VISTA ESCRITORIO (pantallas de 769px en adelante)
 * - Se MUESTRA el logo de la derecha.
 * - Se OCULTA el logo que estaba junto a los otros.
*/
@media (min-width: 769px) {
    .logo-escritorio {
        display: flex;
        align-items: center;
        margin-left: 25px; 
    }
    
    .logo-movil {
        /* ¡Esta es la regla clave para ocultar el logo duplicado en escritorio! */
        display: none !important;
    }
    /* AJUSTE FINAL PARA EL TAMAÑO DEL LOGO EN ESCRITORIO */
@media (min-width: 769px) {
    .logo-escritorio .thumbnail-preview {
        max-height: 55px;
    }
}
}

.secciones-page-container {
        padding: 60px 15px;
        background-color: #f4f7f9; /* Un color de fondo neutro y suave */
    }

    /* Estilo para el gran título de la página (ej. "SOBRE NOSOTROS") */
    .secciones-page-header {
        text-align: center;
        margin-bottom: 60px;
    }

    .secciones-page-header h1 {
        font-size: 36px;
        color: #ffffff;
        font-weight: bold;
        display: inline-block;
        padding: 15px 40px;
        border-radius: 50px; /* Píldora redondeada */
        background: linear-gradient(to right, #03466E 0%, #0277a8 50%, #00ADEF 100%);
        border: 2px solid #FFF;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

    /* Contenedor de una sección individual (Misión, Visión, etc.) */
    .seccion-item {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 40px; /* Espacio entre imagen y texto */
        margin-bottom: 70px;
        padding-bottom: 50px;
        border-bottom: 1px solid #ddd;
    }

    /* La última sección no necesita el borde inferior */
    .seccion-item:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }

    /* Modificador para alternar el diseño (imagen a la derecha) */
    .seccion-item.reverse {
        flex-direction: row-reverse;
    }

    /* Contenedor de la imagen */
    .seccion-imagen {
        flex-basis: 40%; /* La imagen ocupa el 40% del espacio */
    }

    .seccion-imagen img {
        width: 100%;
        height: auto;
        border-radius: 12px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

    /* Contenedor del texto */
    .seccion-texto {
        flex-basis: 60%; /* El texto ocupa el 60% */
    }

    .seccion-texto h2 {
        font-size: 32px;
        font-weight: bold;
        margin-bottom: 20px;
        color: #03466E; /* Azul oscuro principal */
    }

    .seccion-texto p {
        font-family: 'Myriad Pro', sans-serif;
        font-size: 18px;
        line-height: 1.7;
        color: #333; /* Color de texto oscuro y legible */
        text-align: justify; /* <-- Añade esta línea */
    }
    
    /* === RESPONSIVE PARA MÓVIL === */
    @media (max-width: 768px) {
        .seccion-item, .seccion-item.reverse {
            flex-direction: column; /* Apila imagen y texto verticalmente */
            gap: 25px;
        }
        
        .seccion-texto h2 {
            text-align: center;
        }
    }
/* ========================================================= */
/* ====== CORRECCIÓN PARA LA VISTA DE NOTA INDIVIDUAL ====== */
/* ========================================================= */

/* Contenedor principal del artículo */
.post-full-content {
    width: 100%;
    clear: both; /* Asegura que no flote al lado de nada */
}

/* Regla clave: Se aplica a TODOS los hijos directos del artículo 
  (la imagen, el bloque de texto, el enlace de volver, etc.) 
*/
.post-full-content {
    display: flex;           /* 1. Activa el modo de organización Flexbox */
    flex-direction: column;  /* 2. Apila los elementos uno encima del otro (verticalmente) */
    align-items: center;     /* 3. Centra todos los elementos horizontalmente */
    width: 100%;
    clear: both;
}

/* Ajuste específico para el enlace 'Volver' para que no ocupe todo el ancho */
.post-full-content .read-more {
    font-size: 1.5rem; /* <-- ¡Puedes ajustar este valor como quieras! (ej: 1.8rem) */
    font-weight: bold;
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block; /* Mejora el comportamiento del enlace */
    margin-top: 15px;
}

.post-full-content .read-more:hover {
    color: #0056b3;
    text-decoration: underline;
}


/* Ajuste para los párrafos dentro del nuevo contenedor */
.post-text-container p {
    font-family: 'Myriad Pro', sans-serif;
    font-size: 18px;
    line-height: 1.7;
    color: #333;
    text-align: justify; /* Justifica el texto para un look más formal */
    margin-bottom: 1em; /* Espacio entre párrafos */
}

.post-text-container h2 {
    margin-bottom: 25px; /* Más espacio debajo del título principal */
}

 /* Contenedor principal de la página */
    .page-container {
        padding: 40px 15px;
        background-color: #f4f7f9;
        font-family: 'Myriad Pro', sans-serif;
    }

    /* NUEVO: Estilo para el título principal, imitando "Notas de Interés" */
    .public-view-header {
        text-align: center;
        margin-bottom: 50px;
    }

    .public-view-header h1 {
        font-size: 36px;
        color: #ffffff;
        font-weight: bold;
        display: inline-block;
        padding: 15px 40px;
        border-radius: 50px; /* Píldora redondeada */
        background: linear-gradient(to right, #03466E 0%, #0277a8 50%, #00ADEF 100%);
        border: 2px solid #FFF;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
    
    /* Estilo para el campo de búsqueda */
    .search-container {
        margin-bottom: 20px;
    }

    .search-input {
        width: 100%;
        max-width: 400px;
        padding: 10px 15px;
        border: 1px solid #ccc;
        border-radius: 5px;
        font-size: 16px;
    }

    /* Estilo general para las tablas */
    .custom-table-container {
        background-color: #fff;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        overflow-x: auto;
        padding: 20px;
    }

    .table-custom {
        width: 100%;
        border-collapse: collapse;
    }

    .table-custom thead th {
        background: linear-gradient(to right, #03466E 0%, #0277a8 50%, #00ADEF 100%);
        color: white;
        font-weight: bold;
        padding: 15px;
        text-align: left;
        font-size: 16px;
    }

    .table-custom tbody td {
        padding: 12px 15px;
        border-bottom: 1px solid #e0e0e0;
        color: #333;
        vertical-align: middle;
    }

    .table-custom tbody tr:last-child td { border-bottom: none; }
    .table-custom tbody tr:nth-child(even) { background-color: #f9f9f9; }

    /* Estilo para los botones de acción en la tabla */
    .actions-cell a {
        display: inline-block;
        margin: 0 4px;
        color: #fff;
        padding: 8px 10px;
        border-radius: 4px;
        text-decoration: none;
        transition: transform 0.2s ease;
    }
    .actions-cell a:hover { transform: scale(1.1); }

    .action-view { background-color: #00ADEF; }
    .action-pdf { background-color: #FF9000; }
    /* ========================================================= */
/* ====== ESTILOS PARA LA PÁGINA DE CONTACTO ====== */
/* ========================================================= */

/* --- Contenedor Superior (Info y Mapa) --- */
.contact-upper-section {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    background-color: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.contact-details {
    flex-basis: 40%;
}

.contact-map {
    flex-basis: 60%;
    border-radius: 8px;
    overflow: hidden; /* Asegura que el iframe respete el borde redondeado */
}

.contact-details h2 {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #03466E;
}

.contact-details p {
    font-family: 'Myriad Pro', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 25px;
}

.contact-info-list {
    list-style: none;
    padding: 0;
}

.contact-info-list li {
    display: flex;
    align-items: flex-start;
    font-family: 'Myriad Pro', sans-serif;
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
}

.contact-info-list .icon-placeholder {
    font-size: 20px;
    margin-right: 15px;
    color: #00ADEF;
}


/* --- Contenedor del Formulario --- */
.contact-form-container {
    background-color: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.contact-form-container h2 {
    text-align: center;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 30px;
    color: #03466E;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
    width: 100%;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #444;
    font-size: 16px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    font-family: 'Myriad Pro', sans-serif;
    box-sizing: border-box; /* Importante para que el padding no afecte el ancho */
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00ADEF;
}

.form-submit {
    text-align: center;
    margin-top: 20px;
}

.contact-submit-btn {
    color: #ffffff;
    padding: 15px 45px;
    font-size: 18px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 50px;
    border: none;
    background: linear-gradient(to right, #03466E 0%, #0277a8 50%, #00ADEF 100%);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.contact-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* --- RESPONSIVE PARA CONTACTO --- */
@media (max-width: 768px) {
    .contact-upper-section, .form-row {
        flex-direction: column;
    }
    
    .contact-upper-section, .contact-form-container {
        padding: 25px;
    }
}

/* ========================================================= */
/* ====== ESTILOS PARA LA VISTA DE LICENCIAS (INICIO) ====== */
/* ========================================================= */

/* Contenedor principal de la página */
.page-container {
    padding: 40px 15px;
    background-color: #f4f7f9;
    font-family: 'Myriad Pro', sans-serif;
}

/* Encabezado con el saludo */
.public-view-header {
    text-align: center;
    margin-bottom: 40px;
}

.public-view-header h1 {
    font-size: 32px; /* Ligeramente más pequeño para un saludo */
    color: #ffffff;
    font-weight: bold;
    display: inline-block;
    padding: 12px 35px;
    border-radius: 50px;
    background: linear-gradient(to right, #03466E 0%, #0277a8 50%, #00ADEF 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Contenedor de la tabla */
.custom-table-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 25px;
}

/* Barra de herramientas sobre la tabla */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap; /* Para que sea responsive */
    gap: 15px;
}

.table-title {
    color: #03466E;
    font-size: 24px;
    font-weight: bold;
}

.search-and-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-input {
    width: 100%;
    max-width: 300px;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 25px; /* Más moderno */
    font-size: 14px;
    transition: all 0.3s ease;
}
.search-input:focus {
    outline: none;
    border-color: #00ADEF;
    box-shadow: 0 0 5px rgba(0, 173, 239, 0.5);
}

/* Botón para abrir modal */
.action-btn-new {
    background: #00ADEF;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
.action-btn-new:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 173, 239, 0.4);
}

/* Tabla */
.table-custom thead th {
    text-align: left;
}

.actions-header {
    text-align: center !important;
}

.actions-cell {
    text-align: center;
    display: flex;
    gap: 8px;
    justify-content: center;
}

.actions-cell .action-pdf {
    background-color: #e74c3c; /* Rojo para PDF */
    color: white;
    padding: 8px 12px;
    border: none;
    cursor: pointer;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 14px;
    border-radius: 4px;
    transition: transform 0.2s ease;
}
.actions-cell .action-pdf:hover {
    transform: scale(1.1);
}

/* Insignias de estatus */
.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    color: white;
    white-space: nowrap; /* <-- AÑADE ESTA LÍNEA */
}
.status-activa { background-color: #2ecc71; } /* Verde */
.status-vencida { background-color: #e74c3c; } /* Rojo */
.status-en-proceso, .status-en-revisión { background-color: #f39c12; } /* Naranja */
.status-próxima-a-vencer { background-color: #3498db; } /* Azul */
.status-borrador { background-color: #95a5a6; } /* Gris */
.status-pendiente { background-color: #1f31cc; } /* Gris */


/* =========================== */
/* ====== ESTILOS MODAL ====== */
/* =========================== */
/* Estilos mejorados para los modales */
.modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    padding-top: 60px;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 25px;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    animation: fadeIn 0.3s;
}

.modal-content.large { max-width: 850px; }
@keyframes fadeIn { from {opacity: 0; transform: translateY(-20px);} to {opacity: 1; transform: translateY(0);} }

@keyframes slide-down {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover, .close-button:focus { color: black; text-decoration: none; }

/* ========================================================= */
/* ====== ESTILOS PARA FORMULARIO EN MODAL (LICENCIAS) ====== */
/* ========================================================= */
.modal-content .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}
.modal-content .form-group {
    flex: 1;
}
.modal-content .half { flex-basis: 50%; }
.modal-content .quarter { flex-basis: 25%; }

.rif-group label { display: block; margin-bottom: 8px; }
.rif-group .rif-inputs { display: flex; }
.rif-group .rif-prefix { flex-grow: 0; width: 60px; border-top-right-radius: 0; border-bottom-right-radius: 0;}
.rif-group .rif-number { flex-grow: 1; border-top-left-radius: 0; border-bottom-left-radius: 0; }

.modal-content .submit-btn {
    background: linear-gradient(to right, #03466E 0%, #0277a8 50%, #00ADEF 100%);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    display: block;
    margin: 20px auto 0;
}

/* Estilos para el Switch Checkbox */
.switch-container { display: flex; align-items: center; gap: 15px; margin: 20px 0; }
.switch { position: relative; display: inline-block; width: 60px; height: 34px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; }
.slider:before { position: absolute; content: ""; height: 26px; width: 26px; left: 4px; bottom: 4px; background-color: white; transition: .4s; }
input:checked + .slider { background-color: #00ADEF; }
input:focus + .slider { box-shadow: 0 0 1px #00ADEF; }
input:checked + .slider:before { transform: translateX(26px); }
.slider.round { border-radius: 34px; }
.slider.round:before { border-radius: 50%; }

/* Nuevo estilo para el N° de Trámite */
.tramite-badge {
    display: inline-block;
    padding: 4px 10px; /* Espaciado interno */
    font-size: 0.85em;
    font-weight: bold;
    color: #333; /* Color de texto oscuro */
    background-color: #f0f0f0; /* Fondo gris claro */
    border: 1px solid #ccc; /* Borde sutil */
    border-radius: 4px; /* Bordes ligeramente redondeados */
    text-align: center;
}

/* Un estilo ligeramente diferente para el N° de Solicitud */
.tramite-badge.solicitud {
    background-color: #e9e9e9;
    font-style: italic;
}

/* ========================================================= */
/* ====== ESTILOS ESPECÍFICOS PARA VISTA INDIVIDUAL ====== */
/* ========================================================= */

/* Contenedor del medio principal (imagen o video) */
.post-full-content .featured-media {
    width: 100%;
    max-width: 1000px; /* Mantiene el ancho máximo */
    margin: 0 auto 30px;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
}

/* Estilo unificado para IMAGEN y VIDEO */
.post-full-content .featured-media img,
.post-full-content .featured-media video {
    width: 100%;                  /* Ocupa todo el ancho del contenedor */
    height: auto;                 /* La altura se ajusta automáticamente a la proporción */
    max-height: 70vh;             /* ¡La clave! Altura máxima del 70% de la pantalla. Evita que sea demasiado alto */
    object-fit: cover;            /* Recorta la imagen/video para llenar el espacio sin deformarse. Perfecto para archivos altos */
    display: block;               /* Asegura que no haya espacios extraños debajo del elemento */
}

/* Texto de la nota */
/* Texto de la nota con contenedor */
.post-text-container {
    width: 100%;
    max-width: 800px; /* Mantiene el texto legible */
    margin: 20px auto 0; /* Añade un margen superior para separarlo de la imagen */
    padding: 30px 40px; /* Espacio interno para que el texto "respire" */
    background-color: #ffffff; /* Fondo blanco sólido */
    border-radius: 12px; /* Bordes redondeados consistentes con la imagen */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); /* Sombra sutil para darle profundidad */
    box-sizing: border-box; /* Asegura que el padding no afecte el ancho total */
}

.post-text-container .card-meta {
    text-align: center;
    font-size: 1rem;
    margin-bottom: 15px;
    color: #666;
}

.post-text-container h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #03466E;
}

/* Galería adicional */
.galeria-adicional {
    margin-top: 50px;
    width: 100%;
}

.galeria-adicional .section-title {
    text-align: center;
    margin-bottom: 30px;
}

/* Enlace de volver */
.back-link {
    text-align: center;
    margin-top: 50px;
}

/* Responsive */
@media (max-width: 768px) {
    .post-full-content .featured-media video {
        height: 300px;
    }
    
    .post-full-content .featured-media img {
        max-height: 400px;
    }
    
    .post-text-container {
        padding: 0 15px;
    }
}

/* Estilos para la galería con FancyBox */
.card-image a {
    display: block; /* Asegura que el enlace ocupe todo el espacio */
    cursor: zoom-in; /* Cambia el cursor para indicar que se puede ampliar */
}

/* Para que el video dentro del enlace no muestre controles por defecto */
.card-image a video {
    pointer-events: none; /* Evita que los clics interactúen con el video miniatura */
}


/* ========================================================= */
/* ====== ESTILOS UNIFICADOS PARA BOTONES DE ACCIÓN ====== */
/* ========================================================= */

/* Estilo base para TODOS los botones (<a> y <button>) en la celda de acciones */
.action-btn {
    display: inline-flex; /* Usa flexbox para centrar el ícono perfectamente */
    align-items: center;
    justify-content: center;
    margin: 0 4px;
    color: #fff !important; /* Importante para que el ícono siempre sea blanco */
    padding: 8px 10px;
    border-radius: 4px;
    text-decoration: none; /* Quita el subrayado de los enlaces */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none; /* Quita el borde por defecto de los <button> */
    cursor: pointer; /* Asegura que el cursor sea una manito */
    font-size: 14px; /* Un tamaño de fuente adecuado para los íconos */
}

/* Efecto hover para todos los botones */
.actions-cell .action-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Colores específicos para cada acción */
.action-view { background-color: #00ADEF; }   /* Azul claro */
.action-edit { background-color: #f39c12; }   /* Naranja */
.action-attach { background-color: #3498db; }  /* Azul */
.action-delete { background-color: #e74c3c; }  /* Rojo */

/* Estilos para la subida de archivos */
.adjuntos-section {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}
.adjuntos-section:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}
.file-upload-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.file-upload-row input[type="text"] { flex-grow: 1; }
.file-upload-row input[type="file"] { min-width: 250px; }
.action-btn-add-row { background: #007bff; color: white; border: none; padding: 8px 12px; border-radius: 4px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; transition: background-color 0.2s; }
.action-btn-add-row:hover { background-color: #0056b3; }

/* -- CORRECCIÓN DE COLOR DEL TEXTO -- */
#adjuntos-grid a.adjunto-link {
    color: black !important; /* Se añade !important para forzar el estilo */
    text-decoration: none;
    font-weight: 500;
}
#adjuntos-grid a.adjunto-link:hover {
    text-decoration: underline;
}

/* Indicador de Carga (Spinner) */
.submit-btn .spinner {
    display: none;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    width: 20px;
    height: 20px;
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Fallback por si la solución de JS falla */
.swal2-container {
  z-index: 9999 !important;
}

/* ========================================================= */
/* ====== CORRECCIÓN PARA ESTILO DE VIÑETAS EN SECCIONES ====== */
/* ========================================================= */

.seccion-texto ul li {
    font-family: 'Myriad Pro', sans-serif !important; /* Forzamos el mismo tipo de letra que los párrafos */
    font-size: 18px !important;                       /* Forzamos el mismo tamaño de letra */
    color: #333 !important;                           /* Forzamos el mismo color de letra oscuro */
    line-height: 1.7;                                 /* Misma altura de línea para consistencia */
    
    /* --- Reseteos y ajustes adicionales para viñetas estándar --- */
    list-style-type: disc; /* Asegura que se vean los puntos de la viñeta (círculos) */
    padding-left: 20px;    /* Añade un espacio a la izquierda para que la viñeta no se pegue */
    margin-bottom: 10px;   /* Espacio entre cada elemento de la lista */
    text-shadow: none;     /* Quitamos cualquier sombra de texto que pueda heredar */
    font-weight: normal;   /* Nos aseguramos que el peso de la fuente sea normal y no negrita */
}

/* AÑADE ESTA NUEVA REGLA */
.table-title .action-btn {
    font-size: 16px;
    padding: 5px 8px;
    margin-left: 10px;
    vertical-align: middle;
}

/* ========================================================= */
/* ====== AJUSTES PARA AUMENTAR TEXTO MODAL DE AYUDA ====== */
/* ========================================================= */

/* Ajuste para que el SweetAlert se vea bien en el modal */
.swal2-container {
  z-index: 9999 !important; /* Asegura que se muestre por encima de todo */
}

/* Aumenta el tamaño del texto principal dentro del modal de ayuda */
.swal2-html-container {
    font-size: 1.1em !important; 
    line-height: 1.6 !important; 
    text-align: left !important; /* Alinea el texto a la izquierda para mejor lectura */
}

/* Hace los subtítulos (ej. "Proceso de Solicitud") más grandes */
.swal2-html-container h4 {
    font-size: 2em !important; 
    margin-top: 1.5em !important;
    margin-bottom: 0.8em !important;
}

/* Espaciado consistente para párrafos y listas */
.swal2-html-container p,
.swal2-html-container ul {
    font-size: 1.5em !important; 
    margin-bottom: 0.8em !important;
}

/* Aumenta el tamaño del texto de los títulos del acordeón (ej. "LICENCIA DE OPERACIONES") */
.swal2-html-container details summary {
    font-size: 1.5em !important; 
}

/* Aumenta el tamaño del texto dentro del acordeón (los requisitos) */
.swal2-html-container details div {
    font-size: 1em !important;
    padding-top: 10px; /* Añade un poco de espacio al abrir */
}

/* Asegura que las viñetas se vean correctamente dentro de los acordeones */
.swal2-html-container details div ul,
.swal2-html-container details div ol {
    padding-left: 20px !important; /* Añade espacio para que las viñetas no se salgan */
    margin-bottom: 0.5em !important; /* Ajusta el espacio entre listas si es necesario */
}

/* Espacio extra para elementos individuales de la lista si es necesario */
.swal2-html-container details div ul li,
.swal2-html-container details div ol li {
    margin-bottom: 0.3em !important;
}
/* Nuevo estilo para el botón de confirmación de SweetAlert */
.btn-swal-confirm {
    background: linear-gradient(to right, #03466E 0%, #0277a8 50%, #00ADEF 100%);
    color: white !important;
    padding: 12px 25px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: transform 0.2s ease;
}

/* ========================================================= */
/* ====== ESTILO UNIFICADO PARA LISTAS EN SECCIONES (UL Y OL) ====== */
/* ========================================================= */

/* Regla para los contenedores de las listas (UL para viñetas, OL para números) */
.seccion-texto ul,
.seccion-texto ol {
    padding-left: 25px; /* Espacio a la izquierda para toda la lista */
    margin-top: 1em;    /* Espacio antes de que empiece la lista */
    margin-bottom: 1em; /* Espacio después de que termine la lista */
}

/* Regla para CADA elemento de la lista (los <li>) */
.seccion-texto ul li,
.seccion-texto ol li {
    /* Forzamos el estilo para que coincida con los párrafos */
    font-family: 'Myriad Pro', sans-serif !important; 
    font-size: 18px !important;                       
    color: #333 !important;                           
    line-height: 1.7;

    /* Ajustes para el espaciado y la viñeta/número */
    margin-bottom: 10px;   /* Espacio entre cada elemento de la lista */
    padding-left: 5px;     /* Pequeño espacio entre el número/viñeta y el texto */
}

/* =================================================================== */
/* ====== CORRECCIÓN PARA ESTILOS DEL FORMULARIO DE BÚSQUEDA ====== */
/* =================================================================== */

/* 1. Contenedor del formulario.
   Lo hacemos 'relative' para poder posicionar el botón-icono dentro de él. */
.search-form {
    position: relative;
    display: flex;
    align-items: center;
}

/* 2. REEMPLAZA tu regla .search-input existente con esta.
   El único cambio es en el 'padding' para hacer espacio para el icono de la lupa a la derecha. */
.search-input {
    width: 100%;
    max-width: 300px;
    padding: 10px 40px 10px 15px;
    /* ANTES: padding: 10px 15px; */
    border: 1px solid #ccc;
    border-radius: 25px;
    /* Más moderno */
    font-size: 14px;
    transition: all 0.3s ease;
}

/* 3. Estilos para el nuevo botón de búsqueda (la lupa).
   Le quitamos el fondo y lo posicionamos sobre el campo de texto. */
.action-btn-search {
    position: absolute;
    right: 5px;
    /* Lo movemos a la derecha */
    top: 50%;
    transform: translateY(-50%);
    /* Lo centramos verticalmente */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #888;
    /* Color gris para el icono */
    font-size: 16px;
}

.action-btn-search:hover {
    color: #333;
    /* Oscurecemos el icono al pasar el mouse */
}

