/* ==========================================================
   DESIGN TOKENS
========================================================== */

:root {

    /* ========= Colores ========= */

    --color-primary: #72886c;
    --color-secondary: #a8b49e;
    --color-accent: #bdcbc2;
    --color-light: #ebe6dd;
    --color-white: #ffffff;
    --color-black: #000000;

    --color-text: #555;

    /* ========= Tipografía ========= */

    --font-primary: "Raleway", sans-serif;

    /* ========= Espaciado ========= */

    --space-xs: .5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    --space-xxl: 8rem;

    /* ========= Bordes ========= */

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 999px;

    /* ========= Sombras ========= */

    --shadow-sm: 0 6px 18px rgba(0, 0, 0, .06);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, .08);
    --shadow-lg: 0 18px 35px rgba(0, 0, 0, .12);

    /* ========= Transiciones ========= */

    --transition-fast: .2s ease;
    --transition-normal: .3s ease;
    --transition-slow: .5s ease;

    /* ========= Layout ========= */

    --container-width: 1200px;

    /* ========= Footer ========= */

    --color-footer-text: #ffffff;
    --color-footer-text-soft: #ebe6dd;
    --color-footer-text-muted: #d6ddd1;
    --color-footer-border: #8ea184;

}

/* =====================================

   BREAKPOINTS (Referencia)

   Desktop : 1200px
   Laptop  : 1024px
   Tablet  : 768px
   Mobile  : 480px

===================================== */

/* ==========================================================
   RESET
========================================================== */

*,
*::before,
*::after {

    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

html {

    scroll-behavior: smooth;
    scroll-padding-top: 100px;

}

body {

    min-height: 100vh;

}

img {

    display: block;
    max-width: 100%;
    height: auto;

}

a {

    text-decoration: none;
    color: inherit;

}

ul,
ol {

    list-style: none;

}

/* ==========================================================
   GENERAL
========================================================== */

body {

    font-family: var(--font-primary);
    background-color: var(--color-white);
    color: var(--color-text);
    line-height: 1.6;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

}

/* ==========================================================
   ACCESIBILIDAD
========================================================== */

.sr-only {

    position: absolute;

    width: 1px;

    height: 1px;

    padding: 0;

    margin: -1px;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);

    white-space: nowrap;

    border: 0;

}

/* ==========================================================
   UTILIDADES DE ACCESIBILIDAD
========================================================== */

.sr-only {

    position: absolute;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);

    white-space: nowrap;

    border: 0;

}

/* ==========================================================
   CONTENEDOR GLOBAL
========================================================== */

.container {

    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;

}

/* ==========================================================
   HEADER
========================================================== */

header {

    background-color: var(--color-white);
    position: sticky;
    top: 0;
    z-index: 1000;


}


/* ==========================================================
   NAVEGACIÓN
========================================================== */

nav {

    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: var(--space-md);

    padding: var(--space-md) 0;

}

/* ==========================================================
   MARCA
========================================================== */
.brand {

    display: flex;
    align-items: center;
    gap: .75rem;

    text-decoration: none;
    color: inherit;

}

.brand__mark {

    flex: none;
    height: 46px;
    width: auto;

}

.brand__text {

    min-width: 0;

}

.brand h1 {

    color: var(--color-primary);
    line-height: 1.1;
    white-space: nowrap;

}


.brand p {
    color: var(--color-text);
    font-size: .95rem;
    line-height: 1.3;
    margin-top: .1rem;
    white-space: nowrap;
}

/* ==========================================================
   MENÚ
========================================================== */

.menu {

    display: flex;

    gap: .25rem;


}

.menu a {
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}

.menu a:hover,
.menu a:focus-visible {

    color: var(--color-secondary);

}

.menu a.active {
    background-color: var(--color-accent);
    color: var(--color-primary);
    font-weight: 600;
}

.menu.is-open {
    display: flex;
}

/* ==========================================================
   HERO
========================================================== */

#hero {

    padding: var(--space-xl) 0;

}

#hero .container {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: var(--space-xl);

}

#hero h1 {

    color: var(--color-primary);

    line-height: 1.15;


}

.hero-content {

    flex: 2;

    display: flex;

    flex-direction: column;

    gap: var(--space-md);

}

#hero p {

    max-width: 38rem;

}


