/* =========================================
   SAVIA — NUTRICIÓN & BIENESTAR
   Identidad: natural, editorial y premium
========================================= */

/* ---------- VARIABLES ---------- */

:root {
    --color-bg: #f3ede2;
    --color-bg-light: #faf7f0;
    --color-bg-dark: #e8dfd0;
    --color-text: #26382d;
    --color-text-soft: #566155;
    --color-green: #4E6348;
    --color-green-dark: #344a39;
    --color-green-light: #dce3d4;
    --color-accent: #8F5A3B;
    --color-white: #fffdf8;
    --color-border: rgba(38, 56, 45, 0.16);
    --font-body: "Mulish", sans-serif;
    --font-display: "Literata", serif;
    --container-width: 1200px;
    --section-space: 120px;
    --transition: 0.3s ease;
    --shadow-soft: 0 18px 50px rgba(38, 56, 45, 0.08);
}

/* ---------- RESET ---------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: clip;
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    overflow-x: hidden;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

a {
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

button {
    color: inherit;
    font: inherit;
    -webkit-tap-highlight-color: transparent;
}

/* Anillo de foco doble (verde profundo + crema): visible
   sobre fondos claros y oscuros. */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--color-bg-light);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px var(--color-green-dark);
}

input,
textarea,
select {
    font: inherit;
}

::selection {
    background: var(--color-green);
    color: var(--color-white);
}

/* ---------- BASE ---------- */

.container {
    width: min(var(--container-width), 84%);
    margin-inline: auto;
}

.section-padding {
    padding-block: var(--section-space);
}

h1,
h2,
h3 {
    color: var(--color-text);
    font-weight: 400;
    line-height: 1.12;
}

h1,
h2 {
    font-family: var(--font-display);
    letter-spacing: -0.03em;
}

h1 {
    font-size: clamp(3.5rem, 6.4vw, 6.4rem);
}

h2 {
    font-size: clamp(2.6rem, 4.3vw, 4.4rem);
}

h3 {
    font-size: 1.35rem;
    letter-spacing: -0.025em;
}

p {
    color: var(--color-text-soft);
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 25px;
    color: var(--color-green);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.17em;
    line-height: 1.5;
    text-transform: uppercase;
}

.eyebrow-line {
    width: 27px;
    height: 1px;
    flex-shrink: 0;
    background: var(--color-accent);
}

.body-copy {
    font-size: 0.95rem;
    line-height: 1.95;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--color-green);
    color: var(--color-text);
    font-size: 0.82rem;
    font-weight: 600;
    transition:
        color var(--transition),
        gap var(--transition),
        border-color var(--transition);
}

.text-link:hover {
    gap: 18px;
    border-color: var(--color-accent);
    color: var(--color-green);
}

/* ---------- BOTONES ---------- */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    min-height: 54px;
    padding: 15px 25px;
    border: 1px solid transparent;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.035em;
    text-align: center;
    transition:
        background var(--transition),
        color var(--transition),
        border-color var(--transition),
        transform var(--transition);
}

.button:hover {
    transform: translateY(-3px);
}

.button-primary {
    background: var(--color-green);
    color: var(--color-white);
}

.button-primary:hover {
    background: var(--color-green-dark);
}

.button-light {
    background: var(--color-bg-light);
    color: var(--color-green-dark);
}

.button-light:hover {
    background: var(--color-white);
}

/* ---------- HEADER ---------- */

.header {
    position: relative;
    z-index: 100;
    background: var(--color-bg);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 94px;
    border-bottom: 1px solid var(--color-border);
}

.logo {
    display: inline-flex;
    align-items: baseline;
    color: var(--color-text);
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1;
}

.logo span {
    color: var(--color-accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-links > a:not(.nav-cta) {
    position: relative;
    color: var(--color-text-soft);
    font-size: 0.76rem;
    transition: color var(--transition);
}

.nav-links > a:not(.nav-cta)::after {
    position: absolute;
    right: 0;
    bottom: -6px;
    left: 0;
    height: 1px;
    background: var(--color-green);
    content: "";
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition);
}

.nav-links > a:not(.nav-cta):hover {
    color: var(--color-text);
}

.nav-links > a:not(.nav-cta):hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 43px;
    padding: 10px 19px;
    background: var(--color-green);
    color: var(--color-white);
    font-size: 0.72rem;
    font-weight: 600;
    transition: background var(--transition);
}

