/* ========================= */
/* CONFIGURACIÓN GENERAL      */
/* ========================= */
:root {
    --color-azul-principal: #002e6c;
    --color-rojo-logo: #fe0000;
    --color-blanco: #ffffff;
    --font-principal: 'Montserrat', sans-serif;
    /* Alternativa para Elza Text */
    --font-titulos: 'Aileron', sans-serif;
}

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


html {
    scroll-behavior: smooth;
    /* Para el efecto de desplazamiento suave */
}

body {
    font-family: var(--font-principal);
    color: var(--color-azul-principal);
    background-color: var(--color-blanco);
}

.section-container {
    padding: 80px 5%;
    overflow: hidden;
    /* Evita que la estrella se desborde */
}

/* ========================= */
/* BARRA DE NAVEGACIÓN TECH */
/* ========================= */

.main-header {
    background: var(--color-blanco);
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 2000;
    transition: box-shadow 0.3s;
    box-shadow: 0 6px 24px 0 rgba(0, 46, 108, 0.03);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4vw;
    position: relative;
}

.logo img {
    height: 46px;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    width: 38px;
    height: 38px;
    position: relative;
    z-index: 2100;
    align-items: center;
    justify-content: center;
}

.hamburger span,
.hamburger span::before,
.hamburger span::after {
    content: '';
    display: block;
    background: var(--color-azul-principal);
    height: 4px;
    width: 26px;
    border-radius: 2px;
    position: absolute;
    left: 6px;
    transition: all .3s;
}

.hamburger span {
    top: 16px;
}

.hamburger span::before {
    top: -9px;
    position: absolute;
}

.hamburger span::after {
    top: 9px;
    position: absolute;
}

.flags {
    display: flex;
    gap: 11px;
    align-items: center;
}

.flags img {
    height: 24px;
}

.main-nav {
    width: 100%;
    background: var(--color-blanco);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.main-nav ul {
    display: flex;
    gap: 36px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: var(--color-azul-principal);
    font-family: 'Consolas', 'Menlo', 'Monaco', 'Liberation Mono', monospace;
    font-weight: 500;
    font-size: 1.09rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 7px 0 9px 0;
    transition: color 0.2s;
    position: relative;
    display: inline-block;
}

.main-nav a.active,
.main-nav a:hover {
    color: var(--color-rojo-logo);
}

.nav-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 32px;
    background: linear-gradient(90deg, var(--color-azul-principal) 40%, var(--color-rojo-logo) 100%);
    border-radius: 4px;
    transition: all 0.28s cubic-bezier(.41, .84, .41, 1.01);
    z-index: 1;
    opacity: 1;
    pointer-events: none;
}

/* ----------- MOBILE ----------- */
@media (max-width: 900px) {
    .header-container {
        height: 56px;
        padding: 0 2vw;
    }

    .logo img {
        height: 34px;
    }

    .flags img {
        height: 20px;
    }

    .hamburger {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 56px;
        /* igual a header-container */
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 8px 24px 0 rgba(0, 46, 108, 0.09);
        width: 100%;
        z-index: 1999;
        display: block;
        height: auto;
        min-height: unset;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        width: 100vw;
        display: none;
    }

    .main-nav ul.active {
        display: flex;
    }

    .main-nav ul li {
        width: 100vw;
        padding: 17px 0 17px 18px;
        border-bottom: 1px solid #f0f0f0;
        background: #fff;
        font-size: 1.01rem;
        text-align: left;
    }

    .main-nav .nav-underline {
        display: none;
    }

    .header-container {
        flex-direction: row;
        justify-content: space-between;
        gap: 0;
        align-items: center;
    }

    .flags {
        position: static;
        margin-right: 7px;
    }

    .header-container {
        display: grid;
        grid-template-columns: 48px 1fr 48px;
        /* Izq: hamburguesa, centro: logo, der: banderas */
        align-items: center;
        height: 56px;
        padding: 0 2vw;
        max-width: 100vw;
        gap: 0;
        position: relative;
    }

    .hamburger {
        display: flex;
        grid-column: 1 / 2;
        justify-self: start;
        align-items: center;
        /* Extra: centra la hamburguesa en su celda */
        margin-left: 0;
    }

    .logo {
        grid-column: 2 / 3;
        justify-self: center;
        display: flex;
        align-items: center;
    }

    .logo img {
        height: 34px;
    }

    .flags {
        grid-column: 3 / 4;
        justify-self: end;
        align-items: center;
        gap: 6px;
        display: flex;
        margin-right: 0;
    }

    .flags img {
        height: 20px;
    }

    .flags img {
        margin-left: 2px;
        margin-right: 2px;
    }

}

