
/* CONFIGURACIÓN DE LA PÁGINA EN GENERAL*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: Arial, sans-serif;
    color: #243b47;
    background: #ffffff;
    line-height: 1.6;
}

.contenedor-header,
.seccion,
.pie-contenido {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}


/* ENCABEZADO */

.encabezado {
    width: 100%;
    min-height: 100px;
    height: 100px;
    background: var(--blanco);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 3px 18px rgba(16, 39, 68, 0.08);
}

.contenedor-header {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.marca img {
    width: 165px;
    max-height: 65px;
    object-fit: contain;
}

.menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.menu a {
    text-decoration: none;
    color: var(--azul-oscuro);
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s;
}

.menu > a:not(.boton-contacto):hover,
.menu-desplegable > a:hover {
    color: var(--dorado);
}

.boton-contacto {
    background: var(--azul);
    color: white !important;
    padding: 12px 23px;
    border-radius: 4px;
}

.boton-contacto:hover {
    background: var(--azul-oscuro);
}


/* MENÚ DESPLEGABLE*/

.menu-desplegable {
    position: relative;
}

.menu-desplegable > a {
    cursor: pointer;
}

.menu-desplegable > a span {
    color: var(--dorado);
    font-size: 17px;
}

.submenu {
    display: none;
    position: absolute;
    top: 28px;
    left: -20px;
    min-width: 250px;
    background: white;
    padding: 12px 0;
    border-top: 3px solid var(--dorado);
    box-shadow: 0 8px 25px rgba(16, 39, 68, 0.14);
    border-radius: 0 0 5px 5px;
}

.submenu a {
    display: block;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 500;
}

.submenu a:hover {
    background: var(--fondo);
    color: var(--dorado);
}

.menu-desplegable:hover .submenu {
    display: block;
}

/* PORTADA PRINCIPAL DE LA PÁGINA */

.portada {
    min-height: 620px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    background: #102744;
    overflow: hidden;
}

/* IMAGEN DEL LADO IZQUIERDO */
.portada-imagen {
    width: 100%;
    height: 620px;
    overflow: hidden;
    position: relative;
}

.portada-imagen img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

/* DESVANECIDO DE LA IMAGEN EN AMBOS LADOS */
.portada-imagen::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        #102744 0%,
        rgba(16, 39, 68, 0.35) 15%,
        transparent 35%,
        transparent 55%,
        rgba(16, 39, 68, 0.45) 75%,
        #102744 100%
    );
    pointer-events: none;
}

/* TEXTO DEL LADO DERECHO */

.portada-contenido {
    max-width: 650px;
    padding: 60px 9%;
    position: relative;
    z-index: 2;
}

.etiqueta-portada {
    color: #0094c1;
    font-size: 12px;
    letter-spacing: 3px;
    font-weight: bold;
}

.portada h1 {
    color: #ffffff;
    font-size: clamp(35px, 4vw, 55px);
    line-height: 1.15;
    margin: 22px 0;
    font-weight: 700;
}

.portada h1 span {
    color: #0094c1;
    display: block;
    font-size: 0.48em;
    margin-top: 12px;
    letter-spacing: 2px;
}

.portada p {
    color: #d5deea;
    font-size: 16px;
    max-width: 480px;
    margin-bottom: 30px;
}

.boton-principal {
    display: inline-block;
    text-decoration: none;
    background: #0094c1;
    color: #ffffff;
    padding: 14px 27px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
    transition: 0.3s;
}

.boton-principal:hover {
    background: #087da0;
    transform: translateY(-2px);
}

.portada-decoracion {
    display: none;
}


/* SECCIONES GENERALES*/

.seccion {
    padding-top: 100px;
    padding-bottom: 100px;
}

.etiqueta {
    color: #0094c1; /* CONOCENOS Y NUESTRAS SOLUCIONES*/
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: bold;
}

.seccion h2 {
    color: var(--azul-oscuro);
    font-size: clamp(28px, 3vw, 39px);
    line-height: 1.2;
    margin: 15px 0 22px;
}

.seccion p {
    color: var(--gris);
    font-size: 16px;
}


/* NOSOTROS*/


.nosotros {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 75px;
}

.nosotros-texto p {
    margin-bottom: 18px;
    max-width: 650px;
    line-height: 1.8;
    color: var(--gris);
}

.nosotros-destacado {
    background: #a3dbf779;
    padding: 50px 40px;
    border-left: 5px solid #0094c1;
    border-radius: 4px;
    box-shadow: 0 15px 35px rgba(16, 39, 68, 0.12);
}

.estrella {
    display: block;
    font-size: 32px;
    color: #0094c1;
    margin-bottom: 18px;
}

.nosotros-destacado h3 {
    color: #03324e;
    font-size: 35px;
    line-height: 1.3;
    margin: 15px 0;
}

