/* ==================================================
   VARIABLES
================================================== */

:root {
    --pv-green: #0d5948;
    --pv-green-dark: #064437;
    --pv-green-light: #789d84;
    --pv-green-soft: #dfe9df;

    --pv-gold: #c8a45c;
    --pv-gold-light: #dfc78f;

    --pv-cream: #fbf8f1;
    --pv-cream-light: #fffdf8;

    --pv-text: #173f38;
    --pv-text-soft: #596b66;

    --pv-white: #ffffff;

    --nav-height: 92px;
    --container-width: 1500px;
    --nav-transition: 280ms ease;
}

/* ==================================================
   RESET
================================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-height) + 20px);
}

body {
    margin: 0;
    overflow-x: hidden;

    color: var(--pv-text);
    background-color: var(--pv-cream);

    font-family: "DM Sans", Arial, sans-serif;
}

body.menu-is-open {
    overflow: hidden;
}

img,
svg {
    display: block;
}

a {
    color: inherit;
}

/* ==================================================
   NAVBAR
================================================== */

.navbar {
    position: fixed;
    z-index: 1000;

    top: 0;
    left: 0;

    width: 100%;
    height: var(--nav-height);

    background-color: transparent;
    border-bottom: 1px solid transparent;
    box-shadow: none;

    transition:
        background-color var(--nav-transition),
        border-color var(--nav-transition),
        box-shadow var(--nav-transition),
        backdrop-filter var(--nav-transition);
}

.navbar.is-scrolled,
.navbar.menu-open {
    background-color: rgba(251, 248, 241, 0.88);
    border-bottom-color: rgba(13, 89, 72, 0.08);

    box-shadow:
        0 8px 30px rgba(22, 63, 56, 0.07);

    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.navbar__container {
    display: grid;
    grid-template-columns:
        minmax(210px, 1fr)
        auto
        minmax(210px, 1fr);
    align-items: center;
    gap: 36px;

    width: min(
        calc(100% - 56px),
        var(--container-width)
    );

    height: 100%;
    margin-inline: auto;
}

/* Logo */

.navbar__brand {
    justify-self: start;

    display: inline-flex;
    align-items: center;

    text-decoration: none;
}

.navbar__logo {
    width: auto;
    height: 60px;

    object-fit: contain;
}

/* Navegación */

.navbar__navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(25px, 2.7vw, 48px);
}

.navbar__link {
    position: relative;

    padding: 12px 0;

    color: var(--pv-text);

    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;

    transition: color 180ms ease;
}

.navbar__link::after {
    content: "";

    position: absolute;
    right: 0;
    bottom: 2px;
    left: 0;

    width: 0;
    height: 2px;
    margin-inline: auto;

    background-color: var(--pv-gold);
    border-radius: 10px;

    transition: width 220ms ease;
}

.navbar__link:hover,
.navbar__link.active {
    color: var(--pv-green);
}

.navbar__link:hover::after,
.navbar__link.active::after {
    width: 100%;
}

/* Botón del navbar */

.navbar__cta {
    justify-self: center;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;

    min-height: 48px;
    padding: 0 25px;

    color: var(--pv-white);

    background:
        linear-gradient(
            135deg,
            var(--pv-green),
            var(--pv-green-dark)
        );

    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;

    box-shadow:
        0 8px 20px rgba(6, 68, 55, 0.18);

    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;

    transition:
        transform 200ms ease,
        box-shadow 200ms ease;
}

.navbar__cta svg {
    width: 19px;
    height: 19px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;

    transition: transform 200ms ease;
}

.navbar__cta:hover {
    transform: translateY(-2px);

    box-shadow:
        0 12px 28px rgba(6, 68, 55, 0.25);
}

.navbar__cta:hover svg {
    transform: translateX(4px);
}

/* ==================================================
   MENÚ HAMBURGUESA
================================================== */

.navbar__toggle {
    display: none;

    width: 46px;
    height: 46px;
    padding: 0;

    background-color: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(13, 89, 72, 0.12);
    border-radius: 50%;

    cursor: pointer;
}

.navbar__toggle span {
    display: block;

    width: 20px;
    height: 2px;
    margin: 5px auto;

    background-color: var(--pv-green);
    border-radius: 10px;

    transition:
        transform 250ms ease,
        opacity 200ms ease;
}

.navbar.menu-open .navbar__toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.navbar.menu-open .navbar__toggle span:nth-child(2) {
    opacity: 0;
}

.navbar.menu-open .navbar__toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==================================================
   MENÚ MÓVIL
================================================== */

.mobile-menu {
    position: absolute;

    top: calc(var(--nav-height) - 1px);
    right: 18px;
    left: 18px;

    display: flex;
    flex-direction: column;
    gap: 5px;

    padding: 18px;

    background-color: rgba(255, 252, 246, 0.97);
    border: 1px solid rgba(13, 89, 72, 0.1);
    border-radius: 22px;

    box-shadow:
        0 22px 60px rgba(13, 61, 51, 0.16);

    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);

    visibility: hidden;
    opacity: 0;

    transform: translateY(-12px) scale(0.98);
    transform-origin: top center;

    pointer-events: none;

    transition:
        opacity 220ms ease,
        transform 220ms ease,
        visibility 220ms ease;
}

.navbar.menu-open .mobile-menu {
    visibility: visible;
    opacity: 1;

    transform: translateY(0) scale(1);

    pointer-events: auto;
}

.mobile-menu__link {
    padding: 14px 16px;

    color: var(--pv-text);
    border-radius: 12px;

    font-size: 15px;
    font-weight: 500;
    text-decoration: none;

    transition:
        color 180ms ease,
        background-color 180ms ease;
}

.mobile-menu__link:hover,
.mobile-menu__link.active {
    color: var(--pv-green);
    background-color: rgba(120, 157, 132, 0.11);
}

.mobile-menu__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    min-height: 48px;
    margin-top: 8px;

    color: var(--pv-white);
    background-color: var(--pv-green);
    border-radius: 999px;

    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

/* ==================================================
   HERO
================================================== */

.hero {
    position: relative;
    isolation: isolate;

    display: flex;
    align-items: center;

    min-height: 100svh;

    padding:
        calc(var(--nav-height) + 56px)
        0
        100px;

    overflow: hidden;

    background-color: var(--pv-cream-light);
}

/*
 * Fondo de lectura a altura completa.
 * Permanece sólido en el lado del texto y desaparece antes del área principal
 * de la fotografía para conservar su color original.
 */