.nav-cta:hover {
    background: var(--color-green-dark);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 12px 9px;
    border: 1px solid var(--color-border);
    background: transparent;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 1px;
    margin: 5px 0;
    background: var(--color-text);
    transition:
        transform var(--transition),
        opacity var(--transition);
}

/* ---------- HERO ---------- */

.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: min(790px, calc(100svh - 94px));
    overflow: hidden;
    isolation: isolate;
    background: var(--color-bg-dark);
}

.hero::before {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: url("https://images.unsplash.com/photo-1490645935967-10de6ba17061?auto=format&fit=crop&w=2200&q=90");
    background-position: center 52%;
    background-repeat: no-repeat;
    background-size: cover;
    content: "";
    transform: scale(1.01);
}

.hero::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        90deg,
        rgba(243, 237, 226, 0.97) 0%,
        rgba(243, 237, 226, 0.88) 35%,
        rgba(243, 237, 226, 0.48) 62%,
        rgba(243, 237, 226, 0.12) 100%
    );
    content: "";
}

.hero-inner {
    display: flex;
    align-items: center;
    flex: 1;
    padding-block: 75px 65px;
}

.hero-copy {
    position: relative;
    z-index: 1;
    width: min(720px, 75%);
    padding-bottom: 15px;
}

.hero-copy .eyebrow {
    margin-bottom: 30px;
}

.hero h1 {
    max-width: 750px;
}

.hero h1 em {
    display: block;
    color: var(--color-green);
    font-weight: 400;
}

.hero-description {
    max-width: 435px;
    margin-top: 28px;
    font-size: 0.97rem;
    line-height: 1.9;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 27px;
    margin-top: 35px;
}

.hero-note {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 38px;
}

.note-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    color: var(--color-green);
    font-size: 1rem;
}

.hero-note p {
    max-width: 290px;
    font-size: 0.72rem;
    line-height: 1.6;
}

.hero-bottom {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 72px;
    border-top: 1px solid rgba(38, 56, 45, 0.2);
}

.hero-bottom > span {
    color: var(--color-text-soft);
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-bottom a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-text-soft);
    font-size: 0.68rem;
}

.scroll-line {
    display: inline-block;
    width: 34px;
    height: 1px;
    background: var(--color-accent);
    transition: width var(--transition);
}

.hero-bottom a:hover .scroll-line {
    width: 48px;
}

/* ---------- FILOSOFÍA ---------- */

.philosophy {
    background: var(--color-bg-light);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    column-gap: 12%;
    row-gap: 75px;
}

.section-intro h2 {
    max-width: 470px;
}

.section-intro h2 em,
.section-heading h2 em,
.about-copy h2 em,
.process-heading h2 em,
.faq-intro h2 em,
.contact h2 em {
    color: var(--color-green);
    font-weight: 400;
}

.philosophy-content {
    padding-top: 55px;
}

.philosophy-lead {
    margin-bottom: 22px;
    color: var(--color-text);
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 2.2vw, 2rem);
    line-height: 1.5;
}

.philosophy-content .body-copy {
    max-width: 490px;
    margin-bottom: 28px;
}

.values {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    padding-top: 35px;
    border-top: 1px solid var(--color-border);
}

.value-item {
    padding-right: 15px;
}

.value-number {
    display: block;
    margin-bottom: 20px;
    color: var(--color-accent);
    font-family: var(--font-display);
    font-size: 1rem;
}

.value-item h3 {
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.value-item p {
    max-width: 300px;
    font-size: 0.83rem;
    line-height: 1.85;
}

/* ---------- SERVICIOS ---------- */

.services {
    background: var(--color-bg);
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 55px;
}

.section-heading h2 {
    max-width: 560px;
}

.heading-description {
    max-width: 335px;
    padding-bottom: 7px;
    font-size: 0.88rem;
    line-height: 1.9;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 22px;
}

.service-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 22px;
    border: 1px solid var(--color-border);
    background: rgba(250, 247, 240, 0.45);
    transition:
        transform var(--transition),
        box-shadow var(--transition),
        background var(--transition);
}