.nosotros-destacado p {
    color: #1d3e6a;
    font-size: 15px;
    line-height: 1.7;
}



/*SERVICIOS*/

.servicios {
    max-width: none;
    width: 100%;
    background: var(--fondo);
    padding-left: 5%;
    padding-right: 5%;
}

.encabezado-seccion {
    max-width: 760px;
    margin: 0 auto 50px;
    text-align: center;
}

.encabezado-seccion p {
    max-width: 650px;
    margin: auto;
}

.tarjeta-servicio {
    max-width: 850px;
    margin: auto;
    background: white;
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 42px;
    border-radius: 5px;
    border-bottom: 3px solid var(--dorado);
    box-shadow: 0 8px 30px rgba(16, 39, 68, 0.06);
}

.servicio-icono {
    min-width: 75px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--azul);
    color: var(--dorado-claro);
    font-size: 34px;
    border-radius: 50%;
}

.servicio-contenido > span {
    color: #0094c1;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 2px;
}

.servicio-contenido h3 {
    color: var(--azul);
    font-size: 27px;
    margin: 7px 0;
}

.servicio-contenido p {
    font-size: 15px;
}


/*LINEAMIENTOS */

.lineamientos-enlaces {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.lineamientos-enlaces a {
    background: white;
    border: 1px solid #e2e8f0;
    border-left: 3px solid var(--dorado);
    padding: 20px;
    text-decoration: none;
    color: var(--azul);
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s;
}

.lineamientos-enlaces a:hover {
    background: var(--azul);
    color: white;
    transform: translateY(-3px);
}


/*CONTACTO */

.contacto {
    max-width: none;
    width: 100%;
    background: var(--azul-oscuro);
    text-align: center;
    padding-left: 5%;
    padding-right: 5%;
}

.contacto .etiqueta {
    color: var(--dorado-claro);
}

.contacto h2 {
    color: white;
}

.contacto p {
    color: #d5deea;
    max-width: 650px;
    margin: 0 auto 25px;
}

.contacto-pendiente {
    display: inline-block;
    color: var(--dorado-claro);
    font-size: 13px;
}



/* PIE DE PÁGINA*/

.pie {
    background: #0b1d33;
    color: white;
    width: 100%;
    margin: 0;
    display: block;
}

.pie-contenido {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 50px;
    padding: 55px 5% 45px;
}

.pie-marca {
    max-width: 360px;
}

.pie-marca img {
    width: 155px;
    max-height: 65px;
    object-fit: contain;
    background: white;
    padding: 5px;
    border-radius: 3px;
    margin-bottom: 18px;
}

.pie-marca p {
    color: #cbd5e1;
    font-size: 13px;
}

.pie-enlaces {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 35px;
    row-gap: 12px;
    align-content: start;
}

.pie-enlaces h3 {
    grid-column: 1 / -1;
    color: var(--dorado-claro);
    font-size: 16px;
    margin-bottom: 8px;
}

.pie-enlaces a {
    color: #d5deea;
    font-size: 13px;
    text-decoration: none;
    width: fit-content;
}

.pie-enlaces a:hover {
    color: var(--dorado-claro);
}

.pie-final {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 18px 5%;
    text-align: center;
}

.pie-final p {
    color: #aebccd;
    font-size: 12px;
}

/* TABLETS */
@media (max-width: 768px) {

    .pie-contenido {
        gap: 30px;
        padding: 45px 5%;
    }

    .pie-marca {
        max-width: 280px;
    }

    .pie-enlaces {
        column-gap: 20px;
    }
}

/* CELULARES */
@media (max-width: 480px) {

    .pie-contenido {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
        padding: 40px 7% 35px;
    }

    .pie-marca {
        max-width: 100%;
    }

    .pie-enlaces {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 20px;
        row-gap: 12px;
    }

    .pie-enlaces h3 {
        font-size: 16px;
    }

    .pie-enlaces a {
        font-size: 13px;
    }

    .pie-final {
        padding: 18px 5%;
    }
}



/*  ADAPTACIÓN Y/O RESPONSIVE*/

@media (max-width: 900px) {

    .portada-decoracion {
        right: -160px;
        opacity: 0.35;
    }

    .nosotros {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .lineamientos-enlaces {
        grid-template-columns: repeat(2, 1fr);
    }

    .menu {
        gap: 17px;
    }

}


@media (max-width: 650px) {

    .encabezado {
    height: auto;
    min-height: 100px;
}

    .contenedor-header {
        flex-direction: column;
        padding: 12px 0;
        gap: 12px;
    }

    .marca img {
    width: 185px !important;
    max-height: 65px !important;
}

    .menu {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 13px 18px;
    }

    .menu a {
        font-size: 12px;
    }

    .boton-contacto {
        padding: 9px 14px;
    }

    .submenu {
        left: auto;
        right: -20px;
        z-index: 1001;
    }

    
    .portada {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .portada-imagen {
        height: 300px;
    }

    .portada-contenido {
        padding: 55px 8%;
    }

    .portada h1 {
        font-size: 38px;
    }

    .portada p {
        font-size: 15px;
    }


    .seccion {
        padding-top: 70px;
        padding-bottom: 70px;
    }

    .tarjeta-servicio {
        flex-direction: column;
        align-items: flex-start;
        padding: 28px;
    }

    .lineamientos-enlaces {
        grid-template-columns: 1fr;
    }

    .pie-contenido {
        flex-direction: column;
        gap: 35px;
    }

}

/* FUNCIONAMIENTO DEL MENÚ EN CELULARES */

@media (max-width: 650px) {

    .menu-desplegable.abierto .submenu {
        display: block;
    }
    .portada-imagen::after {
    top: auto;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 35%;
    background: linear-gradient(
        to bottom,
        rgba(16, 39, 68, 0) 0%,
        #102744 100%
    );
}

}

/* CUADRO DE MISIÓN, VISIÓN Y VALORES */

.identidad {
    display: block;
    padding-top: 70px;
    padding-bottom: 80px;
}

.identidad-encabezado {
    text-align: center;
    margin-bottom: 45px;
}

.identidad-encabezado h2 {
    color: #102744;
    font-size: 34px;
    margin: 15px 0;
}

.identidad-encabezado p {
    color: #354052;
    font-size: 15px;
}

.identidad-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.identidad-tarjeta {
    background: #ffffff;
    padding: 35px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    border-top: 4px solid #1ba3ec;
    box-shadow: 0 8px 25px rgba(16, 39, 68, 0.06);
}

/* Centrado de iconos y títulos */

.identidad-icono {
    width: 85px;
    height: 75px;
    object-fit: contain;
    display: block;
    margin: 0 auto 18px;
}

.identidad-tarjeta h3 {
    color: #102744;
    font-size: 23px;
    margin: 15px 0;
    text-align: center;
}

.identidad-tarjeta p {
    color: #354052;
    font-size: 15px;
    line-height: 1.9;
    margin: 0;
    text-align: justify;
}

.identidad-valores {
    grid-column: 1 / -1;
}

/* RADAPTACION */

@media (max-width: 768px) {

    .identidad-grid {
        grid-template-columns: 1fr;
    }

    .identidad-valores {
        grid-column: auto;
    }

    .identidad-encabezado h2 {
        font-size: 28px;
    }

}


/* TARJETA SERVICIOS INTERACTIVA  SEEVICIOS*/

.servicio-frente {
    position: relative;
    z-index: 1;
}

.servicio-contenido small {
    display: inline-block;
    margin-top: 15px;
    color: #0094c1;
    font-size: 12px;
    font-weight: bold;
}

/* CUADRO DESPLEGABLE DE LOS SERVICIOS */

.servicio-detalle {
    position: relative;
    width: 100%;
    background: #102744;
    border-top: 4px solid #0094c1;
    color: #ffffff;
    padding: 0 25px;
    border-radius: 10px;
    box-sizing: border-box;

    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;

    margin-top: 0;
    transition: all 0.35s ease;

    box-shadow: 0 12px 25px rgba(16, 39, 68, 0.18);
}

/* ENCABEZADO */

.detalle-encabezado {
    text-align: center;
    margin-bottom: 20px;
}

.detalle-encabezado h3 {
    color: #ffffff;
    font-size: 22px;
    margin-bottom: 8px;
}

.detalle-encabezado p {
    color: #dce8f2;
    font-size: 13px;
}

/* DOS CUADROS INDEPENDIENTES */

.detalle-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.detalle-tarjeta {
    background: #ffffff;
    border-radius: 9px;
    padding: 20px 17px;
    border-top: 4px solid #0094c1;
}

.detalle-tarjeta h4 {
    color: #17365d;
    font-size: 17px;
    margin-bottom: 15px;
}

.detalle-tarjeta ul {
    padding-left: 18px;
    margin: 0;
}

.detalle-tarjeta li {
    color: #354052;
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 8px;
}

.mensaje-importante {
    background: #eaf0f7;
    border-left: 4px solid #0094c1;
    border-radius: 6px;
    padding: 14px;
    margin-top: 18px;
}

.mensaje-importante strong {
    display: block;
    color: #17365d;
    font-size: 13px;
    margin-bottom: 7px;
}

.mensaje-importante p {
    color: #354052;
    font-size: 12px;
    line-height: 1.6;
    margin: 0;
    text-align: left;
}
/* VERSIÓN MÓVIL */

@media (max-width: 600px) {
    .detalle-grid {
        grid-template-columns: 1fr;
    }
}

.tarjeta-contactos .detalle-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.tarjeta-contactos .detalle-tarjeta {
    height: 100%;
    box-sizing: border-box;
}

.tarjeta-contactos .detalle-tarjeta h4 {
    text-align: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

@media (max-width: 600px) {
    .tarjeta-contactos .detalle-grid {
        grid-template-columns: 1fr;
    }
}


/* INFORMACIÓN DE CONTACTOS OFICIALES */

.tarjeta-contactos .detalle-tarjeta p {
    color: #354052;
    font-size: 13px;
    line-height: 1.8;
    margin: 0 0 16px;
    text-align: justify;
}

.tarjeta-contactos .detalle-tarjeta p strong {
    color: #17365d;
    font-size: 13px;
}
/* DISTRIBUCIÓN VERTICAL DE CONTACTOS OFICIALES */

.tarjeta-contactos {
    display: block !important;
    width: 100%;
}

/* TARJETA PRINCIPAL */

.tarjeta-contactos .servicio-frente {
    width: 100%;
    display: block;
}


/* AJUSTES PARA CELULARES */
@media (max-width: 600px) {

    .tarjeta-contactos .detalle-grid {
        grid-template-columns: 1fr;
    }

    .tarjeta-contactos .detalle-tarjeta {
        padding: 25px 20px;
    }

    #contacto {
        padding-bottom: 45px;
    }

}


/* RESTAURAR DESPLEGADO DE CONTACTOS OFICIALES */

.tarjeta-contactos .servicio-detalle {
    position: static !important;
    display: none;
    width: 100%;
    max-height: none;
    overflow: visible;
    padding: 25px;
    margin-top: 20px;
    opacity: 1;
    visibility: visible;
    transform: none;
}

.tarjeta-contactos:hover .servicio-detalle,
.tarjeta-contactos:focus-within .servicio-detalle {
    display: block;
}
/* SEPARACIÓN DEL PIE DE PÁGINA */

#contacto {
    padding-bottom: 60px;
}

@media (max-width: 600px) {

    .tarjeta-contactos .detalle-grid {
        grid-template-columns: 1fr;
    }

}
/* CORRECCIÓN DE TARJETAS DE SERVICIOS */
.tarjeta-servicio.tarjeta-interactiva:not(.tarjeta-contactos) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.tarjeta-servicio.tarjeta-interactiva:not(.tarjeta-contactos) .servicio-frente {
    flex: 0 0 100%;
    width: 100%;
}

.tarjeta-servicio.tarjeta-interactiva:not(.tarjeta-contactos) .servicio-detalle {
    position: static;
    flex: 0 0 100%;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: none;
    transition: max-height 0.5s ease, opacity 0.4s ease, margin 0.4s ease;
}

.tarjeta-servicio.tarjeta-interactiva:not(.tarjeta-contactos):hover .servicio-detalle,
.tarjeta-servicio.tarjeta-interactiva:not(.tarjeta-contactos):focus-within .servicio-detalle {
    max-height: 1500px;
    margin-top: 20px;
    padding: 25px;
    opacity: 1;
    visibility: visible;
}
/* ALINEAR HORARIOS DE CONTACTOS SIPRES Y UNE */
.detalle-tarjeta .dato-domicilio {
    min-height: 180px;
}

/* CORRECCIÓN RESPONSIVA DE CONTACTOS SIPRES Y UNE */

.tarjeta-contactos .detalle-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    align-items: stretch;
}

.tarjeta-contactos .detalle-tarjeta {
    width: 100%;
    min-width: 0;
    height: 100%;
    box-sizing: border-box;
}

.tarjeta-contactos .detalle-tarjeta .dato-domicilio {
    min-height: 180px;
}

/* TABLETAS Y PANTALLAS REDUCIDAS */

@media (max-width: 800px) {

    .tarjeta-contactos .detalle-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tarjeta-contactos .detalle-tarjeta {
        height: auto;
        min-width: 0;
    }

    .tarjeta-contactos .detalle-tarjeta .dato-domicilio {
        min-height: 0;
    }

}

/* CELULARES */

@media (max-width: 480px) {

    .tarjeta-contactos .servicio-detalle {
        padding: 18px;
    }

    .tarjeta-contactos .detalle-tarjeta {
        padding: 20px 15px;
    }

    .tarjeta-contactos .detalle-tarjeta p {
        font-size: 12px;
        overflow-wrap: anywhere;
    }

}

/* VENTANA DE AVISO EMERGENTE */

.aviso-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 99999;

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease,
                visibility 0.35s ease;
}