.hero-content {

    flex: 2;

    display: flex;

    flex-direction: column;

    gap: var(--space-md);

}

.hero-image {

    flex: 3;

    height: 450px;

    overflow: hidden;

    border-radius: var(--radius-md);

    box-shadow: var(--shadow-md);

}

.hero-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    box-shadow: var(--shadow-md);

}

/* ==========================================================
   BOTÓN
========================================================== */

.button {

    display: inline-flex;

    justify-content: center;

    align-items: center;

    width: fit-content;

    padding: .9rem 1.8rem;

    background-color: var(--color-primary);

    color: var(--color-white);

    font-weight: 600;

    border-radius: var(--radius-pill);

    transition:
        background-color var(--transition-normal),
        transform var(--transition-fast),
        box-shadow var(--transition-fast);

}

.button:hover,
.button:focus-visible {

    background-color: var(--color-secondary);

    transform: translateY(-2px);

    box-shadow: var(--shadow-md);

}


/* ==========================
   ABOUT
========================== */

#about {

    padding: var(--space-xl) 0;

}

#about .container {

    display: flex;

    align-items: center;

    gap: var(--space-xl);

}

.about-image {

    flex: 1;

}

.about-image img {

    width: 100%;

    border-radius: var(--radius-md);

    box-shadow: var(--shadow-md);

}

.about-content {

    flex: 1;

    display: flex;

    flex-direction: column;

    gap: var(--space-md);

}

.about-content h2 {

    font-size: 2.5rem;

    color: var(--color-primary);

    line-height: 1.2;

}

.about-content p {

    line-height: 1.8;

}

.section-tag {

    color: var(--color-primary);

    font-weight: 700;

    letter-spacing: .12em;

    font-size: .85rem;

    text-transform: uppercase;

}

/* ==========================
   SERVICES
========================== */

#services {

    padding: var(--space-xl) 0;

}

#services .container {

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: var(--space-md);

}

/* ---------- Encabezado ---------- */

#services h2 {

    font-size: 2.5rem;

    color: var(--color-primary);

    line-height: 1.2;

    text-align: center;

    max-width: 700px;

}

#services .section-description {

    max-width: 700px;

    text-align: center;

    line-height: 1.8;

}

/* ==========================
   GRID
========================== */

.services-grid {

    width: 100%;

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: var(--space-md);

}

/* ==========================
   CARD
========================== */

.service-card {

    background-color: var(--color-white);

    border-radius: var(--radius-md);

    overflow: hidden;

    box-shadow: var(--shadow-md);

    opacity: 0;

    transform: translateY(20px);

    transition:
        opacity .6s ease,
        transform .6s ease,
        box-shadow .3s ease;

}

.service-card.is-visible {

    opacity: 1;

    transform: translateY(0);

}

.service-card:hover {

    transform: translateY(-6px);

    box-shadow: var(--shadow-lg);

}

/* ---------- Imagen ---------- */

.service-card img {

    width: 100%;

    aspect-ratio: 4/3;

    object-fit: cover;

}


/* ==========================
   CONTENIDO
========================== */

.service-content {

    display: flex;

    flex-direction: column;

    gap: .8rem;

    padding: 1.5rem;

}

/* ---------- Título ---------- */

.service-content h3 {

    margin: 0;

    color: var(--color-primary);

    font-size: 1.35rem;

}

/* ---------- Texto ---------- */

.service-content p {

    margin: 0;

    line-height: 1.7;

}

/* ==========================
   TEAM
========================== */

#team {

    padding: var(--space-xl) 0;

}

#team .container {

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: var(--space-md);

}

/* ---------- Encabezado ---------- */

#team h2 {

    font-size: 2.5rem;

    color: var(--color-primary);

    text-align: center;

    line-height: 1.2;

    max-width: 700px;

}

#team .section-description {

    max-width: 700px;

    text-align: center;

    line-height: 1.8;

}

/* ==========================
   GRID
========================== */

.team-grid {

    width: 100%;

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: var(--space-md);

}

/* ==========================
   CARD
========================== */

.team-card {

    background: var(--color-white);

    border-radius: var(--radius-md);

    overflow: hidden;

    box-shadow: var(--shadow-md);

    transition:
        transform var(--transition-fast),
        box-shadow var(--transition-fast);

}