/* ========= HERO (centrado real) ========== */
.hero{
    /* ocupa SOLO el espacio libre que se ve debajo del header */
    min-height: calc(100vh - 70px);   /* desktop: header = 70 px */
    width: 100%;
    display: flex;
    align-items: center;              /* centra vertical */
    justify-content: center;          /* centra horizontal */
    position: relative;
    text-align: center;
    background: #ffffff;
}

.hero-logo{
    max-width: 560px;     /* ↑ más grande */
    width: 55vw;          /* responde al ancho de pantalla */
    height: auto;
}

/* móviles / tablets */
@media (max-width: 900px){
    .hero{
        min-height: calc(100vh - 56px); /* header móvil = 56 px */
    }
    .hero-logo{
        max-width: 360px;   /* ↑ también más grande aquí */
        width: 70vw;
    }
}


/* ===== ESTRELLA DE FONDO ===== */
#estrella-bg{
    position: absolute;
    left: 2vw;
    top: calc(156vh - 90px);  /* 56 vh originales + 100 vh del hero */
    width: 600px;
    height: 600px;
    background-image: url('images/estrella.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.08;
    z-index: 2;
    pointer-events: none;
}

@media (max-width: 992px){
    #estrella-bg{
        top: calc(178vh - 210px); /* 78 vh mobile + 100 vh hero */
        width: 420px;
        height: 420px;
        opacity: 0.05;
        left: 50vw;
        transform: translateX(-50%);
    }
}


/* ========================= */
/* SECCIÓN NOSOTROS       */
/* ========================= */
#nosotros {
    position: relative;
    /* Contenedor para la estrella de fondo */
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding-top: 180px !important;
}

.nosotros-content {
    display: flex;
    align-items: flex-start;
    /* Alinea la parte superior */
    gap: 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.nosotros-title {
    flex: 0 0 35%;
    text-align: left;
    align-self: flex-start;
    /* Asegura el título arriba del todo */
    margin-top: -64px;
    /* Súbelo aún más, ajustá a gusto */
}

.nosotros-title h2 {
    font-family: var(--font-titulos);
    font-weight: 500;
    font-size: 5rem;
    color: var(--color-azul-principal);
    line-height: 1;
    margin-top: 0;
    margin-bottom: 0;
    letter-spacing: -3px;
}

@media (max-width: 992px) {
    .nosotros-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .nosotros-title {
        margin-top: -24px;
        margin-bottom: 16px;
        text-align: center;
        width: 100%;
    }

    .nosotros-title h2 {
        font-size: 4rem;
    }
}


.nosotros-text {
    flex: 1;
    /* La columna del texto ocupa el espacio restante */
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* Espacio entre párrafos */
}

.nosotros-text p {
    line-height: 1.6;
    font-size: 16px;
}

/* Estilos específicos de tipografía para los párrafos */
.text-semibold {
    font-family: var(--font-principal);
    font-weight: 900 !important;
    /* Antes era 600 */
    font-size: 21px !important;
    /* Un poco más grande si lo deseás */
    color: var(--color-azul-principal);
    text-align: center !important;
    /* Centrado solo este */
    margin-bottom: 14px;
    line-height: 1.5;
    letter-spacing: -0.02em;
}


.text-medium {
    font-family: var(--font-principal);
    font-weight: 500;
    /* Medium */
    color: var(--color-azul-principal);
}

/* ========================= */
/* RESPONSIVE DESIGN      */
/* ========================= */
@media (max-width: 992px) {
    .nosotros-content {
        flex-direction: column;
        text-align: center;
    }

    .nosotros-title h2 {
        font-size: 4rem;
        margin-bottom: 30px;
    }

    #nosotros::before {
        left: 50%;
        opacity: 0.05;
    }
}