.aviso-overlay.aviso-visible {
    opacity: 1;
    visibility: visible;
}

.aviso-contenido {
    background: #97f5eca7;
    border: 1px solid #e3e7ef;
    border-radius: 10px;
    padding: 40px;
    width: 100%;
    max-width: 520px;
    text-align: center;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4);

    transform: translateY(20px);
    transition: transform 0.35s ease;
}

.aviso-visible .aviso-contenido {
    transform: translateY(0);
}

.aviso-etiqueta {
    display: inline-block;
    color: #fffefe;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 3px;
    margin-bottom: 18px;
}

.aviso-contenido h2 {
    color: rgb(216, 38, 6);
    font-size: 25px;
    margin-bottom: 18px;
}

.aviso-contenido p {
    color: #010c17;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 28px;
}

.aviso-contenido button {
    background: #eaebf1;
    color: #01051f;
    border: none;
    border-radius: 4px;
    padding: 13px 35px;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s ease;
}

.aviso-contenido button:hover {
    background: #f5f6f7;
    transform: translateY(-2px);
}


/* ADAPTACIÓN A CELULARES */

@media (max-width: 480px) {

    .aviso-contenido {
        padding: 30px 22px;
    }

    .aviso-contenido h2 {
        font-size: 21px;
    }

    .aviso-contenido p {
        font-size: 13px;
    }

}