.team-card:hover {

    transform: translateY(-6px);

    box-shadow: var(--shadow-lg);

}

/* ==========================================================
   ANIMACIÓN - TEAM
========================================================== */

.team-card {

    opacity: 0;

    transform: translateY(25px);

    transition:
        opacity .7s ease,
        transform .7s ease;

}

.team-card.is-visible {

    opacity: 1;

    transform: translateY(0);

}

/* ==========================
   FOTO
========================== */

.team-card img {

    width: 100%;

    aspect-ratio: 4/5;

    object-fit: cover;

}

/* ==========================
   CONTENIDO
========================== */

.team-content {

    display: flex;

    flex-direction: column;

    gap: 1rem;

    padding: 1.8rem;

}

/* ---------- Nombre ---------- */

.team-content h3 {

    margin: 0;

    color: var(--color-primary);

    font-size: 1.5rem;

}

/* ---------- Frase ---------- */

.team-content blockquote {

    margin: 0;

    padding-left: 1rem;

    border-left: 4px solid var(--color-accent);

    color: var(--color-text);

    font-size: 1.05rem;

    line-height: 1.8;

    font-style: italic;

}

/* ---------- Formación ---------- */

.team-credentials {

    margin-top: auto;

    font-size: .95rem;

    line-height: 1.7;

}

/* ==========================================================
   HORARIOS
========================================================== */

#horarios {
    padding: var(--space-xl) 0;
}


/* ==========================================================
   CONTENEDOR
========================================================== */

#horarios .horarios-container {
    display: flex;
    flex-direction: column;
    align-items: center;

    width: 100%;
    max-width: 1200px;

    box-sizing: border-box;

    padding: 0 16px;

    min-width: 0;

    margin: 0 auto;
}


/* ==========================================================
   ENCABEZADO
========================================================== */

#horarios .horarios-header,
#horarios .horarios-cta {
    text-align: center;
    width: 100%;
}

#horarios .section-tag {
    display: inline-block;
    margin-bottom: 8px;
}

#horarios h2 {
    max-width: 700px;
    margin: 0 auto;

    font-size: 2.5rem;
    line-height: 1.2;

    color: var(--color-primary);
}

#horarios .section-description {
    max-width: 700px;
    margin: var(--space-sm) auto 0;

    line-height: 1.8;
    text-align: center;

    color: var(--color-text);
}


/* ==========================================================
   CONTENEDOR DE TABLA
========================================================== */

#horarios .schedule-closure {
    max-width: 640px;
    margin: 1.25rem auto 1.75rem;
    padding: .85rem 1.1rem;

    border-left: 3px solid var(--color-primary);
    border-radius: var(--radius-sm, 8px);
    background-color: var(--color-light);
    color: var(--color-text);

    font-size: .98rem;
    text-align: center;
}

#horarios .schedule-closure strong {
    color: var(--color-primary);
}

#horarios .table-wrapper {
    width: 100%;
    max-width: 100%;

    margin: 30px 0;

    box-sizing: border-box;

    overflow-x: auto;
    overflow-y: hidden;

    -webkit-overflow-scrolling: touch;

    align-self: flex-start;

    background-color: var(--color-white);

    border-radius: var(--radius-md);

    box-shadow: var(--shadow-sm);
}


/* ==========================================================
   TABLA
========================================================== */

#horarios .schedule-table {
    width: 100%;
    min-width: 680px;

    border-collapse: collapse;

    text-align: center;
}


/* ==========================================================
   ENCABEZADOS Y CELDAS
========================================================== */

#horarios .schedule-table th,
#horarios .schedule-table td {
    padding: 16px;

    text-align: center;

    border-bottom: 1px solid var(--color-accent);

    white-space: nowrap;
}

#horarios .schedule-table th {
    background-color: var(--color-light);

    color: var(--color-primary);

    font-weight: 600;
}

#horarios .schedule-table .th-time,
#horarios .schedule-table .time-slot {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

#horarios .schedule-table td {
    color: var(--color-text);
    vertical-align: middle;
}


/* ==========================================================
   CLASES
========================================================== */

#horarios .class-tag {
    display: inline-block;

    padding: 4px 8px;

    background-color: var(--color-light);

    border-radius: var(--radius-sm);

    color: var(--color-text);

    font-size: .9rem;
}