.hero::after {
    content: "";

    position: absolute;
    z-index: 2;

    inset: 0;

    background:
        linear-gradient(
            to right,
            var(--pv-cream-light) 0%,
            var(--pv-cream-light) 25%,
            rgba(255, 253, 248, 0.97) 33%,
            rgba(255, 253, 248, 0.78) 41%,
            rgba(255, 253, 248, 0.46) 47%,
            rgba(255, 253, 248, 0.16) 52%,
            rgba(255, 253, 248, 0) 57%,
            transparent 100%
        );

    pointer-events: none;
}

/* ==================================================
   FONDO REAL DEL HERO
================================================== */

.hero__background {
    position: absolute;
    z-index: 0;

    top: 0;
    bottom: 0;
    left: 50%;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    width: min(100%, var(--container-width));

    overflow: hidden;

    transform: translateX(-50%);

    pointer-events: none;
}

.hero__background-image {
    position: relative;

    width: 100%;
    height: 100%;

    object-fit: cover;

    filter: none;
    opacity: 1;
    object-position: right center;

    transform: scale(1.01);
    transform-origin: right center;
}

/* Luces decorativas */

.hero__glow {
    position: absolute;
    z-index: 1;

    border-radius: 50%;
    filter: blur(10px);

    pointer-events: none;
}

.hero__glow--one {
    top: -180px;
    right: -120px;

    width: 570px;
    height: 570px;

    background:
        radial-gradient(
            circle,
            rgba(120, 157, 132, 0.13),
            transparent 68%
        );
}

.hero__glow--two {
    bottom: -250px;
    left: 18%;

    width: 520px;
    height: 520px;

    background:
        radial-gradient(
            circle,
            rgba(200, 164, 92, 0.09),
            transparent 68%
        );
}

/* Contenedor */

.hero__container {
    position: relative;
    z-index: 3;

    display: grid;
    grid-template-columns:
        minmax(420px, 0.88fr)
        minmax(520px, 1.12fr);
    align-items: center;

    gap: clamp(40px, 6vw, 100px);

    width: min(calc(100% - 56px), var(--container-width));
    margin-inline: auto;
}

/* ==================================================
   IMAGEN RESPONSIVE DEL CONSULTORIO
================================================== */

/* En escritorio se utiliza la imagen de .hero__background. */
.hero__mobile-visual {
    display: none;
}

/* ==================================================
   CONTENIDO IZQUIERDO
================================================== */

.hero__content {
    position: relative;
    z-index: 3;

    max-width: 620px;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    margin: 0 0 22px;

    color: var(--pv-green-light);

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3em;
    line-height: 1.4;
    text-transform: uppercase;
}

.hero__eyebrow::before {
    content: "";

    width: 27px;
    height: 1px;

    background-color: var(--pv-gold);
}

.hero__title {
    max-width: 600px;
    margin: 0;

    color: var(--pv-green-dark);

    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(54px, 5.3vw, 83px);
    font-weight: 600;
    line-height: 0.99;
    letter-spacing: 0.005em;
}

.hero__title span {
    display: block;

    color: var(--pv-gold);
}

.hero__description {
    max-width: 510px;
    margin: 28px 0 0;

    color: var(--pv-text-soft);

    font-size: 17px;
    line-height: 1.7;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;

    margin-top: 33px;
}

/* ==================================================
   BOTONES DEL HERO
================================================== */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;

    min-height: 52px;
    padding: 0 24px;

    border: 1px solid transparent;
    border-radius: 999px;

    font-size: 14px;
    font-weight: 600;
    text-decoration: none;

    transition:
        color 200ms ease,
        background-color 200ms ease,
        border-color 200ms ease,
        box-shadow 200ms ease,
        transform 200ms ease;
}