/* =================================
   EFECTO DE CARGA GENERAL
================================= */

#pantalla-carga {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2147483647;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

/* CONTENIDO */

.carga-contenido {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.carga-contenido img {
    width: 180px;
    max-width: 70%;
    height: auto;
    object-fit: contain;
}

/* CÍRCULO ANIMADO */

.carga-spinner {
    width: 42px;
    height: 42px;
    border: 4px solid #e5eaf1;
    border-top: 4px solid #17365d;
    border-radius: 50%;
    animation: girar-carga 0.8s linear infinite;
}

.carga-contenido p {
    color: #17365d;
    font-size: 14px;
    letter-spacing: 0.5px;
    margin: 0;
}

/* ANIMACIÓN */

@keyframes girar-carga {
    to {
        transform: rotate(360deg);
    }
}

/* OCULTAR PANTALLA */

#pantalla-carga.carga-oculta {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ==========================================
   NUEVA IDENTIDAD VISUAL - SOLPAY
========================================== */

:root {
    --azul: #102744;
    --azul-oscuro: #091a2e;
    --azul-medio: #087fa3;
    --dorado: #087fa3;
    --dorado-claro: #18a5c9;
    --gris: #627487;
    --fondo: #edf3f7;
    --blanco: #ffffff;
}

/* ENCABEZADO */

.encabezado {
    height: 82px;
    background: #ffffff;
    box-shadow: 0 5px 25px rgba(9, 26, 46, 0.07);
    border-bottom: 1px solid #e8eef3;
}

.marca img {
    width: 175px;
    max-height: 62px;
}

.menu {
    gap: 30px;
}

.menu a {
    font-size: 13px;
    letter-spacing: 0.3px;
}

.boton-contacto {
    background: #087fa3;
    border-radius: 30px;
    padding: 12px 25px;
}

.boton-contacto:hover {
    background: #102744;
}

/* SUBMENÚ */

.submenu {
    border-top: 3px solid #087fa3;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
}

/* PORTADA */

.portada {
    min-height: 620px;
    background: #102744;
    position: relative;
}

.portada-imagen {
    height: 620px;
}

.portada-imagen::after {
    background: linear-gradient(
        to right,
        rgba(16, 39, 68, 0.05) 0%,
        rgba(16, 39, 68, 0.15) 40%,
        rgba(16, 39, 68, 0.85) 78%,
        #102744 100%
    );
}

.portada-contenido {
    padding: 65px 8%;
}

.etiqueta-portada {
    display: inline-block;
    color: #27b4d7;
    font-size: 11px;
    letter-spacing: 3px;
    padding-bottom: 12px;
    border-bottom: 2px solid #087fa3;
}

.portada h1 {
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.12;
    letter-spacing: -1px;
    margin: 25px 0;
}

.portada h1 span {
    color: #27b4d7;
}

.portada p {
    color: #d5e2ed;
    line-height: 1.9;
    font-size: 15px;
}

.boton-principal {
    background: #087fa3;
    border-radius: 30px;
    padding: 15px 30px;
}

.boton-principal:hover {
    background: #18a5c9;
}

/* SECCIONES */

.seccion {
    padding-top: 95px;
    padding-bottom: 95px;
}

.etiqueta {
    color: #087fa3;
    letter-spacing: 3px;
    font-size: 11px;
}

.seccion h2 {
    color: #102744;
    letter-spacing: -0.7px;
}

/* NOSOTROS */

.nosotros {
    gap: 65px;
}

.nosotros-texto p {
    line-height: 1.9;
    font-size: 15px;
}

.nosotros-destacado {
    background: linear-gradient(145deg, #102744, #17466a);
    border: none;
    border-radius: 15px;
    padding: 45px;
    box-shadow: 0 20px 40px rgba(16, 39, 68, 0.15);
}

.nosotros-destacado h3,
.nosotros-destacado p {
    color: #ffffff;
}

.nosotros-destacado p {
    opacity: 0.85;
}

.estrella {
    color: #36b8d8;
}

/* SERVICIOS */

.servicios {
    background: #edf3f7;
    padding-top: 100px;
    padding-bottom: 100px;
}

.encabezado-seccion {
    margin-bottom: 55px;
}

.tarjeta-servicio {
    max-width: 900px;
    border: 1px solid #e1eaf0;
    border-bottom: 4px solid #087fa3;
    border-radius: 14px;
    padding: 40px;
    box-shadow: 0 12px 35px rgba(16, 39, 68, 0.07);
    transition: transform 0.3s ease,
                box-shadow 0.3s ease;
}

.tarjeta-servicio:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(16, 39, 68, 0.12);
}

.servicio-icono {
    background: #e4f3f8;
    color: #087fa3;
    border-radius: 15px;
    min-width: 75px;
}

.servicio-contenido > span {
    color: #087fa3;
}

.servicio-contenido h3 {
    color: #102744;
}

.servicio-contenido small {
    color: #087fa3;
}

/* DETALLE DE SERVICIOS */

.servicio-detalle {
    background: #102744;
    border-top: 4px solid #18a5c9;
    border-radius: 12px;
}

.detalle-tarjeta {
    border-radius: 12px;
    border-top: 4px solid #18a5c9;
}

/* MISIÓN, VISIÓN Y VALORES */

.identidad {
    background: #ffffff;
    padding: 100px 5%;
}

.identidad-encabezado {
    max-width: 750px;
    margin: 0 auto 60px;
}

.identidad-encabezado h2 {
    font-size: 36px;
    color: #102744;
}

.identidad-encabezado p {
    line-height: 1.8;
    color: #627487;
}

.identidad-grid {
    max-width: 1150px;
    margin: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

.identidad-tarjeta {
    padding: 38px 28px;
    border: 1px solid #e5edf3;
    border-top: none;
    border-radius: 14px;
    background: #f7fafc;
    box-shadow: 0 12px 30px rgba(16, 39, 68, 0.06);
    transition: transform 0.3s ease,
                box-shadow 0.3s ease;
}

.identidad-tarjeta:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 35px rgba(16, 39, 68, 0.11);
}

.identidad-tarjeta:nth-child(1) {
    border-bottom: 4px solid #087fa3;
}

.identidad-tarjeta:nth-child(2) {
    background: #102744;
    border-bottom: 4px solid #18a5c9;
}

.identidad-tarjeta:nth-child(2) h3,
.identidad-tarjeta:nth-child(2) p {
    color: #ffffff;
}

.identidad-tarjeta:nth-child(2) p {
    color: #d3e0eb;
}

.identidad-tarjeta:nth-child(3) {
    border-bottom: 4px solid #244b78;
}

.identidad-icono {
    width: 75px;
    height: 70px;
    margin-bottom: 25px;
}

.identidad-tarjeta h3 {
    font-size: 22px;
    margin-bottom: 18px;
}

.identidad-tarjeta p {
    font-size: 14px;
    line-height: 1.9;
    text-align: left;
}

/* SI VALORES OCUPA TODA LA FILA */

.identidad-valores {
    grid-column: auto;
}

/* CONTACTO Y DATOS OFICIALES */

.contacto {
    background:
        linear-gradient(135deg, #102744, #091a2e);
    padding-top: 100px;
    padding-bottom: 75px;
}

.contacto .etiqueta {
    color: #35b8d8;
}

.contacto h2 {
    font-size: 36px;
}

.contacto p {
    line-height: 1.9;
}

.tarjeta-contactos {
    max-width: 1000px;
    margin: auto;
}

.tarjeta-contactos .servicio-frente {
    background: #ffffff;
    border-radius: 14px;
    padding: 35px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.tarjeta-contactos .servicio-contenido h3 {
    color: #102744;
}

.tarjeta-contactos .servicio-detalle {
    background: #edf3f7;
    border: 1px solid #dce7ef;
    border-top: 4px solid #087fa3;
    border-radius: 14px;
    padding: 30px;
}

.tarjeta-contactos .detalle-tarjeta {
    background: #ffffff;
    border: 1px solid #e1eaf0;
    border-top: 4px solid #087fa3;
    border-radius: 12px;
    padding: 25px;
}

.tarjeta-contactos .detalle-tarjeta h4 {
    color: #102744;
}

.tarjeta-contactos .detalle-tarjeta p {
    color: #627487;
    line-height: 1.9;
}

/* PIE DE PÁGINA */

.pie {
    background: #08182a;
}

.pie-contenido {
    padding-top: 65px;
    padding-bottom: 55px;
}

.pie-enlaces h3 {
    color: #27b4d7;
}

.pie-enlaces a {
    transition: color 0.3s ease;
}

.pie-enlaces a:hover {
    color: #27b4d7;
}

.pie-final {
    background: #061321;
}

/* RESPONSIVE - TABLETAS */

@media (max-width: 900px) {

    .identidad-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .identidad-valores {
        grid-column: 1 / -1;
    }

    .nosotros {
        gap: 35px;
    }

}

/* RESPONSIVE - CELULARES */

@media (max-width: 650px) {

    .encabezado {
        height: auto;
        min-height: 80px;
    }

    .contenedor-header {
        padding: 12px 0;
    }

    .menu {
        gap: 13px 16px;
    }

    .portada {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .portada-imagen {
        height: 280px;
    }

    .portada-imagen::after {
        background: linear-gradient(
            to bottom,
            transparent 45%,
            #102744 100%
        );
    }

    .portada-contenido {
        padding: 35px 8% 55px;
    }

    .portada h1 {
        font-size: 35px;
    }

    .seccion {
        padding: 65px 6%;
    }

    .nosotros {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .nosotros-destacado {
        padding: 30px 25px;
    }

    .servicios {
        padding: 70px 6%;
    }

    .tarjeta-servicio {
        padding: 25px;
    }

    .identidad {
        padding: 70px 6%;
    }

    .identidad-encabezado {
        margin-bottom: 35px;
    }

    .identidad-encabezado h2 {
        font-size: 29px;
    }

    .identidad-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .identidad-valores {
        grid-column: auto;
    }

    .identidad-tarjeta {
        padding: 30px 25px;
    }

    .contacto {
        padding: 70px 6% 50px;
    }

    .contacto h2 {
        font-size: 29px;
    }

    .tarjeta-contactos .servicio-frente {
        padding: 25px 20px;
    }

    .tarjeta-contactos .servicio-detalle {
        padding: 18px;
    }

    .tarjeta-contactos .detalle-grid {
        grid-template-columns: 1fr;
    }

    .tarjeta-contactos .detalle-tarjeta {
        padding: 22px 17px;
    }

    .tarjeta-contactos .detalle-tarjeta .dato-domicilio {
        min-height: 0;
    }

    .pie-contenido {
        flex-direction: column;
        gap: 30px;
        padding: 40px 7%;
    }

}

/* PANTALLAS MUY PEQUEÑAS */

@media (max-width: 380px) {

    .portada h1 {
        font-size: 30px;
    }

    .menu {
        gap: 12px;
    }

    .menu a {
        font-size: 11px;
    }

    .identidad-tarjeta {
        padding: 25px 20px;
    }

}

/* =========================================
   NUEVA IDENTIDAD VISUAL SOLPAY
   ESTILO TECNOLÓGICO Y CORPORATIVO
========================================= */

:root {
    --solpay-azul: #102744;
    --solpay-turquesa: #087FA3;
    --solpay-fondo: #EAF2F7;
    --solpay-texto: #354052;
    --solpay-blanco: #FFFFFF;
}

/* ENCABEZADO */

.encabezado {
    background: var(--solpay-blanco);
    border-bottom: 1px solid #DCE7EF;
    box-shadow: 0 4px 18px rgba(16, 39, 68, 0.07);
}
/* AUMENTAR LOGOTIPO DEL ENCABEZADO */

.encabezado .contenedor-header .marca img {
    display: block;
    width: 230px !important;
    height: auto !important;
    max-height: 75px !important;
    object-fit: contain;
    flex-shrink: 0;
}

.menu a {
    transition: color 0.3s ease;
}

.menu a:hover {
    color: var(--solpay-turquesa);
}

.boton-contacto {
    background: var(--solpay-turquesa);
    border: 1px solid var(--solpay-turquesa);
    border-radius: 6px;
    color: #FFFFFF !important;
    transition: all 0.3s ease;
}

.boton-contacto:hover {
    background: var(--solpay-azul);
    border-color: var(--solpay-azul);
}

/* PORTADA */

.portada {
    background-color: var(--solpay-azul);
}

.portada-contenido {
    background: linear-gradient(
        135deg,
        rgba(16, 39, 68, 0.97),
        rgba(8, 127, 163, 0.88)
    );
}

.etiqueta-portada {
    color: #8DE0EC;
    letter-spacing: 3px;
}

/* SECCIÓN QUIÉNES SOMOS */

.nosotros {
    background: #FFFFFF;
}

.nosotros h2 {
    color: var(--solpay-azul);
}

.nosotros p {
    color: var(--solpay-texto);
}

.nosotros-destacado {
    background: linear-gradient(
        145deg,
        #102744,
        #087FA3
    );
    color: #FFFFFF;
    border-radius: 14px;
    box-shadow: 0 15px 35px rgba(16, 39, 68, 0.16);
}

.nosotros-destacado h3 {
    color: #FFFFFF;
}

/* MISIÓN, VISIÓN Y VALORES */

.identidad {
    background: var(--solpay-fondo);
}

.identidad-encabezado h2 {
    color: var(--solpay-azul);
}

.identidad-encabezado .etiqueta {
    color: var(--solpay-turquesa);
}

.identidad-grid {
    gap: 25px;
}

.identidad-tarjeta {
    background: #FFFFFF;
    border: 1px solid #DCE7EF;
    border-top: 0;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(16, 39, 68, 0.07);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.identidad-tarjeta::before {
    content: "";
    display: block;
    height: 5px;
    width: 100%;
    background: linear-gradient(
        90deg,
        #102744,
        #087FA3
    );
}

.identidad-tarjeta:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 35px rgba(16, 39, 68, 0.13);
}

.identidad-icono {
    margin-top: 15px;
}

.identidad-tarjeta h3 {
    color: var(--solpay-turquesa);
}

.identidad-tarjeta p {
    color: var(--solpay-texto);
}

/* SERVICIOS: SOLO CAMBIO VISUAL */

.servicios {
    background: #FFFFFF;
}

.servicios .encabezado-seccion h2 {
    color: var(--solpay-azul);
}

.servicios .etiqueta {
    color: var(--solpay-turquesa);
}

.tarjeta-servicio {
    border-color: #DCE7EF;
}

.servicio-frente {
    background-color: var(--solpay-azul);
}

.servicio-contenido h3 {
    color: #FFFFFF;
}

.servicio-contenido small {
    color: #8DE0EC;
}

/* CONTACTO */

.contacto {
    background: var(--solpay-fondo);
}

.contacto h2 {
    color: var(--solpay-azul);
}

.contacto .etiqueta {
    color: var(--solpay-turquesa);
}

/* PIE DE PÁGINA */

.pie {
    background: #102744;
}

.pie a {
    transition: color 0.3s ease;
}

.pie a:hover {
    color: #8DE0EC;
}

/* AJUSTES VISUALES PARA CELULARES
   Se conservan las dimensiones actuales */

@media (max-width: 768px) {

    .identidad-tarjeta:hover {
        transform: none;
    }

}


/* =====================================
   CRÉDITO SIMPLE - NUEVA IDENTIDAD SOLPAY
===================================== */

.tarjeta-servicio {
    border: 1px solid #DCE9EA;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(18, 60, 74, 0.07);
    overflow: hidden;
}

/* Encabezado del producto */
.servicio-frente {
    background: linear-gradient(120deg, #E9F5F5, #D9EEEE);
    border-bottom: 1px solid #C9E2E3;
}

.servicio-contenido h3 {
    color: #123C4A;
}

.servicio-contenido small {
    color: #087F83;
}

/* Panel desplegado */
.servicio-detalle {
    background: #F1F7F8;
    border-top: 1px solid #D8E7E9;
}

/* Título principal */
.servicio-detalle h2,
.servicio-detalle h3 {
    color: #123C4A;
}

/* Separación entre tarjetas */
.detalle-grid {
    gap: 20px;
}

/* Tarjetas de información */
.detalle-tarjeta {
    background: #FFFFFF;
    border: 1px solid #D8E7E9;
    border-left: 4px solid #16A6A0;
    border-radius: 12px;
    box-shadow: 0 5px 16px rgba(18, 60, 74, 0.05);
    transition: transform 0.25s ease,
                box-shadow 0.25s ease;
}

.detalle-tarjeta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(18, 60, 74, 0.09);
}

/* Títulos */
.detalle-tarjeta h3,
.detalle-tarjeta h4 {
    color: #087F83;
}

/* Textos */
.detalle-tarjeta p,
.detalle-tarjeta li {
    color: #465B63;
}

/* Recuadro CAT */
.detalle-tarjeta strong {
    color: #087F83;
}

/* Móvil */
@media (max-width: 768px) {
    .detalle-tarjeta:hover {
        transform: none;
    }

}

/* CENTRAR LOS TÍTULOS DE CRÉDITO SIMPLE */

.tarjeta-servicio:not(.tarjeta-contactos) .servicio-contenido {
    text-align: center !important;
    flex: 1;
}

.tarjeta-servicio:not(.tarjeta-contactos) .detalle-encabezado {
    width: 100%;
    text-align: center !important;
}

.tarjeta-servicio:not(.tarjeta-contactos) .detalle-encabezado h3 {
    display: block;
    width: 100%;
    text-align: center !important;
}
.encabezado .marca img {
    display: block;
    width: 230px;
    height: 75px;
    object-fit: contain;
    flex-shrink: 0;
}