/* ==========================================================
   HORARIO VACÍO
========================================================== */

#horarios .empty-slot {
    color: var(--color-text);
    opacity: .5;
}


/* ==========================================================
   CTA
========================================================== */

#horarios .horarios-cta {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: var(--space-sm);

    margin-top: 0;
}

#horarios .horarios-cta p {
    margin: 0;

    color: var(--color-text);

    font-size: .95rem;
}


/* ==========================
   FAQ
========================== */

#faq {

    padding: var(--space-xl) 0;

}

#faq .container {

    display: flex;

    flex-direction: column;

    align-items: center;

}


/* ==========================
   ENCABEZADO
========================== */

#faq h2 {

    font-size: 2.5rem;

    color: var(--color-primary);

    text-align: center;

    line-height: 1.2;

    max-width: 700px;

    margin: 1rem auto .8rem;

}

#faq .section-description {

    max-width: 600px;

    margin: 0 auto var(--space-lg);

    text-align: center;

    line-height: 1.8;

    color: var(--color-text);

}


/* ==========================
   LISTA
========================== */

.faq-list {

    width: 100%;

    max-width: 850px;

    display: flex;

    flex-direction: column;

    gap: 1rem;

}


/* ==========================
   ITEM
========================== */

.faq-item {

    background: var(--color-white);

    border-radius: var(--radius-md);

    box-shadow: var(--shadow-md);

    overflow: hidden;

    transition:
        transform .25s ease,
        box-shadow .25s ease;

}

.faq-item:hover {

    transform: translateY(-3px);

    box-shadow: var(--shadow-md);

}


/* ==========================
   PREGUNTA
========================== */

.faq-question {

    width: 100%;

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 1.5rem;

    border: none;

    background: transparent;

    color: var(--color-primary);

    font-family: var(--font-primary);

    font-size: 1.2rem;

    font-weight: 600;

    text-align: left;

    cursor: pointer;

}


/* ==========================
   RESPUESTA
========================== */

.faq-answer {

    display: none;

    padding: 0 1.5rem 1.5rem;

}

.faq-answer p {

    margin: 0;

    color: var(--color-text);

    line-height: 1.8;

}


/* ==========================
   FAQ ABIERTO
========================== */

.faq-item.is-open .faq-answer {

    display: block;

}

/* ==========================
   CONTACT
========================== */

#contact {

    padding: var(--space-xl) 0;

    background-color: var(--color-light);

}

#contact .container {

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: var(--space-md);

}

/* ---------- Encabezado ---------- */

#contact h2 {

    font-size: 2.5rem;

    color: var(--color-primary);

    text-align: center;

    line-height: 1.2;

    max-width: 650px;

}

#contact .section-description {

    max-width: 620px;

    text-align: center;

    line-height: 1.8;

}

/* ==========================
   GRID
========================== */

.contact-grid {

    width: 100%;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 3rem;

    align-items: start;

}

/* ==========================
   INFORMACIÓN
========================== */

.contact-info {

    display: flex;

    flex-direction: column;

    gap: var(--space-md);

}

.contact-item h3 {

    margin-bottom: .5rem;

    color: var(--color-primary);

    font-size: 1.2rem;

}

.contact-item p {

    line-height: 1.8;

}

/* ==========================
   CONTACT CARD
========================== */

.contact-card {

    background-color: var(--color-white);

    border-radius: var(--radius-md);

    padding: 2.5rem;

    box-shadow: var(--shadow-md);

    display: flex;

    flex-direction: column;

    gap: 1.3rem;

}

.contact-card h3 {

    color: var(--color-primary);

    font-size: 1.8rem;

}

.contact-card p {

    line-height: 1.8;

}

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

.contact-highlight {

    font-weight: 600;

    color: var(--color-primary);

}

.contact-card .button {
    align-self: flex-start;
    padding: .85rem 1.6rem;
}

/* ==========================================================
   ANIMACIÓN - CONTACT
========================================================== */

.contact-card {

    opacity: 0;

    transform: translateY(25px);

    transition:
        opacity .7s ease,
        transform .7s ease;

}

.contact-card.is-visible {

    opacity: 1;

    transform: translateY(0);

}

/* ==========================
   FOOTER
========================== */