.service-card:hover {
    background: var(--color-bg-light);
    box-shadow: var(--shadow-soft);
    transform: translateY(-6px);
}

.service-card-featured {
    border-color: var(--color-green);
    background: var(--color-green);
}

.service-card-featured:hover {
    background: var(--color-green-dark);
}

.service-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 22px;
}

.service-index {
    color: var(--color-text-soft);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
}

.service-card-featured .service-index {
    color: rgba(255, 253, 248, 0.7);
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 39px;
    height: 39px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    color: var(--color-green);
    font-family: var(--font-display);
    font-size: 1.2rem;
}

.service-card-featured .service-icon {
    border-color: rgba(255, 253, 248, 0.35);
    color: var(--color-white);
}

.service-image {
    height: 210px;
    margin-bottom: 25px;
    overflow: hidden;
    background: var(--color-bg-dark);
}

.service-image img {
    transition: transform 0.7s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.045);
}

.service-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
}

.service-category {
    display: block;
    margin-bottom: 12px;
    color: var(--color-green);
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.service-card-featured .service-category {
    color: #d8c5a6;
}

.service-content h3 {
    margin-bottom: 13px;
    font-family: var(--font-display);
    font-size: 1.65rem;
}

.service-content p {
    margin-bottom: 25px;
    font-size: 0.83rem;
    line-height: 1.85;
}

.service-card-featured h3 {
    color: var(--color-white);
}

.service-card-featured .service-content p {
    color: rgba(255, 253, 248, 0.76);
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--color-border);
    color: var(--color-text);
    font-size: 0.75rem;
    font-weight: 600;
    transition: gap var(--transition);
}

.service-card-featured .service-link {
    border-color: rgba(255, 253, 248, 0.3);
    color: var(--color-white);
}

.service-link:hover {
    gap: 18px;
}

.services-note {
    margin-top: 27px;
    color: var(--color-text-soft);
    font-size: 0.72rem;
    text-align: center;
}

/* ---------- SOBRE MÍ ---------- */

.about {
    background: var(--color-bg-dark);
}

.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: clamp(55px, 9vw, 125px);
}

.about-visual {
    position: relative;
    padding: 0 25px 25px 0;
}

.about-image {
    height: clamp(430px, 48vw, 590px);
    overflow: hidden;
    background: #d4c8b5;
}

.about-image img {
    transition: transform 0.8s ease;
}

.about-image:hover img {
    transform: scale(1.025);
}

.about-image-note {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 210px;
    padding: 23px;
    background: var(--color-green);
    color: var(--color-white);
}

.about-image-note p {
    color: var(--color-white);
    font-family: var(--font-display);
    font-size: 1.15rem;
    line-height: 1.5;
}

.about-copy h2 {
    margin-bottom: 25px;
}

.about-lead {
    margin-bottom: 18px;
    color: var(--color-text);
    font-family: var(--font-display);
    font-size: 1.45rem;
    line-height: 1.55;
}

.about-copy > .body-copy {
    margin-bottom: 27px;
}

.credentials {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.credential-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border: 1px solid rgba(83, 107, 76, 0.35);
    border-radius: 50%;
    color: var(--color-green);
    font-size: 1.1rem;
}

.credentials strong {
    display: block;
    margin-bottom: 4px;
    color: var(--color-text);
    font-size: 0.82rem;
    font-weight: 600;
}

.credentials p {
    font-size: 0.76rem;
    line-height: 1.7;
}

.demo-disclaimer {
    margin-top: 20px;
    font-size: 0.68rem;
    font-style: italic;
    opacity: 0.8;
}

/* ---------- PROCESO ---------- */

.process {
    background: var(--color-bg-light);
}

.process-heading {
    max-width: 660px;
    margin: 0 auto 65px;
    text-align: center;
}

.process-heading .eyebrow {
    justify-content: center;
}

.process-heading h2 {
    margin-inline: auto;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 35px;
}

.process-item {
    padding-top: 25px;
    border-top: 1px solid var(--color-border);
}