.button svg {
    width: 19px;
    height: 19px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;

    transition: transform 200ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button:hover svg {
    transform: translateX(4px);
}

.button--primary {
    color: var(--pv-white);

    background:
        linear-gradient(
            135deg,
            var(--pv-green),
            var(--pv-green-dark)
        );

    box-shadow:
        0 10px 25px rgba(6, 68, 55, 0.2);
}

.button--primary:hover {
    box-shadow:
        0 15px 32px rgba(6, 68, 55, 0.27);
}

.button--outline {
    color: var(--pv-green);

    background-color: rgba(255, 255, 255, 0.48);
    border-color: rgba(13, 89, 72, 0.45);

    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.button--outline:hover {
    color: var(--pv-white);
    background-color: var(--pv-green);
    border-color: var(--pv-green);
}

/* ==================================================
   TABLET
================================================== */

@media (max-width: 1180px) {
    .navbar__container {
        grid-template-columns: 1fr auto auto;
        gap: 16px;
    }

    .navbar__navigation {
        display: none;
    }

    .navbar__toggle {
        display: block;
        justify-self: end;
    }

    .hero {
        min-height: auto;
        padding-bottom: 105px;
    }

    .hero__container {
        grid-template-columns:
            minmax(360px, 0.9fr)
            minmax(0, 1.1fr);

        gap: 45px;
    }

    .hero__title {
        font-size: clamp(50px, 6vw, 70px);
    }

}

/* ==================================================
   TABLET VERTICAL
================================================== */

@media (max-width: 900px) {
    .hero {
        align-items: flex-start;

        padding-top:
            calc(var(--nav-height) + 65px);
        padding-bottom: 55px;

        background:
            radial-gradient(
                circle at 82% 72%,
                rgba(120, 157, 132, 0.13),
                transparent 38%
            ),
            linear-gradient(
                180deg,
                var(--pv-cream-light) 0%,
                var(--pv-cream) 100%
            );
    }

    /* La fotografía deja de ser el fondo completo del hero. */
    .hero__background {
        display: none;
    }

    .hero__container {
        grid-template-columns: 1fr;
        gap: 22px;

        width:
            min(calc(100% - 48px), 760px);
    }

    .hero__content {
        max-width: 620px;
        margin-inline: auto;

        text-align: center;
    }

    .hero::after {
        display: none;
    }

    .hero__eyebrow {
        justify-content: center;
    }

    .hero__title {
        margin-inline: auto;

        font-size: clamp(54px, 9vw, 75px);
    }

    .hero__description {
        margin-inline: auto;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__mobile-visual {
        position: relative;
        z-index: 2;

        display: block;

        width: min(100%, 760px);
        margin: 2px auto 0;

        overflow: hidden;
        pointer-events: none;
    }

    .hero__mobile-visual-image {
        display: block;

        width: 100%;
        height: clamp(390px, 62vw, 520px);

        object-fit: cover;
        object-position: 68% center;

        /* Integra la fotografía con el crema por arriba y por abajo. */
        -webkit-mask-image: linear-gradient(
            180deg,
            transparent 0%,
            #000 12%,
            #000 78%,
            transparent 100%
        );
        mask-image: linear-gradient(
            180deg,
            transparent 0%,
            #000 12%,
            #000 78%,
            transparent 100%
        );
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
    }
}

/* ==================================================
   MÓVIL
================================================== */

@media (max-width: 650px) {
    :root {
        --nav-height: 78px;
    }

    .navbar__container {
        grid-template-columns: 1fr auto;

        width: calc(100% - 30px);
    }

    .navbar__logo {
        width: auto;
        height: 48px;
        max-width: 190px;
    }

    .navbar__cta {
        display: none;
    }

    .navbar__toggle {
        display: block;

        width: 43px;
        height: 43px;
    }

    .hero {
        min-height: 100svh;

        padding:
            calc(var(--nav-height) + 53px)
            0
            42px;
    }

    .hero__container {
        width: calc(100% - 32px);
        gap: 20px;
    }

    .hero__eyebrow {
        margin-bottom: 18px;

        font-size: 10px;
        letter-spacing: 0.24em;
    }

    .hero__title {
        max-width: 520px;

        font-size: clamp(45px, 13.5vw, 62px);
        line-height: 1.01;
    }

    .hero__description {
        margin-top: 22px;

        font-size: 15px;
        line-height: 1.65;
    }

    .hero__actions {
        gap: 11px;
        margin-top: 27px;
    }

    .button {
        width: 100%;
        min-height: 51px;
    }

    .hero__mobile-visual {
        width: calc(100% + 32px);
        margin-top: 0;
        margin-left: -16px;
    }

    .hero__mobile-visual-image {
        height: clamp(330px, 105vw, 470px);
        object-position: 69% center;
    }

}

/* ==================================================
   MÓVIL PEQUEÑO
================================================== */

@media (max-width: 390px) {
    .navbar__logo {
        height: 43px;
        max-width: 170px;
    }

    .mobile-menu {
        right: 12px;
        left: 12px;
    }

    .hero__container {
        width: calc(100% - 26px);
    }

    .hero__title {
        font-size: 44px;
    }

    .hero {
        padding-bottom: 34px;
    }

    .hero__mobile-visual-image {
        height: 355px;
    }

}

/* ==================================================
   ACCESIBILIDAD
================================================== */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}


/* ==================================================
   MIS SERVICIOS
================================================== */

.services {
    position: relative;
    isolation: isolate;

    padding: clamp(95px, 9vw, 145px) 0;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 0% 100%,
            rgba(120, 157, 132, 0.12),
            transparent 28%
        ),
        radial-gradient(
            circle at 100% 0%,
            rgba(200, 164, 92, 0.09),
            transparent 25%
        ),
        var(--pv-cream);
}

/* Línea dorada decorativa superior */
.services::before {
    content: "";

    position: absolute;
    z-index: -1;

    top: 28px;
    right: -5%;

    width: 48%;
    height: 130px;

    border-top: 1px solid rgba(200, 164, 92, 0.55);
    border-radius: 50%;

    transform: rotate(4deg);

    pointer-events: none;
}

.services__container {
    width: min(
        calc(100% - 64px),
        var(--container-width)
    );

    margin-inline: auto;
}

/* Encabezado */

.services__header {
    display: grid;
    grid-template-columns: minmax(320px, 0.8fr) minmax(350px, 1.2fr);
    align-items: end;
    gap: clamp(40px, 8vw, 130px);

    margin-bottom: 48px;
}

.services__eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;

    margin: 0 0 13px;

    color: var(--pv-green-light);

    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.services__eyebrow::before {
    content: "";

    width: 28px;
    height: 1px;

    background-color: var(--pv-gold);
}

.services__title {
    margin: 0;

    color: var(--pv-green-dark);

    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(50px, 5vw, 76px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.04em;
}

.services__description {
    max-width: 570px;
    margin: 0;

    color: var(--pv-text-soft);

    font-size: 17px;
    line-height: 1.75;
}

/* Cuadrícula */

.services__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(16px, 1.7vw, 26px);
}

/* Card */

.service-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-width: 0;
    padding: 10px;

    overflow: hidden;

    background-color: rgba(255, 253, 248, 0.9);
    border: 1px solid rgba(13, 89, 72, 0.08);
    border-radius: 24px;

    box-shadow:
        0 12px 35px rgba(23, 63, 56, 0.06);

    transition:
        transform 350ms cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 350ms ease,
        border-color 350ms ease;
}

.service-card:hover {
    transform: translateY(-9px);

    border-color: rgba(200, 164, 92, 0.3);

    box-shadow:
        0 22px 55px rgba(23, 63, 56, 0.13);
}

/* Imagen */

.service-card__image-wrapper {
    position: relative;

    aspect-ratio: 4 / 3;

    overflow: hidden;

    background-color: var(--pv-green-soft);
    border-radius: 17px;
}

.service-card__image {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 650ms cubic-bezier(0.22, 1, 0.36, 1),
        filter 350ms ease;
}

.service-card:hover .service-card__image {
    transform: scale(1.06);
    filter: saturate(1.05);
}