#footer {

    background-color: var(--color-primary);

    color: var(--color-footer-text);

    padding: var(--space-xl) 0 0;

}

/* ==========================
   GRID
========================== */

#footer .container {

    display: grid;

    grid-template-columns: 1.6fr 1fr .9fr;

    gap: var(--space-xl);

    align-items: start;

}

/* ==========================
   BRAND
========================== */

.footer-brand h2 {

    font-size: 2.4rem;

    color: var(--color-footer-text);

    margin-bottom: var(--space-sm);

}

.footer-logo {

    display: block;

    width: 150px;
    height: auto;

    margin-bottom: var(--space-md);

}

.footer-brand p {

    color: var(--color-footer-text-soft);

    line-height: 1.8;

    max-width: 300px;

}

/* ==========================
   NAV Y REDES
========================== */

.footer-nav,
.footer-social {

    display: flex;

    flex-direction: column;

}

.footer-nav {

    justify-self: center;

}

.footer-nav h3,
.footer-social h3 {

    margin-bottom: var(--space-md);

    font-size: 1.1rem;

    color: var(--color-footer-text);

}

.footer-nav ul,
.footer-social ul {

    list-style: none;

    margin: 0;

    padding: 0;

    display: flex;

    flex-direction: column;

    gap: var(--space-sm);

}

/* ==========================
   ENLACES
========================== */

#footer a {

    color: var(--color-footer-text-soft);

    text-decoration: none;

    transition:
        color .3s ease,
        transform .3s ease;

}

#footer a:hover {

    color: var(--color-footer-text);

    transform: translateX(6px);

}

/* ==========================
   FOOTER BOTTOM
========================== */

.footer-bottom {

    margin-top: var(--space-xl);

    padding: var(--space-md) 0;

    border-top: 1px solid var(--color-footer-border);

    text-align: center;

}

.footer-bottom p {

    color: var(--color-footer-text-muted);

    font-size: .9rem;

}

/* ==========================================================
   RESPONSIVE
========================================================== */


/* ==========================================================
   BOTÓN MENÚ MÓVIL
========================================================== */

.menu-toggle {
    display: none;
}

.menu {
    display: flex;
}


/* ==========================================================
   RESPONSIVE - TABLET
========================================================== */

@media (max-width: 992px) {

    /* ==========================
       GENERAL
    ========================== */

    .container {
        width: 90%;
        max-width: 100%;
    }


    /* ==========================
       HEADER
    ========================== */

    nav {
        gap: var(--space-md);
    }



    /* ==========================
       HERO
    ========================== */

    #hero {
        padding: var(--space-lg) 0;
    }

    #hero .container {
        gap: var(--space-lg);
    }

    .hero-content {
        flex: 1;
        min-width: 0;
    }

    .hero-image {
        flex: 1;
        min-width: 0;
        height: 380px;
    }


    /* ==========================
       ABOUT
    ========================== */

    #about {
        padding: var(--space-lg) 0;
    }

    #about .container {
        gap: var(--space-lg);
    }

    .about-image,
    .about-content {
        flex: 1;
        min-width: 0;
    }


    /* ==========================
       SERVICES
    ========================== */

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }

    #services h2 {
        font-size: 2.2rem;
    }


    /* ==========================
       TEAM
    ========================== */

    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }

    #team h2 {
        font-size: 2.2rem;
    }


    /* ==========================
       FAQ
    ========================== */

    #faq h2 {
        font-size: 2.2rem;
    }

    .faq-list {
        max-width: 800px;
        width: 100%;
    }


    /* ==========================
       CONTACT
    ========================== */

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

    #contact h2 {
        font-size: 2.2rem;
    }

    .contact-card {
        padding: 2rem;
        min-width: 0;
    }


    /* ==========================
       FOOTER
    ========================== */

    #footer .container {
        grid-template-columns: 1.4fr 1fr 1fr;
        gap: var(--space-lg);

        min-width: 0;
    }

    .footer-brand,
    .footer-nav,
    .footer-social {
        min-width: 0;
    }

}



/* ==========================================================
   MENÚ HAMBURGUESA (laptops chicas, tablets y celulares)
   El menú completo + logo + botón no caben en menos de ~1240px.
========================================================== */