.process-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    margin-bottom: 27px;
    border: 1px solid rgba(83, 107, 76, 0.4);
    border-radius: 50%;
    color: var(--color-green);
    font-family: var(--font-display);
    font-size: 1.1rem;
}

.process-item h3 {
    margin-bottom: 14px;
}

.process-item p {
    max-width: 330px;
    font-size: 0.84rem;
    line-height: 1.9;
}

/* ---------- PREGUNTAS FRECUENTES ---------- */

.faq {
    background: var(--color-bg);
}

.faq-grid {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    align-items: start;
    gap: clamp(50px, 9vw, 130px);
}

.faq-intro {
    position: sticky;
    top: 40px;
}

.faq-intro h2 {
    margin-bottom: 22px;
}

.faq-intro .body-copy {
    margin-bottom: 25px;
}

.faq-list {
    border-top: 1px solid var(--color-border);
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 0;
    color: var(--color-text);
    font-size: 0.9rem;
    font-weight: 600;
    list-style: none;
    cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 29px;
    height: 29px;
    flex-shrink: 0;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    color: var(--color-green);
    font-size: 1.1rem;
    font-weight: 400;
    transition:
        transform var(--transition),
        background var(--transition),
        color var(--transition);
}

.faq-item[open] .faq-icon {
    background: var(--color-green);
    color: var(--color-white);
    transform: rotate(45deg);
}

.faq-item > p {
    max-width: 570px;
    padding: 0 45px 24px 0;
    font-size: 0.84rem;
    line-height: 1.9;
}

/* ---------- CONTACTO ---------- */

.contact {
    position: relative;
    overflow: hidden;
    background: var(--color-green);
    color: var(--color-white);
}

.contact-inner {
    position: relative;
    z-index: 1;
    max-width: 850px;
    margin-inline: auto;
    text-align: center;
}

.contact .eyebrow {
    justify-content: center;
    color: #EFE6D5;
}

.contact .eyebrow-line {
    background: #d8b394;
}

.contact h2 {
    color: var(--color-white);
    font-size: clamp(3rem, 6vw, 5.7rem);
}

.contact h2 em {
    color: #e2c7a9;
}

.contact-description {
    max-width: 530px;
    margin: 25px auto 32px;
    color: rgba(255, 253, 248, 0.78);
    font-size: 0.94rem;
    line-height: 1.9;
}

.contact-note {
    margin-top: 20px;
    color: rgba(255, 253, 248, 0.65);
    font-size: 0.72rem;
}

.contact-decoration {
    position: absolute;
    right: -90px;
    bottom: -170px;
    width: 370px;
    height: 370px;
    border: 1px solid rgba(255, 253, 248, 0.12);
    border-radius: 50%;
    pointer-events: none;
}

.contact-decoration::before,
.contact-decoration::after {
    position: absolute;
    border: 1px solid rgba(255, 253, 248, 0.12);
    border-radius: 50%;
    content: "";
}

.contact-decoration::before {
    inset: 30px;
}

.contact-decoration::after {
    inset: 65px;
}

/* ---------- FOOTER ---------- */

.footer {
    background: var(--color-bg-light);
}

.footer-main {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr auto;
    gap: 45px;
    padding-block: 65px;
}

.footer-brand .logo {
    margin-bottom: 18px;
}