.service-card__number {
    position: absolute;

    top: 13px;
    right: 13px;

    display: grid;
    place-items: center;

    width: 39px;
    height: 39px;

    color: var(--pv-green-dark);
    background-color: rgba(255, 253, 248, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;

    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

/* Contenido */

.service-card__content {
    display: flex;
    flex: 1;
    flex-direction: column;

    padding: 22px 12px 12px;
}

.service-card__title {
    min-height: 58px;
    margin: 0 0 13px;

    color: var(--pv-green-dark);

    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(23px, 1.7vw, 29px);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -0.025em;
}

.service-card__description {
    margin: 0 0 24px;

    color: var(--pv-text-soft);

    font-size: 13px;
    line-height: 1.62;
}

/* Enlace inferior */

.service-card__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    margin-top: auto;

    color: var(--pv-green);

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: uppercase;
}

.service-card__arrow {
    display: grid;
    flex: 0 0 auto;
    place-items: center;

    width: 39px;
    height: 39px;

    color: var(--pv-green);

    background-color: rgba(200, 164, 92, 0.18);
    border-radius: 50%;

    transition:
        color 220ms ease,
        background-color 220ms ease,
        transform 220ms ease;
}

.service-card__arrow svg {
    width: 18px;
    height: 18px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-card__link:hover .service-card__arrow {
    color: var(--pv-white);
    background-color: var(--pv-green);

    transform: translateX(4px);
}

.service-card__link:focus-visible {
    outline: 3px solid var(--pv-gold);
    outline-offset: 5px;
    border-radius: 5px;
}

.services__mobile-hint {
    display: none;
}



/* ==================================================
   SOBRE MÍ
================================================== */

.about-me {
    position: relative;
    isolation: isolate;

    padding: clamp(100px, 10vw, 160px) 0;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 8% 18%,
            rgba(120, 157, 132, 0.13),
            transparent 26%
        ),
        radial-gradient(
            circle at 95% 72%,
            rgba(200, 164, 92, 0.09),
            transparent 26%
        ),
        var(--pv-cream-light);
}

/* Mancha verde decorativa inferior */

.about-me::before {
    content: "";

    position: absolute;
    z-index: -1;

    right: -8%;
    bottom: -180px;

    width: 600px;
    height: 310px;

    background-color: rgba(120, 157, 132, 0.12);
    border-radius: 50% 45% 0 0;

    transform: rotate(-8deg);

    pointer-events: none;
}

/* Línea dorada decorativa */

.about-me::after {
    content: "";

    position: absolute;
    z-index: -1;

    top: 70px;
    right: -140px;

    width: 420px;
    height: 520px;

    border: 1px solid rgba(200, 164, 92, 0.45);
    border-left-color: transparent;
    border-radius: 50%;

    transform: rotate(-13deg);

    pointer-events: none;
}

.about-me__container {
    display: grid;
    grid-template-columns:
        minmax(440px, 0.95fr)
        minmax(480px, 1.05fr);
    align-items: center;
    gap: clamp(70px, 8vw, 135px);

    width: min(
        calc(100% - 72px),
        1380px
    );

    margin-inline: auto;
}

/* ==================================================
   IMAGEN
================================================== */

.about-me__visual {
    position: relative;

    width: 100%;
    max-width: 620px;

    margin-inline: auto;
}

/* Marco orgánico */

.about-me__image-frame {
    position: relative;

    height: clamp(520px, 44vw, 650px);

    overflow: hidden;

    background-color: var(--pv-green-soft);
    border-radius:
        42% 58% 48% 52%
        /
        35% 40% 60% 65%;

    box-shadow:
        0 28px 65px rgba(23, 63, 56, 0.16);

    transition:
        transform 500ms cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 500ms ease;
}

/* Segundo borde dorado */

.about-me__image-frame::before {
    content: "";

    position: absolute;
    z-index: 3;

    inset: 10px;

    border: 1px solid rgba(223, 199, 143, 0.9);
    border-radius:
        42% 58% 48% 52%
        /
        35% 40% 60% 65%;

    pointer-events: none;
}

.about-me__visual:hover .about-me__image-frame {
    transform: translateY(-6px);

    box-shadow:
        0 35px 75px rgba(23, 63, 56, 0.21);
}

.about-me__image {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: 68% center;

    transform: scale(1.02);

    transition:
        transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
}

.about-me__visual:hover .about-me__image {
    transform: scale(1.07);
}

.about-me__image-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            transparent 50%,
            rgba(6, 68, 55, 0.15) 100%
        );

    pointer-events: none;
}

/* ==================================================
   CONTENIDO
================================================== */

.about-me__content {
    position: relative;
    z-index: 2;

    max-width: 650px;
}

.about-me__eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;

    margin: 0 0 16px;

    color: var(--pv-green-light);

    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.about-me__eyebrow::before {
    content: "";

    width: 28px;
    height: 1px;

    background-color: var(--pv-gold);
}