@media (max-width: 1240px) {

    nav {
        position: relative;
    }


    /* ==========================
       BOTÓN MENÚ
    ========================== */

    .menu-toggle {
        display: flex;

        align-items: center;
        justify-content: center;

        flex-shrink: 0;

        /* junto al botón Reservar, no flotando al centro */
        margin-left: auto;

        width: 42px;
        height: 42px;

        padding: 0;

        background: transparent;

        border: 1px solid var(--color-secondary);
        border-radius: 8px;

        color: var(--color-primary);

        cursor: pointer;

        font-size: 1.2rem;

        transition:
            background-color .2s ease,
            border-color .2s ease;
    }

    .menu-toggle:hover {
        background-color: var(--color-light);
    }


    /* ==========================
       MENÚ MÓVIL
    ========================== */

    .menu {
        display: none;

        position: absolute;

        top: calc(100% + .75rem);
        right: 0;

        width: min(340px, calc(100vw - 2rem));
        max-width: calc(100vw - 2rem);

        flex-direction: row;
        flex-wrap: wrap;

        justify-content: center;
        align-items: center;

        gap: .2rem;

        padding: .6rem;

        box-sizing: border-box;

        background-color: var(--color-light);

        border: 1px solid var(--color-accent);
        border-radius: 16px;

        box-shadow: 0 8px 25px rgba(45, 45, 45, .08);

        z-index: 1000;
    }

    .menu.is-open {
        display: flex;
    }

    .menu li {
        width: auto;
        list-style: none;
    }

    .menu a {
        display: block;

        width: auto;

        padding: .65rem .9rem;

        color: var(--color-primary);

        font-size: .95rem;

        text-decoration: none;

        border-radius: 10px;

        transition:
            background-color .2s ease,
            color .2s ease;
    }

    .menu a:hover {
        background-color: white;
    }

}

@media (max-width: 720px) {

    /* El lema no cabe junto al botón y al menú: se oculta */
    .brand p {
        display: none;
    }

}


/* ==========================================================
   RESPONSIVE - TABLET PEQUEÑO / CELULAR
========================================================== */