.footer-brand p {
    max-width: 250px;
    font-size: 0.8rem;
    line-height: 1.8;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.footer-column h3 {
    margin-bottom: 7px;
    font-family: var(--font-body);
    font-size: 0.73rem;
    font-weight: 700;
}

.footer-column a {
    color: var(--color-text-soft);
    font-size: 0.76rem;
    transition: color var(--transition);
}

.footer-column a:hover {
    color: var(--color-green);
}

.back-to-top {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    color: var(--color-green);
    transition:
        background var(--transition),
        color var(--transition),
        transform var(--transition);
}

.back-to-top:hover {
    background: var(--color-green);
    color: var(--color-white);
    transform: translateY(-4px);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 65px;
    border-top: 1px solid var(--color-border);
}

.footer-bottom span {
    color: var(--color-text-soft);
    font-size: 0.68rem;
}

/* ---------- ANIMACIONES ---------- */

@keyframes saviaFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-copy > * {
    animation: saviaFadeUp 0.7s ease both;
}

.hero-copy > *:nth-child(2) {
    animation-delay: 0.08s;
}

.hero-copy > *:nth-child(3) {
    animation-delay: 0.16s;
}

.hero-copy > *:nth-child(4) {
    animation-delay: 0.24s;
}

.hero-copy > *:nth-child(5) {
    animation-delay: 0.32s;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ---------- TABLETS ---------- */

@media (max-width: 1000px) {
    :root {
        --section-space: 90px;
    }

    .container {
        width: 88%;
    }

    .navbar {
        min-height: 82px;
    }

    .nav-links {
        gap: 22px;
    }

    .hero {
        min-height: min(720px, calc(100svh - 82px));
    }

    .hero-inner {
        padding-block: 60px 50px;
    }

    .hero-copy {
        width: min(720px, 85%);
    }

    .hero h1 {
        font-size: clamp(3.2rem, 6vw, 5rem);
    }

    .hero::after {
        background: linear-gradient(
            90deg,
            rgba(243, 237, 226, 0.97) 0%,
            rgba(243, 237, 226, 0.88) 42%,
            rgba(243, 237, 226, 0.45) 75%,
            rgba(243, 237, 226, 0.2) 100%
        );
    }

    .philosophy-grid {
        column-gap: 7%;
    }

    .services-grid {
        gap: 15px;
    }

    .service-card {
        padding: 16px;
    }

    .service-image {
        height: 180px;
    }

    .about-grid {
        gap: 60px;
    }

    .footer-main {
        grid-template-columns: 1.4fr 1fr 1fr auto;
        gap: 25px;
    }
}

/* ---------- MÓVILES ---------- */

@media (max-width: 760px) {
    :root {
        --section-space: 76px;
    }

    body {
        font-size: 14px;
    }

    h2 {
        font-size: clamp(2.45rem, 10vw, 3.5rem);
    }

    .navbar {
        position: relative;
        min-height: 76px;
    }

    .logo {
        font-size: 1.85rem;
    }

    .menu-toggle {
        position: relative;
        z-index: 102;
        display: block;
    }

    .menu-toggle[aria-expanded="true"] span:first-child {
        transform: translateY(3px) rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"] span:last-child {
        transform: translateY(-3px) rotate(-45deg);
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 1px);
        right: -6.82%;
        left: -6.82%;
        z-index: 101;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 6% 25px;
        border-bottom: 1px solid var(--color-border);
        background: var(--color-bg-light);
        box-shadow: 0 20px 30px rgba(38, 56, 45, 0.08);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition:
            opacity var(--transition),
            visibility var(--transition),
            transform var(--transition);
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links > a:not(.nav-cta) {
        padding: 15px 0;
        border-bottom: 1px solid var(--color-border);
        font-size: 0.86rem;
    }

    .nav-links > a:not(.nav-cta)::after {
        display: none;
    }

    .nav-cta {
        min-height: 48px;
        margin-top: 18px;
    }

    /* Hero */

    .hero {
        min-height: auto;
    }

    .hero::before {
        background-position: 58% center;
    }

    .hero::after {
        background: linear-gradient(
            90deg,
            rgba(243, 237, 226, 0.97) 0%,
            rgba(243, 237, 226, 0.91) 48%,
            rgba(243, 237, 226, 0.7) 100%
        );
    }

    .hero-inner {
        padding-block: 65px 55px;
    }

    .hero-copy {
        width: 100%;
        padding-bottom: 0;
    }

    .hero-copy .eyebrow {
        margin-bottom: 22px;
    }

    .hero h1 {
        max-width: 570px;
        font-size: clamp(3.4rem, 12vw, 5.3rem);
    }

    .hero-description {
        max-width: 450px;
        margin-top: 22px;
        font-size: 0.91rem;
    }

    .hero-actions {
        align-items: flex-start;
        gap: 22px;
        margin-top: 28px;
    }

    .hero-note {
        margin-top: 32px;
    }

    .hero-note p {
        font-size: 0.7rem;
    }

    .hero-bottom {
        min-height: 65px;
    }

    .hero-bottom > span {
        max-width: 55%;
        font-size: 0.55rem;
    }

    .hero-bottom a {
        gap: 8px;
        font-size: 0.6rem;
    }

    .scroll-line {
        width: 22px;
    }

    /* Filosofía */

    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .section-intro h2 {
        max-width: 560px;
    }

    .philosophy-content {
        padding-top: 0;
    }

    .philosophy-lead {
        font-size: 1.55rem;
    }

    .values {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 30px;
    }

    .value-item {
        display: grid;
        grid-template-columns: 35px 1fr;
        column-gap: 12px;
        padding-right: 0;
    }

    .value-number {
        grid-row: 1 / span 2;
        margin-bottom: 0;
        padding-top: 3px;
    }

    .value-item h3 {
        margin-bottom: 8px;
    }

    .value-item p {
        max-width: 100%;
    }

    /* Servicios */

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
        margin-bottom: 35px;
    }

    .heading-description {
        max-width: 480px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .service-card {
        padding: 20px;
    }

    .service-image {
        height: clamp(210px, 65vw, 340px);
    }

    .service-content h3 {
        font-size: 1.75rem;
    }

    .service-content p {
        max-width: 500px;
    }

    .services-note {
        line-height: 1.8;
    }

    /* Sobre mí */

    .about-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .about-visual {
        width: 90%;
        padding-right: 18px;
    }

    .about-image {
        height: clamp(380px, 105vw, 520px);
    }

    .about-image-note {
        width: 190px;
        padding: 18px;
    }

    .about-image-note p {
        font-size: 1.05rem;
    }

    .about-copy h2 {
        max-width: 550px;
    }

    /* Proceso */

    .process-heading {
        margin-bottom: 40px;
        text-align: left;
    }

    .process-heading .eyebrow {
        justify-content: flex-start;
    }

    .process-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .process-item {
        display: grid;
        grid-template-columns: 48px 1fr;
        column-gap: 15px;
        padding-top: 22px;
    }

    .process-number {
        grid-row: 1 / span 2;
        margin-bottom: 0;
    }

    .process-item h3 {
        margin-bottom: 9px;
    }

    .process-item p {
        max-width: 100%;
    }

    /* Preguntas frecuentes */

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .faq-intro {
        position: static;
    }

    .faq-intro h2 {
        max-width: 500px;
    }

    .faq-item summary {
        padding: 21px 0;
        font-size: 0.84rem;
    }

    .faq-item > p {
        padding-right: 10px;
        font-size: 0.81rem;
    }

    /* Contacto */

    .contact h2 {
        font-size: clamp(3rem, 11vw, 4.5rem);
    }

    .contact-description {
        font-size: 0.87rem;
    }

    .contact-decoration {
        right: -240px;
        bottom: -230px;
    }

    /* Footer */

    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 35px 25px;
        padding-block: 48px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-brand p {
        max-width: 320px;
    }

    .back-to-top {
        grid-column: 2;
        grid-row: 2;
        justify-self: end;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        padding-block: 18px;
    }
}

/* ---------- MÓVILES PEQUEÑOS ---------- */

@media (max-width: 420px) {
    :root {
        --section-space: 64px;
    }

    .container {
        width: 89%;
    }

    .hero::before {
        background-position: 60% center;
    }

    .hero::after {
        background: linear-gradient(
            90deg,
            rgba(243, 237, 226, 0.98) 0%,
            rgba(243, 237, 226, 0.93) 58%,
            rgba(243, 237, 226, 0.78) 100%
        );
    }

    .hero-inner {
        padding-block: 55px 45px;
    }

    .hero h1 {
        font-size: clamp(3rem, 13vw, 3.7rem);
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
        gap: 20px;
    }

    .hero-actions .button {
        width: 100%;
    }

    .hero-actions .text-link {
        align-self: flex-start;
    }

    .hero-note p {
        font-size: 0.68rem;
    }

    .hero-bottom > span {
        max-width: 50%;
        letter-spacing: 0.06em;
    }

    .service-card {
        padding: 15px;
    }

    .service-image {
        height: 220px;
    }

    .about-image-note {
        width: 165px;
        padding: 15px;
    }

    .about-image-note p {
        font-size: 0.95rem;
    }

    .contact h2 {
        font-size: 2.8rem;
    }

    .footer-main {
        gap: 30px 18px;
    }
}