.about-me__title {
    margin: 0;

    color: var(--pv-green-dark);

    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(50px, 5vw, 75px);
    font-weight: 600;
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.about-me__title span {
    display: block;

    color: var(--pv-gold);
}

.about-me__lead {
    max-width: 600px;
    margin: 28px 0 0;

    color: var(--pv-text);

    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(20px, 1.8vw, 27px);
    line-height: 1.4;
}

.about-me__description {
    max-width: 610px;
    margin: 20px 0 0;

    color: var(--pv-text-soft);

    font-size: 16px;
    line-height: 1.75;
}

/* Valores */

.about-me__values {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;

    margin-top: 32px;
}

.about-me__value {
    display: flex;
    align-items: flex-start;
    gap: 13px;

    padding-top: 18px;

    border-top: 1px solid rgba(13, 89, 72, 0.13);
}

.about-me__value-number {
    flex: 0 0 auto;

    color: var(--pv-gold);

    font-family: "Playfair Display", Georgia, serif;
    font-size: 18px;
    font-weight: 600;
}

.about-me__value h3 {
    margin: 0 0 6px;

    color: var(--pv-green-dark);

    font-size: 14px;
    font-weight: 700;
}

.about-me__value p {
    margin: 0;

    color: var(--pv-text-soft);

    font-size: 12px;
    line-height: 1.55;
}

/* Frase destacada */

.about-me__quote {
    display: flex;
    gap: 18px;

    margin: 30px 0 0;
    padding: 22px 25px;

    background:
        linear-gradient(
            135deg,
            rgba(223, 199, 143, 0.17),
            rgba(120, 157, 132, 0.1)
        );

    border-left: 3px solid var(--pv-gold);
    border-radius: 0 18px 18px 0;
}

.about-me__quote-mark {
    flex: 0 0 auto;

    height: 42px;

    color: var(--pv-gold);

    font-family: Georgia, serif;
    font-size: 60px;
    line-height: 0.9;
}

.about-me__quote p {
    margin: 0;

    color: var(--pv-text);

    font-family: "Playfair Display", Georgia, serif;
    font-size: 15px;
    font-style: italic;
    line-height: 1.55;
}

.about-me__quote cite {
    display: block;

    margin-top: 8px;

    color: var(--pv-green-light);

    font-family: "DM Sans", Arial, sans-serif;
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* Botón */

.about-me__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;

    min-height: 52px;
    margin-top: 30px;
    padding: 0 25px;

    color: var(--pv-white);

    background:
        linear-gradient(
            135deg,
            var(--pv-green),
            var(--pv-green-dark)
        );

    border-radius: 999px;

    box-shadow:
        0 10px 25px rgba(6, 68, 55, 0.2);

    font-size: 14px;
    font-weight: 600;
    text-decoration: none;

    transition:
        transform 220ms ease,
        box-shadow 220ms ease;
}

.about-me__button svg {
    width: 19px;
    height: 19px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;

    transition: transform 220ms ease;
}

.about-me__button:hover {
    transform: translateY(-3px);

    box-shadow:
        0 15px 32px rgba(6, 68, 55, 0.27);
}

.about-me__button:hover svg {
    transform: translateX(4px);
}

.about-me__button:focus-visible {
    outline: 3px solid var(--pv-gold);
    outline-offset: 5px;
}


/* ==================================================
   CÓMO ES LA CONSULTA
================================================== */

.consultation {
    position: relative;
    isolation: isolate;

    height: auto;
    min-height: 0;
    max-height: none;
    padding: clamp(64px, 5vw, 80px) 0 clamp(52px, 4.5vw, 68px);

    /* Recorta solo el eje horizontal sin crear un scroll vertical interno. */
    overflow-x: clip;
    overflow-y: visible;

    background:
        radial-gradient(
            circle at 8% 80%,
            rgba(120, 157, 132, 0.15),
            transparent 27%
        ),
        radial-gradient(
            circle at 94% 15%,
            rgba(200, 164, 92, 0.1),
            transparent 25%
        ),
        linear-gradient(
            180deg,
            #f3f7f0 0%,
            var(--pv-cream) 100%
        );
}

.consultation__container {
    width: min(
        calc(100% - 72px),
        1380px
    );

    margin-inline: auto;
}

/* ==================================================
   ENCABEZADO
================================================== */

.consultation__header {
    max-width: 780px;

    margin: 0 auto 46px;

    text-align: center;
}

.consultation__eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    margin: 0 0 15px;

    color: var(--pv-green-light);

    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.consultation__eyebrow::before,
.consultation__eyebrow::after {
    content: "";

    width: 27px;
    height: 1px;

    background-color: var(--pv-gold);
}

.consultation__title {
    margin: 0;

    color: var(--pv-green-dark);

    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(52px, 5.2vw, 76px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.045em;
}

.consultation__description {
    max-width: 620px;
    margin: 22px auto 0;

    color: var(--pv-text-soft);

    font-size: 17px;
    line-height: 1.7;
}

/* ==================================================
   PASOS
================================================== */

.consultation__steps {
    --process-gap: clamp(38px, 4vw, 70px);

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: var(--process-gap);
}

/* Card */

.consultation-step {
    position: relative;

    display: flex;
    flex-direction: column;

    min-width: 0;
    min-height: 215px;
    padding: 55px 25px 22px;

    background-color: rgba(255, 253, 248, 0.9);
    border: 1px solid rgba(13, 89, 72, 0.08);
    border-radius: 24px;

    box-shadow:
        0 14px 38px rgba(23, 63, 56, 0.07);

    transition:
        transform 350ms cubic-bezier(0.22, 1, 0.36, 1),
        border-color 350ms ease,
        box-shadow 350ms ease;
}

.consultation-step:hover {
    transform: translateY(-9px);

    border-color: rgba(200, 164, 92, 0.35);

    box-shadow:
        0 24px 55px rgba(23, 63, 56, 0.14);
}

/* Flechas entre cards */

.consultation-step:not(:last-child)::after {
    content: "→";

    position: absolute;

    top: 50%;
    right: calc(var(--process-gap) * -0.68);

    color: var(--pv-green-light);

    font-size: 27px;
    font-weight: 400;
    line-height: 1;

    transform: translateY(-50%);

    pointer-events: none;
}

/* Icono superior */

.consultation-step__icon {
    position: absolute;

    top: -36px;
    left: 25px;

    display: grid;
    place-items: center;

    width: 73px;
    height: 73px;

    color: var(--pv-white);

    background:
        linear-gradient(
            145deg,
            var(--pv-green-light),
            var(--pv-green)
        );

    border: 6px solid #f3f7f0;
    border-radius: 50%;

    box-shadow:
        0 10px 25px rgba(13, 89, 72, 0.18);

    transition:
        transform 350ms cubic-bezier(0.22, 1, 0.36, 1);
}

.consultation-step:hover .consultation-step__icon {
    transform: rotate(-5deg) scale(1.07);
}

.consultation-step__icon svg {
    width: 32px;
    height: 32px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.consultation-step__number {
    display: block;

    margin-bottom: 12px;

    color: var(--pv-gold);

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.consultation-step__title {
    min-height: 58px;
    margin: 0 0 13px;

    color: var(--pv-green-dark);

    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(24px, 1.8vw, 29px);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.025em;
}

.consultation-step__description {
    margin: 0;

    color: var(--pv-text-soft);

    font-size: 13px;
    line-height: 1.65;
}

/* ==================================================
   ANIMACIÓN DE ENTRADA
================================================== */

/*
 * Las cards permanecen visibles si JavaScript no carga.
 * La clase --animated solamente se agrega desde JS.
 */

.consultation--animated .consultation-step {
    opacity: 0;

    transform: translateY(38px);
}

.consultation--animated.is-visible .consultation-step {
    opacity: 1;

    transform: translateY(0);

    transition:
        opacity 650ms ease,
        transform 750ms cubic-bezier(0.22, 1, 0.36, 1),
        border-color 350ms ease,
        box-shadow 350ms ease;
}

.consultation--animated.is-visible
.consultation-step:nth-child(1) {
    transition-delay: 0ms;
}

.consultation--animated.is-visible
.consultation-step:nth-child(2) {
    transition-delay: 140ms;
}

.consultation--animated.is-visible
.consultation-step:nth-child(3) {
    transition-delay: 280ms;
}

.consultation--animated.is-visible
.consultation-step:nth-child(4) {
    transition-delay: 420ms;
}


/* ==================================================
   CONTACTO
================================================== */

.contact {
    position: relative;
    isolation: isolate;

    padding: clamp(58px, 4.8vw, 72px) 0 clamp(40px, 3.8vw, 52px);

    overflow: hidden;

    background:
        radial-gradient(
            circle at 10% 20%,
            rgba(120, 157, 132, 0.15),
            transparent 28%
        ),
        radial-gradient(
            circle at 90% 80%,
            rgba(200, 164, 92, 0.1),
            transparent 26%
        ),
        var(--pv-cream-light);
}

.contact__container {
    display: grid;
    grid-template-columns:
        minmax(280px, 0.8fr)
        minmax(330px, 0.9fr)
        minmax(390px, 1.1fr);
    align-items: center;
    gap: clamp(38px, 4vw, 70px);

    width: min(
        calc(100% - 72px),
        1450px
    );

    margin-inline: auto;
}

/* ==================================================
   INFORMACIÓN
================================================== */

.contact__information {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: center;

    max-width: 470px;
}

.contact__eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;

    margin: 0 0 15px;

    color: var(--pv-green-light);

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.contact__eyebrow::before {
    content: "";

    width: 27px;
    height: 1px;

    background-color: var(--pv-gold);
}

.contact__title {
    margin: 0;

    color: var(--pv-green-dark);

    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(49px, 4.4vw, 68px);
    font-weight: 600;
    line-height: 0.98;
    letter-spacing: 0.008em;
}

.contact__title span {
    display: block;

    color: var(--pv-gold);
}

.contact__description {
    margin: 25px 0 0;

    color: var(--pv-text-soft);

    font-size: 16px;
    line-height: 1.7;
}

/* Botón WhatsApp */

.contact__whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    gap: 10px;

    width: max-content;
    max-width: 100%;
    min-height: 48px;
    margin-top: 33px;
    padding: 0 18px;

    color: var(--pv-white);

    background:
        linear-gradient(
            135deg,
            #168c68,
            var(--pv-green-dark)
        );

    border-radius: 999px;

    box-shadow:
        0 12px 28px rgba(6, 68, 55, 0.23);

    font-size: 14px;
    font-weight: 700;
    text-decoration: none;

    transition:
        transform 220ms ease,
        box-shadow 220ms ease;
}

.contact__whatsapp:hover {
    transform: translateY(-3px);

    box-shadow:
        0 17px 36px rgba(6, 68, 55, 0.3);
}

.contact__whatsapp-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;

    width: 24px;
    height: 24px;
}

.contact__whatsapp-icon svg {
    width: 22px;
    height: 22px;

    fill: currentColor;
    stroke: none;
}

/* ==================================================
   FORMULARIO
================================================== */

.contact-form-wrapper {
    padding: clamp(25px, 3vw, 40px);

    background-color: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(13, 89, 72, 0.08);
    border-radius: 27px;

    box-shadow:
        0 25px 70px rgba(23, 63, 56, 0.13);

    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
}

.contact-form__header {
    margin-bottom: 24px;
}

.contact-form__eyebrow {
    margin: 0 0 7px;

    color: var(--pv-gold);

    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.contact-form__title {
    margin: 0;

    color: var(--pv-green-dark);

    font-family: "Playfair Display", Georgia, serif;
    font-size: 31px;
    font-weight: 600;
    line-height: 1.1;
}

.contact-form__description {
    margin: 8px 0 0;

    color: var(--pv-text-soft);

    font-size: 12px;
    line-height: 1.5;
}

.contact-form {
    display: grid;
    gap: 15px;
}

.contact-form__group {
    display: grid;
    gap: 7px;
}

.contact-form__group label {
    color: var(--pv-text);

    font-size: 11px;
    font-weight: 700;
}

.contact-form__group input,
.contact-form__group select,
.contact-form__group textarea {
    width: 100%;

    color: var(--pv-text);

    background-color: rgba(251, 248, 241, 0.72);
    border: 1px solid rgba(13, 89, 72, 0.15);
    border-radius: 10px;

    font: inherit;
    font-size: 13px;

    outline: none;

    transition:
        background-color 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.contact-form__group input,
.contact-form__group select {
    height: 48px;
    padding: 0 14px;
}

.contact-form__group textarea {
    min-height: 105px;
    padding: 13px 14px;

    line-height: 1.5;
    resize: vertical;
}

.contact-form__group input::placeholder,
.contact-form__group textarea::placeholder {
    color: rgba(89, 107, 102, 0.68);
}

.contact-form__group input:focus,
.contact-form__group select:focus,
.contact-form__group textarea:focus {
    background-color: var(--pv-white);
    border-color: var(--pv-green-light);

    box-shadow:
        0 0 0 4px rgba(120, 157, 132, 0.13);
}

.contact-form__privacy {
    display: flex;
    align-items: flex-start;
    gap: 9px;

    color: var(--pv-text-soft);

    font-size: 10px;
    line-height: 1.5;
    cursor: pointer;
}

.contact-form__privacy input {
    flex: 0 0 auto;

    width: 16px;
    height: 16px;
    margin: 1px 0 0;

    accent-color: var(--pv-green);
}

.contact-form__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    width: 100%;
    min-height: 51px;
    padding: 0 20px;

    color: var(--pv-white);

    background:
        linear-gradient(
            135deg,
            var(--pv-green),
            var(--pv-green-dark)
        );

    border: 0;
    border-radius: 10px;

    box-shadow:
        0 10px 24px rgba(6, 68, 55, 0.2);

    font: inherit;
    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform 220ms ease,
        box-shadow 220ms ease;
}

.contact-form__submit:hover {
    transform: translateY(-2px);

    box-shadow:
        0 14px 30px rgba(6, 68, 55, 0.27);
}

.contact-form__submit svg {
    width: 18px;
    height: 18px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-form__status {
    display: none;

    margin: 0;
    padding: 10px 12px;

    color: var(--pv-green-dark);
    background-color: rgba(120, 157, 132, 0.13);
    border-radius: 8px;

    font-size: 11px;
    line-height: 1.5;
    text-align: center;
}

.contact-form__status.is-visible {
    display: block;
}

.contact-form__security {
    margin: 0;

    color: var(--pv-text-soft);

    font-size: 9px;
    line-height: 1.45;
    text-align: center;
}

/* ==================================================
   FOOTER
================================================== */

.main-footer {
    position: relative;
    isolation: isolate;

    margin-top: -1px;
    padding: 115px 0 28px;

    overflow: hidden;

    color: rgba(255, 255, 255, 0.82);

    background:
        radial-gradient(
            circle at 92% 40%,
            rgba(200, 164, 92, 0.13),
            transparent 27%
        ),
        radial-gradient(
            circle at 10% 100%,
            rgba(120, 157, 132, 0.13),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            var(--pv-green),
            var(--pv-green-dark)
        );
}

.main-footer__container {
    position: relative;
    z-index: 2;

    width: min(
        calc(100% - 72px),
        1380px
    );

    margin-inline: auto;
}

/* ==================================================
   DISTRIBUCIÓN PRINCIPAL
================================================== */

.main-footer__grid {
    display: grid;
    grid-template-columns:
        minmax(260px, 1.2fr)
        minmax(130px, 0.55fr)
        minmax(220px, 0.9fr)
        minmax(270px, 1fr);
    gap: clamp(42px, 5vw, 85px);

    padding-bottom: 55px;
}

/* Separadores */

.main-footer__column,
.main-footer__cta {
    position: relative;

    padding-left: 38px;
}

.main-footer__column::before,
.main-footer__cta::before {
    content: "";

    position: absolute;

    top: 0;
    bottom: 0;
    left: 0;

    width: 1px;

    background:
        linear-gradient(
            180deg,
            transparent,
            rgba(255, 255, 255, 0.2) 15%,
            rgba(255, 255, 255, 0.2) 85%,
            transparent
        );
}

/* ==================================================
   MARCA
================================================== */

.main-footer__logo-link {
    display: inline-flex;
}

.main-footer__logo {
    width: auto;
    height: 78px;

    object-fit: contain;
}

.main-footer__brand-description {
    max-width: 270px;
    margin: 22px 0 0;

    color: rgba(255, 255, 255, 0.78);

    font-size: 14px;
    line-height: 1.65;
}

/* Redes sociales */

.main-footer__socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    margin-top: 25px;
}

.main-footer__social {
    display: grid;
    place-items: center;

    width: 38px;
    height: 38px;

    color: rgba(255, 255, 255, 0.82);

    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;

    text-decoration: none;

    transition:
        color 200ms ease,
        background-color 200ms ease,
        border-color 200ms ease,
        transform 200ms ease;
}

.main-footer__social:hover {
    color: var(--pv-green-dark);
    background-color: var(--pv-gold-light);
    border-color: var(--pv-gold-light);

    transform: translateY(-4px);
}

.main-footer__social svg {
    width: 17px;
    height: 17px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.main-footer__social .social-fill {
    fill: currentColor;
    stroke: none;
}

/* ==================================================
   COLUMNAS Y ENLACES
================================================== */

.main-footer__heading {
    margin: 0 0 20px;

    color: var(--pv-white);

    font-size: 13px;
    font-weight: 700;
}

.main-footer__links {
    display: grid;
    gap: 11px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.main-footer__links a {
    position: relative;

    color: rgba(255, 255, 255, 0.72);

    font-size: 12px;
    line-height: 1.4;
    text-decoration: none;

    transition:
        color 180ms ease,
        padding-left 180ms ease;
}

.main-footer__links a::before {
    content: "";

    position: absolute;

    top: 50%;
    left: 0;

    width: 0;
    height: 1px;

    background-color: var(--pv-gold-light);

    transform: translateY(-50%);

    transition: width 180ms ease;
}

.main-footer__links a:hover {
    color: var(--pv-gold-light);

    padding-left: 15px;
}

.main-footer__links a:hover::before {
    width: 9px;
}

/* ==================================================
   CTA
================================================== */

.main-footer__cta-label {
    margin: 0 0 8px;

    color: var(--pv-gold-light);

    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.main-footer__cta-title {
    max-width: 290px;
    margin: 0;

    color: var(--pv-white);

    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(27px, 2.4vw, 36px);
    font-weight: 500;
    line-height: 1.08;
}

.main-footer__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;

    min-height: 50px;
    margin-top: 23px;
    padding: 0 22px;

    color: var(--pv-green-dark);

    background-color: var(--pv-cream-light);
    border-radius: 999px;

    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.14);

    font-size: 13px;
    font-weight: 700;
    text-decoration: none;

    transition:
        background-color 200ms ease,
        transform 200ms ease,
        box-shadow 200ms ease;
}

.main-footer__button:hover {
    background-color: var(--pv-gold-light);

    transform: translateY(-3px);

    box-shadow:
        0 17px 35px rgba(0, 0, 0, 0.2);
}

.main-footer__button svg {
    width: 18px;
    height: 18px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;

    transition: transform 200ms ease;
}

.main-footer__button:hover svg {
    transform: translateX(4px);
}

.main-footer__signature {
    max-width: 270px;
    margin: 23px 0 0;

    color: var(--pv-gold-light);

    font-family: "Caveat", cursive;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.1;

    transform: rotate(-2deg);
}

/* ==================================================
   PARTE INFERIOR
================================================== */

.main-footer__bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 28px;

    padding-top: 25px;

    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.main-footer__bottom p {
    margin: 0;

    color: rgba(255, 255, 255, 0.62);

    font-size: 10px;
    line-height: 1.5;
}

.main-footer__motto {
    justify-self: end;
    text-align: right;
}

.main-footer__motto a {
    color: inherit;
    text-decoration: none;
}

.main-footer__motto a:hover {
    color: inherit;
    text-decoration: none;
}

/* Foco para navegación con teclado */

.main-footer a:focus-visible {
    outline: 3px solid var(--pv-gold-light);
    outline-offset: 5px;
    border-radius: 4px;
}

/* ==================================================
   AJUSTES FINALES: DISEÑO COMPACTO Y LIMPIO
================================================== */

/* Hero: llena la vista inicial, pero deja de crecer al alejar el zoom. */
.hero {
    min-height: clamp(680px, 100svh, 1000px);
    padding-top: calc(var(--nav-height) + clamp(34px, 4vh, 56px));
    padding-bottom: clamp(55px, 7vh, 85px);
}

/* Servicios más compactos. */
.services {
    padding: clamp(54px, 5.5vw, 78px) 0;
}

.services::before {
    display: none;
}

.services__header {
    margin-bottom: 24px;
}

.service-card__image-wrapper {
    aspect-ratio: 16 / 10;
}

.service-card__content {
    padding: 17px 11px 10px;
}

.service-card__title {
    min-height: 48px;
    margin-bottom: 9px;
    font-size: clamp(21px, 1.55vw, 26px);
}

.service-card__description {
    margin-bottom: 17px;
    line-height: 1.52;
}

/* Sobre mí: fotografía lateral, rectangular e integrada. */
.about-me {
    padding: clamp(54px, 5.5vw, 80px) 0;
    background: var(--pv-cream-light);
}

.about-me::before,
.about-me::after {
    display: none;
}

.about-me__container {
    grid-template-columns: minmax(0, 1.05fr) minmax(440px, 0.95fr);
    gap: clamp(38px, 5vw, 72px);
    width: min(100%, 1500px);
}

.about-me__visual {
    width: 100%;
    max-width: none;
    height: clamp(450px, 38vw, 555px);
    margin: 0;
}

.about-me__image-frame {
    height: 100%;
    border-radius: 0 30px 30px 0;
    box-shadow: none;
}

.about-me__image-frame::before {
    display: none;
}

.about-me__image {
    object-position: 67% center;
}

.about-me__image-overlay {
    background: linear-gradient(90deg, transparent 58%, rgba(255, 253, 248, 0.2) 78%, var(--pv-cream-light) 100%);
}

.about-me__content {
    max-width: 600px;
    padding-right: 36px;
}

.about-me__title {
    font-size: clamp(46px, 4.3vw, 62px);
}

.about-me__lead {
    margin-top: 18px;
    font-size: clamp(19px, 1.55vw, 24px);
}

.about-me__description {
    margin-top: 12px;
    line-height: 1.62;
}

.about-me__values {
    margin-top: 20px;
}

.about-me__value {
    padding-top: 13px;
}

.about-me__quote {
    margin-top: 20px;
    padding: 17px 20px;
}

.about-me__button {
    min-height: 48px;
    margin-top: 20px;
}

/* Consulta compacta. */
.consultation {
    height: auto;
    min-height: 0;
    max-height: none;
    padding: clamp(64px, 5vw, 80px) 0 clamp(52px, 4.5vw, 68px);
    overflow-x: clip;
    overflow-y: visible;
    background: linear-gradient(180deg, #f3f7f0 0%, var(--pv-cream) 100%);
}

.consultation__header {
    margin-bottom: 46px;
}

.consultation__description {
    margin-top: 16px;
}

.consultation-step {
    min-height: 215px;
    padding: 52px 20px 19px;
}

.consultation-step__icon {
    top: -31px;
    width: 64px;
    height: 64px;
}

.consultation-step__icon svg {
    width: 27px;
    height: 27px;
}

.consultation-step__title {
    min-height: 49px;
    margin-bottom: 9px;
    font-size: clamp(21px, 1.55vw, 26px);
}

.consultation-step__description {
    line-height: 1.52;
}

/* Contacto: la imagen ahora pertenece al fondo completo. */
.contact {
    padding: clamp(58px, 4.8vw, 72px) 0 clamp(40px, 3.8vw, 52px);
    background:
        linear-gradient(90deg, rgba(251, 248, 241, 0.96) 0%, rgba(251, 248, 241, 0.91) 0%, rgba(251, 248, 241, 0.8) 100%),
        url("../Img/Decoracion/contacto-nutricion.webp") center / cover no-repeat;
}

.contact__container {
    grid-template-columns: minmax(330px, 0.9fr) minmax(400px, 1.1fr);
    gap: clamp(40px, 5vw, 74px);
    width: min(calc(100% - 72px), 1160px);
}

.contact__information {
    max-width: 440px;
}

.contact__title {
    font-size: clamp(45px, 4vw, 58px);
}

.contact__description {
    margin-top: 18px;
    line-height: 1.58;
}

.contact__whatsapp {
    min-height: 48px;
    margin-top: 23px;
}

.contact-form-wrapper {
    padding: clamp(20px, 2vw, 26px);
}

.contact-form__header {
    margin-bottom: 14px;
}

.contact-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
}

.contact-form__group--full,
.contact-form__privacy,
.contact-form__submit,
.contact-form__status,
.contact-form__security {
    grid-column: 1 / -1;
}

.contact-form__group input,
.contact-form__group select {
    height: 44px;
}

.contact-form__group textarea {
    min-height: 72px;
}

.contact-form__submit {
    min-height: 47px;
}

/* Footer compacto con isotipo decorativo. */
.main-footer {
    padding: 54px 0 17px;
}

.main-footer__isotype {
    position: absolute;
    z-index: 1;
    top: 50%;
    right: 1.5%;
    width: clamp(150px, 15vw, 235px);
    height: auto;
    opacity: 0.12;
    transform: translateY(-42%);
    pointer-events: none;
}

.main-footer__grid {
    gap: clamp(26px, 3.5vw, 50px);
    padding-bottom: 26px;
}

.main-footer__column,
.main-footer__cta {
    padding-left: 28px;
}

.main-footer__logo {
    height: 58px;
}

.main-footer__brand-description {
    margin-top: 15px;
    line-height: 1.5;
}

.main-footer__socials {
    margin-top: 17px;
}

.main-footer__heading {
    margin-bottom: 14px;
}

.main-footer__links {
    gap: 8px;
}

.main-footer__button {
    min-height: 46px;
    margin-top: 17px;
}

.main-footer__signature {
    margin-top: 16px;
}

.main-footer__bottom {
    padding-top: 14px;
}

/* ==================================================
   TRANSICIONES ONDULADAS ENTRE SECCIONES
================================================== */

/*
 * Las ondas pertenecen a la sección que comienza y se desplazan sobre la
 * sección anterior. Los dos píxeles extra evitan líneas claras al cambiar
 * el zoom del navegador o al renderizar con escalas fraccionarias.
 */

:root {
    --section-wave-height: clamp(48px, 5vw, 72px);
}

.about-me,
.consultation,
.contact,
.main-footer {
    overflow: visible;
}

.about-me__container,
.consultation__container,
.contact__container,
.main-footer__container {
    position: relative;
    z-index: 2;
}

.section-transition {
    position: absolute;
    z-index: 1;
    top: calc(2px - var(--section-wave-height));
    left: -2px;

    width: calc(100% + 4px);
    height: calc(var(--section-wave-height) + 3px);

    overflow: hidden;
    pointer-events: none;
}

.section-transition svg {
    width: 100%;
    height: 100%;
}

.section-transition--about {
    color: var(--pv-cream-light);
}

.section-transition--consultation {
    color: #f3f7f0;
}

.section-transition--about path,
.section-transition--consultation path {
    fill: currentColor;
}

.section-transition--consultation-bottom {
    top: auto;
    bottom: calc(2px - var(--section-wave-height));
    color: var(--pv-cream);
}

.section-transition--consultation-bottom path {
    fill: currentColor;
}

.consultation {
    z-index: 2;
}

.contact {
    z-index: 1;
}

/* Footer compacto y unido directamente con Contacto. */
.main-footer {
    z-index: 3;
    margin-top: 0;
    padding-top: 54px;
}