@media (max-width: 768px) {

    /* ==========================
       GENERAL
    ========================== */

    .container {
        width: 92%;
        max-width: 100%;
    }


    /* ==========================
       HEADER
    ========================== */

    nav {
        position: relative;

        display: flex;
        flex-direction: row;

        justify-content: space-between;
        align-items: center;

        gap: 1rem;

        min-width: 0;
    }

    .brand {
        min-width: 0;
    }

    .brand h1 {
        font-size: 1.75rem;
    }

    .brand__mark {
        height: 40px;
    }

    .brand p {
        font-size: .95rem;
    }




    /* ==========================
       HERO
    ========================== */

    #hero {
        padding: var(--space-lg) 0;
    }

    #hero .container {
        flex-direction: column;
        gap: var(--space-md);
    }

    #hero h1 {
        font-size: 2rem;
        line-height: 1.2;
        text-align: center;
    }

    #hero p {
        text-align: center;
    }

    .hero-content {
        width: 100%;
        min-width: 0;

        align-items: center;

        text-align: center;
    }

    .hero-image {
        width: 100%;
        height: 300px;
    }


    /* ==========================
       ABOUT
    ========================== */

    #about {
        padding: var(--space-lg) 0;
    }

    #about .container {
        flex-direction: column;
        gap: var(--space-md);
    }

    .about-image,
    .about-content {
        width: 100%;
        min-width: 0;
    }

    .about-content {
        align-items: flex-start;
    }

    .about-content h2 {
        font-size: 2rem;
    }


    /* ==========================
       SERVICES
    ========================== */

    #services {
        padding: var(--space-lg) 0;
    }

    #services h2 {
        font-size: 2rem;
    }

    #services .section-description {
        font-size: 1rem;
    }

    .services-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
    }

    .service-card {
        min-width: 0;
    }

    .service-card img {
        aspect-ratio: 4 / 3;
        height: auto;
    }

    .service-content {
        padding: 1.5rem;
    }


    /* ==========================
       TEAM
    ========================== */

    #team {
        padding: var(--space-lg) 0;
    }

    #team h2 {
        font-size: 2rem;
    }

    #team .section-description {
        font-size: 1rem;
        margin-bottom: var(--space-md);
    }

    .team-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
    }

    .team-card {
        min-width: 0;
    }

    .team-card img {
        aspect-ratio: 4 / 3;
    }

    .team-content {
        padding: 1.5rem;
    }

    .team-content h3 {
        font-size: 1.35rem;
    }

    .team-content blockquote {
        font-size: 1rem;
    }

    .team-credentials {
        font-size: .9rem;
    }


    /* ==========================
       FAQ
    ========================== */

    #faq {
        padding: var(--space-lg) 0;
    }

    #faq h2 {
        font-size: 2rem;
    }

    .faq-item {
        min-width: 0;
    }

    .faq-item h3 {
        font-size: 1.05rem;
        padding: 1.2rem;
    }

    .faq-item p {
        padding: 0 1.2rem 1.2rem;
    }


    /* ==========================
       CONTACT
    ========================== */

    #contact {
        padding: var(--space-lg) 0;
    }

    #contact h2 {
        font-size: 2rem;
    }

    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }

    .contact-card {
        width: 100%;
        min-width: 0;
        padding: 1.5rem;

        box-sizing: border-box;
    }


    /* ==========================
       FOOTER
    ========================== */

    #footer {
        width: 100%;
        max-width: 100%;

        padding: 2.5rem 0 0;

        box-sizing: border-box;
    }

    #footer .container {
        width: 92%;
        max-width: 100%;

        display: grid;

        grid-template-columns:
            minmax(0, 1fr) minmax(0, 1fr);

        gap: 2rem;

        box-sizing: border-box;
    }

    .footer-brand,
    .footer-nav,
    .footer-social {
        min-width: 0;
    }

    .footer-brand {
        grid-column: 1 / -1;

        text-align: center;
        align-items: center;
    }

    .footer-logo {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-brand h2 {
        font-size: 1.8rem;
        margin-bottom: .4rem;
    }

    .footer-brand p {
        margin: 0 auto;
        max-width: 280px;

        line-height: 1.5;
    }


    /* Navegación */

    .footer-nav {
        justify-self: center;
        align-items: center;

        min-width: 0;
    }

    .footer-nav ul {
        display: grid;

        grid-template-columns:
            minmax(0, 1fr) minmax(0, 1fr);

        gap: .65rem 1.5rem;

        min-width: 0;
    }

    .footer-nav li {
        min-width: 0;
        text-align: center;
    }


    /* Redes */

    .footer-social {
        justify-self: center;
        align-items: center;

        min-width: 0;
    }

    .footer-social ul {
        display: flex;
        flex-direction: row;

        justify-content: center;

        gap: 1rem;
    }


    /* Enlaces */

    #footer a {
        font-size: .9rem;
    }

    #footer a:hover {
        transform: none;
    }

}


/* ==========================================================
   RESPONSIVE - CELULAR
========================================================== */