@media (max-width: 768px) {
    .main-header {
        position: relative;
    }

    .header-container {
        flex-direction: column;
        gap: 20px;
    }

    .nosotros-title h2 {
        font-size: 3rem;
    }
}

/* ========================= */
/* ESTILOS GENERALES DE SECCIÓN */
/* ========================= */
main {
    width: 100%;
}

.section-title {
    font-family: var(--font-titulos);
    font-weight: 500;
    /* Semibold */
    font-size: 3rem;
    color: var(--color-azul-principal);
    text-align: center;
    margin-bottom: 50px;
}

.section-light {
    background-color: #f8f9fa;
    /* Un gris muy claro para alternar secciones */
}

.section-dark {
    background-color: #002a6e;
    /* El azul oscuro del logo */
    color: #bed8fc;
}

.section-dark .section-title {
    color: #ffffff;
}

/* =============== */
/* SECCIÓN SERVICIOS */
/* =============== */

#nosotros,
#servicios {
    background-color: #ffffff !important;
}

.servicios-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 38px 42px;
    max-width: 900px;
    margin: 0 auto;
}

.servicio-card {
    background: #fff;
    border: 1.5px solid #dde6f6;
    border-radius: 20px;
    box-shadow: 0 2px 10px 0 rgba(0, 40, 100, 0.07);
    padding: 42px 34px 34px 38px;
    cursor: pointer;
    transition: box-shadow 0.3s, border 0.3s;
    min-height: 330px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.servicio-card:hover {
    box-shadow: 0 10px 32px 0 rgba(0, 46, 108, 0.14);
    border: 1.5px solid var(--color-azul-principal);
}

.servicio-card h3 {
    font-family: var(--font-titulos);
    font-size: 2rem;
    color: var(--color-azul-principal);
    margin-bottom: 22px;
    font-weight: 700;
}

.servicio-card ol {
    width: 100%;
    padding-left: 0;
    margin-left: 0;
    counter-reset: itemnum;
}

.servicio-card li {
    list-style: none;
    margin-bottom: 15px;
    padding-left: 40px;
    position: relative;
    font-size: 1.12rem;
    font-family: var(--font-principal);
    color: #34425c;
}

.servicio-card li::before {
    counter-increment: itemnum;
    content: counter(itemnum, decimal-leading-zero);
    background: var(--color-azul-principal);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 0;
    top: 0.1em;
    box-shadow: 0 1px 3px 0 rgba(0, 40, 100, 0.05);
    letter-spacing: -1px;
}

@media (max-width: 900px) {
    .servicios-cards {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 600px;
    }

    .servicio-card {
        min-height: 0;
        padding: 26px 16px 22px 24px;
    }

    .servicio-card h3 {
        font-size: 1.18rem;
        margin-bottom: 12px;
    }
}

@media (max-width: 600px) {
    .servicio-card {
        border-radius: 16px;
        padding: 14px 7vw 16px 9vw;
    }

    .servicio-card h3 {
        font-size: 1rem;
    }
}

/* ========== MODAL SERVICIOS ========== */
.modal-servicio {
    display: none;
    position: fixed;
    z-index: 9000;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(20, 38, 65, 0.23);
    justify-content: center;
    align-items: center;
}

.modal-servicio.active {
    display: flex;
    animation: modalIn 0.19s ease;
}

@keyframes modalIn {
    0% {
        opacity: 0;
        transform: scale(0.98);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-servicio-content {
    background: #fff;
    border-radius: 34px;
    max-width: 1100px;
    min-width: 420px;
    width: 75vw;
    max-height: 92vh;
    padding: 60px 60px 48px 60px;
    box-shadow: 0 10px 44px 0 rgba(0, 46, 108, 0.18);
    position: relative;
    animation: modalContentIn 0.22s cubic-bezier(.27, 1.04, .48, .99);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (max-width: 1200px) {
    .modal-servicio-content {
        width: 94vw;
        padding: 36px 7vw 32px 7vw;
        min-width: unset;
    }
}

@media (max-width: 700px) {
    .modal-servicio-content {
        max-width: 99vw;
        width: 99vw;
        padding: 20px 6vw 20px 6vw;
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 32px;
    font-size: 2.5rem;
    font-weight: 400;
    color: #7281a7;
    cursor: pointer;
    transition: color 0.18s;
    z-index: 10;
}

.modal-close:hover {
    color: var(--color-rojo-logo);
}

.modal-servicio-body h2 {
    font-family: var(--font-titulos);
    color: var(--color-azul-principal);
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 32px;
    margin-top: 0;
    text-align: left;
    letter-spacing: -1px;
    border-bottom: 2px solid #f1f5fa;
    padding-bottom: 10px;
}

.modal-servicio-body ol,
.modal-servicio-body ul {
    margin: 0 0 0 0;
    padding-left: 0;
    counter-reset: modalitem;
}

.modal-servicio-body>ol>li,
.modal-servicio-body>ul>li {
    list-style: none;
    margin-bottom: 24px;
    position: relative;
    padding-left: 60px;
    min-height: 36px;
}

.modal-servicio-body>ol>li::before,
.modal-servicio-body>ul>li::before {
    counter-increment: modalitem;
    content: counter(modalitem, decimal-leading-zero);
    background: var(--color-azul-principal);
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 0;
    top: 0.12em;
    box-shadow: 0 2px 6px 0 rgba(0, 40, 100, 0.08);
}

.modal-servicio-body li b {
    color: var(--color-rojo-logo);
    font-weight: 700;
    font-size: 1.07em;
    font-family: var(--font-titulos);
    letter-spacing: -0.5px;
}

.modal-servicio-body ul {
    margin-top: 8px;
    margin-bottom: 0;
    padding-left: 16px;
    counter-reset: none;
}

.modal-servicio-body ul li {
    list-style: disc inside;
    color: #2d3554;
    font-size: 1.03rem;
    background: none;
    padding-left: 0;
    margin-bottom: 7px;
    position: relative;
}

.modal-servicio-body li {
    font-family: var(--font-principal);
    color: #34425c;
    line-height: 1.65;
    background: none;
}


/* ========================= */
/* SECCIÓN PROFESIONALES   */
/* ========================= */
.section-profesionales {
    background: #f8faff;
}

.profesionales-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px 38px;
    max-width: 880px;
    margin: 0 auto;
}

.profesional-card {
    background: #002a6e;
    border-radius: 16px;
    padding: 38px 34px 32px 34px;
    color: #fff;
    cursor: pointer;
    transition: box-shadow 0.22s, transform 0.22s;
    box-shadow: 0 2px 18px 0 rgba(0, 46, 108, 0.11);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 126px;
    border: 1.5px solid #d9e5f6;
    position: relative;
}

.profesional-card:hover {
    box-shadow: 0 10px 32px 0 rgba(0, 46, 108, 0.21);
    background: linear-gradient(90deg, #002a6e 80%, #fe0000 110%);
    transform: scale(1.024) translateY(-2px);
}

.profesional-card .profesion {
    font-size: 1.04rem;
    font-family: var(--font-titulos);
    font-weight: 600;
    color: #bed8fc;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 8px #00193b23;
}

.profesional-card .nombre {
    font-size: 1.38rem;
    font-family: var(--font-principal);
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.7px;
}

@media (max-width: 900px) {
    .profesionales-cards {
        grid-template-columns: 1fr;
        gap: 22px;
        max-width: 97vw;
    }

    .profesional-card {
        padding: 26px 17px 16px 17px;
        min-height: 85px;
    }

    .profesional-card .nombre {
        font-size: 1.11rem;
    }

    .profesional-card .profesion {
        font-size: 0.96rem;
    }
}

/* Modal Profesionales */
.modal-profesional {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 42, 110, 0.16);
    justify-content: center;
    align-items: center;
}

.modal-profesional.active {
    display: flex;
    animation: modalIn 0.17s ease;
}

.modal-profesional-content {
    background: #fff;
    border-radius: 30px;
    max-width: 640px;
    width: 93vw;
    box-shadow: 0 12px 44px 0 rgba(0, 46, 108, 0.21);
    padding: 44px 48px 32px 48px;
    position: relative;
    animation: modalContentIn 0.17s cubic-bezier(.27, 1.04, .48, .99);
    border-top: 7px solid #002a6e;
    border-bottom: 4px solid #fe0000;
}

@media (max-width: 700px) {
    .modal-profesional-content {
        max-width: 99vw;
        width: 99vw;
        padding: 22px 5vw 17px 5vw;
    }
}

.modal-profesional-close {
    position: absolute;
    top: 12px;
    right: 32px;
    font-size: 2.4rem;
    font-weight: 400;
    color: #fe0000;
    cursor: pointer;
    transition: color 0.18s;
    z-index: 10;
}

.modal-profesional-close:hover {
    color: #002a6e;
}

.modal-profesional-body h3 {
    font-family: var(--font-titulos);
    font-size: 1.45rem;
    font-weight: 700;
    color: #002a6e;
    margin-top: 0;
    margin-bottom: 7px;
    letter-spacing: -0.8px;
}

.modal-profesional-body h4 {
    font-family: var(--font-titulos);
    font-size: 1.08rem;
    color: #fe0000;
    margin-top: 0;
    margin-bottom: 13px;
    font-weight: 600;
    letter-spacing: -0.6px;
}

.modal-profesional-body p {
    font-size: 1.06rem;
    color: #232f4e;
    font-family: var(--font-principal);
    margin-bottom: 13px;
    line-height: 1.6;
}

@keyframes modalIn {
    0% {
        opacity: 0;
        transform: scale(0.96);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes modalContentIn {
    0% {
        transform: translateY(36px) scale(0.95);
    }

    100% {
        transform: translateY(0) scale(1);
    }
}


/* ========================= */
/* SECCIÓN CLIENTES      */
/* ========================= */
.clientes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.cliente-col h3 {
    font-family: 'Roboto Mono', monospace;
    /* Alternativa Consolas */
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
}

.cliente-col ul {
    list-style: none;
    padding: 0;
}

.cliente-col li {
    font-family: 'Roboto Mono', monospace;
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
    color: #bed8fc;
}

.cliente-col li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-rojo-logo);
}

.flag-icon {
    font-size: 2rem;
}

/* ========================= */
/* FOOTER            */
/* ========================= */
.main-footer {
    background-color: #001f50;
    /* Un azul un poco más oscuro para el footer */
    color: #e0e0e0;
    padding-top: 50px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-logo {
    background: #fff;
    border-radius: 18px;
    height: fit-content;
    padding: 10px 10px 10px 10px;
    display: inline-block;
    box-shadow: 0 3px 24px 0 rgba(0, 0, 0, 0.07);
}

.footer-logo img {
    height: 50px;
    opacity: 1;
    display: block;
}


.footer-nav,
.footer-contact {
    min-width: 200px;
}

.footer-container h4 {
    font-family: var(--font-titulos);
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-nav a,
.footer-contact p {
    display: block;
    color: #bed8fc;
    text-decoration: none;
    margin-bottom: 10px;
    font-family: var(--font-principal);
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    padding: 20px 5%;
    margin-top: 40px;
    border-top: 1px solid #003380;
    font-size: 0.9rem;
    color: #a0a0a0;
}

.profesional-card .profesion,
.modal-profesional-body h3 {
    font-family: 'Consolas', 'Menlo', 'Monaco', 'Liberation Mono', monospace !important;
    letter-spacing: 0;
}

.servicio-card h3,
.modal-servicio-body h2 {
    font-family: 'Consolas', 'Menlo', 'Monaco', 'Liberation Mono', monospace !important;
    letter-spacing: 0;
}

/* ======= MOBILE FIRST: Ajustes generales ======= */
@media (max-width: 576px) {
    html {
        font-size: 14px;
    }

    .section-container {
        padding: 35px 2vw;
    }

    /* Sección Nosotros */
    #nosotros {
        flex-direction: column;
        padding-top: 75px !important;
        min-height: unset;
    }

    .nosotros-title {
        margin-top: -9px;
        margin-bottom: 5px;
        text-align: center;
    }

    .nosotros-title h2 {
        font-size: 2.2rem;
        margin-bottom: 14px;
    }

    .nosotros-text p {
        font-size: 15px;
    }

    .text-semibold {
        font-size: 1.13rem !important;
        margin-bottom: 10px;
    }

    /* Tarjetas de servicios */
    .servicios-cards {
        grid-template-columns: 1fr;
        gap: 15px;
        max-width: 97vw;
        overflow-x: auto;
    }

    .servicio-card {
        padding: 16px 10px 15px 16px;
        border-radius: 11px;
        min-height: unset;
    }

    .servicio-card h3 {
        font-size: 1rem;
    }

    .servicio-card li {
        font-size: 0.99rem;
        margin-bottom: 9px;
        padding-left: 28px;
    }

    .servicio-card li::before {
        width: 21px;
        height: 21px;
        font-size: 0.89rem;
        top: 0.17em;
    }

    /* Modal servicio */
    .modal-servicio-content {
        max-width: 99vw;
        min-width: 0;
        width: 98vw;
        padding: 14px 3vw 12px 3vw;
        border-radius: 15px;
    }

    .modal-servicio-body h2 {
        font-size: 1.2rem;
        padding-bottom: 5px;
    }

    .modal-servicio-body>ol>li,
    .modal-servicio-body>ul>li {
        padding-left: 32px;
        min-height: 22px;
        margin-bottom: 10px;
    }

    .modal-servicio-body>ol>li::before,
    .modal-servicio-body>ul>li::before {
        width: 18px;
        height: 18px;
        font-size: 0.80rem;
        top: 0.15em;
    }

    /* Tarjetas profesionales */
    .profesionales-cards {
        grid-template-columns: 1fr;
        gap: 13px;
        max-width: 99vw;
    }

    .profesional-card {
        padding: 12px 7px 10px 11px;
        border-radius: 8px;
        min-height: unset;
    }

    .profesional-card .profesion {
        font-size: 0.93rem;
    }

    .profesional-card .nombre {
        font-size: 1.01rem;
    }

    .modal-profesional-content {
        max-width: 99vw;
        width: 99vw;
        padding: 10px 3vw 9px 3vw;
        border-radius: 11px;
    }

    .modal-profesional-body h3 {
        font-size: 1.1rem;
        margin-bottom: 5px;
    }

    .modal-profesional-body h4 {
        font-size: 0.92rem;
        margin-bottom: 5px;
    }

    .modal-profesional-body p {
        font-size: 0.98rem;
        margin-bottom: 6px;
    }

    /* Clientes */
    .clientes-grid {
        grid-template-columns: 1fr;
        gap: 13px;
        max-width: 100vw;
        padding-left: 2vw;
        padding-right: 2vw;
    }

    .cliente-col h3 {
        font-size: 1.06rem;
        margin-bottom: 10px;
    }

    .cliente-col li {
        font-size: 0.97rem;
        margin-bottom: 6px;
        padding-left: 13px;
    }

    /* Footer */
    .main-footer {
        padding-top: 24px;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        padding: 0 2vw;
    }

    .footer-logo img {
        height: 30px;
    }

    .footer-nav,
    .footer-contact {
        min-width: unset;
        align-items: center;
        margin-bottom: 8px;
    }

    .footer-container h4 {
        font-size: 1rem;
        margin-bottom: 7px;
        text-align: center;
    }

    .footer-bottom {
        margin-top: 12px;
        padding: 7px 0;
        font-size: 0.81rem;
    }
}

/* Smallest screens (<420px) */
@media (max-width: 420px) {
    html {
        font-size: 12px;
    }

    .main-header {
        padding: 5px 1vw;
    }

    .section-title {
        font-size: 1.21rem;
    }

    .servicio-card h3,
    .profesional-card .profesion,
    .modal-profesional-body h3 {
        font-size: 0.99rem;
    }
}