@media (max-width: 480px) {

    /* ==========================
       GENERAL
    ========================== */

    .container {
        width: 94%;
    }


    /* ==========================
       HEADER
    ========================== */

    .brand h1 {
        font-size: 1.5rem;

        /* En celular el nombre baja a dos líneas junto al isotipo */
        white-space: normal;
    }

    .brand__mark {
        height: 36px;
    }

    .brand p {
        font-size: .9rem;
    }

    .menu-toggle {
        width: 40px;
        height: 40px;

        font-size: 1.1rem;
    }


    /* ==========================
       MENÚ
    ========================== */

    .menu {
        width: calc(100vw - 2rem);
        max-width: calc(100vw - 2rem);

        padding: .5rem;

        border-radius: 14px;
    }

    .menu a {
        padding: .6rem .75rem;
        font-size: .9rem;
    }


    /* ==========================
       HERO
    ========================== */

    #hero h1 {
        font-size: 1.7rem;
    }

    .hero-image {
        height: 230px;
    }


    /* ==========================
       ABOUT
    ========================== */

    .about-content h2 {
        font-size: 1.7rem;
    }


    /* ==========================
       SERVICES
    ========================== */

    #services h2 {
        font-size: 1.7rem;
    }

    .service-content {
        padding: 1.2rem;
    }

    .service-content h3 {
        font-size: 1.3rem;
    }


    /* ==========================
       TEAM
    ========================== */

    #team h2 {
        font-size: 1.7rem;
    }

    .team-content {
        padding: 1.2rem;
        gap: .8rem;
    }

    .team-card img {
        aspect-ratio: 1 / 1;
    }


    /* ==========================
       FAQ
    ========================== */

    #faq h2 {
        font-size: 1.7rem;
    }

    .faq-item h3 {
        font-size: 1rem;
    }


    /* ==========================
       CONTACT
    ========================== */

    #contact h2 {
        font-size: 1.7rem;
    }

    .contact-card {
        padding: 1.5rem;
    }

    .contact-card .button {
        width: 100%;
        text-align: center;
    }


    /* ==========================
       FOOTER
    ========================== */

    #footer {
        padding-top: 2rem;
    }

    #footer .container {
        display: block;

        width: 90%;
        max-width: 100%;
    }

    .footer-brand {
        margin-bottom: 1.75rem;
    }

    .footer-brand h2 {
        font-size: 1.6rem;
    }

    .footer-brand p {
        font-size: .9rem;
        line-height: 1.5;
    }


    /* Navegación */

    .footer-nav {
        margin-bottom: 1.75rem;
    }

    .footer-nav h3,
    .footer-social h3 {
        font-size: .95rem;
        margin-bottom: .8rem;
    }

    .footer-nav ul {
        grid-template-columns:
            minmax(0, 1fr) minmax(0, 1fr);

        gap: .6rem .8rem;

        width: 100%;
    }

    #footer a {
        font-size: .9rem;
    }


    /* Redes */

    .footer-social {
        margin-bottom: 0;
    }

    .footer-social ul {
        gap: 1rem;
    }


    /* Footer inferior */

    .footer-bottom {
        margin-top: 1.5rem;
        padding: .8rem 0;
    }

    .footer-bottom p {
        font-size: .75rem;
    }

}


/* ==========================================================
   RESPONSIVE - CELULAR MUY PEQUEÑO
========================================================== */

@media (max-width: 400px) {

    /* ==========================
       HEADER
    ========================== */

    .brand h1 {
        font-size: 1.4rem;
    }

    .brand__mark {
        height: 32px;
    }

    .brand {
        gap: .55rem;
    }

    .brand p {
        font-size: .85rem;
    }


    /* ==========================
       TÍTULOS
    ========================== */

    #hero h1,
    .about-content h2,
    #services h2,
    #team h2,
    #faq h2,
    #contact h2 {
        font-size: 1.6rem;
    }

}

/* ==========================================================
   ANIMACIÓN - ABOUT
========================================================== */

.about-image,
.about-content {

    opacity: 0;

    transform: translateY(25px);

    transition:
        opacity .7s ease,
        transform .7s ease;

}

.about-image.is-visible,
.about-content.is-visible {

    opacity: 1;

    transform: translateY(0);

}

.about-content.is-visible {

    transition-delay: .15s;

}


/* ==========================================================
   ACCESIBILIDAD - REDUCIR ANIMACIONES
========================================================== */

@media (prefers-reduced-motion: reduce) {

    .service-card,
    .about-image,
    .about-content,
    .hero-content,
    .hero-image {

        opacity: 1;
        transform: none;
        transition: none;
        animation: none;

    }

}

/* ==========================================================
   ANIMACIÓN - HERO
========================================================== */

.hero-content,
.hero-image {

    opacity: 0;

    transform: translateY(25px);

    animation: hero-entry .7s ease forwards;

}

.hero-image {

    animation-delay: .15s;

}

@keyframes hero-entry {

    from {

        opacity: 0;

        transform: translateY(25px);

    }

    to {

        opacity: 1;

        transform: translateY(0);

    }

}

/* ==========================================================
   ANIMACIÓN - TARJETAS
========================================================== */

.service-card,
.team-card {

    opacity: 0;

    transform: translateY(25px);

    transition:
        opacity .7s ease,
        transform .7s ease;

}

.service-card.is-visible,
.team-card.is-visible {

    opacity: 1;

    transform: translateY(0);

}

/* ==========================================================
   ANIMACIÓN - TEAM
========================================================== */

.team-card {

    opacity: 0;

    transform: translateY(25px);

    transition:
        opacity .7s ease,
        transform .7s ease;

}

.team-card.is-visible {

    opacity: 1;

    transform: translateY(0);

}



/* ==========================================================
   Version final sin correciones
========================================================== */