/* =====================================================
   VARIABLES
===================================================== */

:root {
    --color-bg: #f8f3ec;
    --color-bg-soft: #fffaf4;
    --color-white: #ffffff;

    --color-gold: #c6a15b;
    --color-gold-dark: #9f7a3b;
    --color-gold-light: #ead8b2;

    --color-brown: #3d3028;
    --color-text: #5f554f;
    --color-text-light: #857b74;

    --color-dark: #221d1a;
    --color-border: rgba(198, 161, 91, 0.28);

    --font-title: "Cormorant Garamond", serif;
    --font-body: "Poppins", sans-serif;

    --container-width: 1180px;
    --header-height: 82px;

    --radius-small: 10px;
    --radius-medium: 18px;
    --radius-large: 28px;

    --shadow-soft: 0 18px 45px rgba(54, 40, 28, 0.08);
    --shadow-card: 0 22px 55px rgba(49, 37, 27, 0.11);

    --transition: 0.3s ease;
}


/* =====================================================
   RESET
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    max-width: 100vw;
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.7;
}

body.menu-open {
    overflow: hidden;
}

img {
    display: block;
    width: 100%;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

ul {
    list-style: none;
}

section {
    position: relative;
}

.container {
    width: min(var(--container-width), 90%);
    margin-inline: auto;
}


/* =====================================================
   ELEMENTOS GENERALES
===================================================== */

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--color-brown);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(198, 161, 91, 0.12);
    border: 1px solid rgba(198, 161, 91, 0.18);
    max-width: fit-content;
    white-space: nowrap;
}

.contact .section-label {
    padding: 5px 11px;
    font-size: 0.88rem;
}

.section-heading {
    width: min(720px, 100%);
    margin: 0 auto 64px;
    text-align: center;
}

.section-heading h2,
.about__content h2,
.experience__content h2,
.contact h2 {
    margin-bottom: 20px;
    color: var(--color-brown);
    font-family: var(--font-title);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    line-height: 1.05;
}

.section-heading p,
.contact p {
    color: var(--color-text-light);
    font-size: 1rem;
}

.button {
    display: inline-flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.91rem;
    font-weight: 500;
    transition:
        color var(--transition),
        background var(--transition),
        border-color var(--transition),
        transform var(--transition),
        box-shadow var(--transition);
}

.button:hover {
    transform: translateY(-3px);
}

.button--primary {
    color: var(--color-white);
    background: linear-gradient(
        135deg,
        #f9d46c,
        #d4a35a 35%,
        #f7e08c 55%,
        #c28b3f
    );
    background-size: 200% 200%;
    box-shadow: 0 13px 28px rgba(159, 122, 59, 0.35);
}

.button--primary:hover {
    background-position: 100% 0;
    box-shadow: 0 18px 36px rgba(159, 122, 59, 0.42);
    transform: translateY(-2px);
}

.button--outline {
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(5px);
}

.button--outline:hover {
    color: var(--color-brown);
    background: var(--color-white);
    border-color: var(--color-white);
}

.header {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    border-bottom: 1px solid transparent;
    transition:
        background var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

.header.scrolled {
    background: rgba(255, 250, 244, 0.94);
    border-bottom-color: rgba(198, 161, 91, 0.14);
    box-shadow: 0 10px 35px rgba(43, 32, 24, 0.08);
    backdrop-filter: blur(12px);
}

.header__container {
    display: flex;
    min-height: var(--header-height);
    align-items: center;
    justify-content: space-between;
}

.logo,
.footer__logo {
    display: inline-flex;
    align-items: center;
}

.logo img,
.footer__logo img {
    display: block;
    width: auto;
    height: 72px;
    object-fit: contain;
}

.footer__logo img {
    height: 64px;
}

.navigation {
    display: flex;
    align-items: center;
    gap: 32px;
}

.navigation a {
    position: relative;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition);
}

.header.scrolled .navigation a {
    color: var(--color-brown);
}

.navigation a::after {
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 1px;
    content: "";
    background: var(--color-gold);
    transition: width var(--transition);
}

.navigation a:hover::after,
.navigation a.active::after {
    width: 100%;
}

.navigation a:hover {
    color: var(--color-gold-light);
}

.header.scrolled .navigation a:hover {
    color: var(--color-gold-dark);
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}

.menu-button span {
    width: 21px;
    height: 2px;
    background: var(--color-white);
    transition:
        transform var(--transition),
        opacity var(--transition);
}

.header.scrolled .menu-button {
    background: rgba(198, 161, 91, 0.12);
}

.header.scrolled .menu-button span {
    background: var(--color-brown);
}


/* =====================================================
   HERO
===================================================== */

.hero {
    display: flex;
    min-height: 100vh;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(
            90deg,
            rgba(24, 18, 14, 0.82),
            rgba(24, 18, 14, 0.52),
            rgba(24, 18, 14, 0.24)
        ),
        url("../images/hero.jpeg") center 4% / cover no-repeat;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at 25% 40%,
            rgba(198, 161, 91, 0.14),
            transparent 42%
        );
}

.hero__container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
}

.hero__content {
    width: min(700px, 100%);
    padding: calc(var(--header-height) + 1rem) 0 5.5rem;
    color: var(--color-white);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    margin-inline: auto;
    max-width: 720px;
}

.hero .section-label {
    color: var(--color-gold-light);
    display: block;
    margin: 0 0 24px;
    z-index: 4;
    position: relative;
    align-self: center;
}

.hero h1 {
    max-width: 720px;
    margin: 0 0 25px;
    color: var(--color-white);
    font-family: var(--font-title);
    font-size: clamp(3.3rem, 7vw, 6.3rem);
    font-weight: 500;
    line-height: 0.95;
    text-wrap: balance;
}

.hero p {
    max-width: 620px;
    margin: 0 0 38px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.05rem;
    line-height: 1.9;
}

@media (min-width: 769px) {
    .hero h1,
    .hero p {
        display: none;
    }

    .hero__actions {
        justify-content: center;
        align-items: center;
    }
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 0 auto 2.5rem;
    z-index: 4;
    position: relative;
    justify-content: center;
    width: 100%;
    max-width: 520px;
    padding-bottom: 1rem;
}

.hero__scroll {
    position: absolute;
    z-index: 2;
    bottom: 16px;
    left: 50%;
    display: flex;
    width: 28px;
    height: 46px;
    align-items: flex-start;
    justify-content: center;
    padding-top: 9px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 20px;
    transform: translateX(-50%);
}

.hero__content {
    width: min(700px, 100%);
    min-height: calc(100vh - var(--header-height));
    padding: var(--header-height) 0 5.5rem;
    color: var(--color-white);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    margin-inline: auto;
}

.hero__scroll span {
    width: 4px;
    height: 8px;
    border-radius: 10px;
    background: var(--color-white);
    animation: scrollIndicator 1.7s infinite;
}

@keyframes scrollIndicator {
    0% {
        opacity: 0;
        transform: translateY(0);
    }

    40% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateY(16px);
    }
}


/* =====================================================
   PROMESA
===================================================== */

.promise {
    padding: 110px 0;
    background: var(--color-bg-soft);
}

.promise::before {
    position: absolute;
    top: 45px;
    right: -130px;
    width: 330px;
    height: 330px;
    content: "";
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(198, 161, 91, 0.13),
        transparent 70%
    );
}

.promise__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.promise-card {
    position: relative;
    overflow: hidden;
    padding: 42px 34px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-soft);
    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.promise-card:hover {
    border-color: rgba(198, 161, 91, 0.65);
    box-shadow: var(--shadow-card);
    transform: translateY(-8px);
}

.promise-card__number {
    display: block;
    margin-bottom: 22px;
    color: var(--color-gold);
    font-family: var(--font-title);
    font-size: 2.3rem;
    line-height: 1;
}

.promise-card h3 {
    margin-bottom: 14px;
    color: var(--color-brown);
    font-family: var(--font-title);
    font-size: 1.8rem;
    font-weight: 600;
}

.promise-card p {
    color: var(--color-text-light);
    font-size: 0.92rem;
}


/* =====================================================
   SERVICIOS
===================================================== */

.services {
    padding: 120px 0;
    background:
        linear-gradient(
            rgba(248, 243, 236, 0.95),
            rgba(248, 243, 236, 0.95)
        ),
        radial-gradient(
            circle at 10% 20%,
            rgba(198, 161, 91, 0.15),
            transparent 35%
        );
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(198, 161, 91, 0.16);
    border-radius: var(--radius-medium);
    background: var(--color-white);
    box-shadow: var(--shadow-soft);
    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

.service-card:hover {
    border-color: rgba(198, 161, 91, 0.7);
    box-shadow: var(--shadow-card);
    transform: translateY(-9px);
}

.service-more-link {
    grid-row: 3;
    align-self: flex-start;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid rgba(159, 122, 59, 0.4);
    color: var(--color-gold-dark);
    background: transparent;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.6;
    transition: color var(--transition), border-color var(--transition);
}

.service-more-link:hover {
    color: var(--color-brown);
    border-color: var(--color-brown);
}

.service-info-modal {
    position: fixed;
    z-index: 3200;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 32px 20px;
    background: transparent;
}

.service-info-modal[hidden] {
    display: none;
}

.service-info-card {
    position: relative;
    width: min(680px, 100%);
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
    padding: 38px 40px 32px;
    border: 1px solid rgba(234, 216, 178, 0.62);
    border-radius: 24px;
    background: linear-gradient(145deg, #ffffff, #fffaf4);
    box-shadow:
        0 35px 90px rgba(0, 0, 0, 0.3),
        0 0 0 8px rgba(255, 255, 255, 0.05);
}

.service-info-close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
    color: var(--color-text-light);
    background: transparent;
    font-size: 1.4rem;
    font-weight: 300;
    line-height: 1;
    transition: color var(--transition), background var(--transition), transform var(--transition);
}

.service-info-close:hover {
    color: var(--color-brown);
    background: rgba(198, 161, 91, 0.14);
    transform: rotate(6deg);
}

.service-info-eyebrow {
    color: var(--color-gold-dark);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.service-info-card h2 {
    margin: 7px 40px 12px 0;
    color: var(--color-brown);
    font-family: var(--font-title);
    font-size: clamp(2rem, 4vw, 2.7rem);
    font-weight: 600;
    line-height: 1.05;
}

.service-info-description {
    margin: 0 0 24px;
    color: var(--color-text);
    font-size: 0.9rem;
    line-height: 1.75;
    white-space: pre-line;
}

.service-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding: 22px 0;
    border-top: 1px solid rgba(198, 161, 91, 0.22);
    border-bottom: 1px solid rgba(198, 161, 91, 0.22);
}

.service-info-grid h3 {
    margin-bottom: 11px;
    color: var(--color-brown);
    font-family: var(--font-title);
    font-size: 1.4rem;
    font-weight: 600;
}

.service-info-grid ul {
    display: grid;
    min-height: 1rem;
    gap: 7px;
}

.service-info-grid li {
    position: relative;
    padding-left: 17px;
    color: var(--color-text);
    font-size: 0.82rem;
    line-height: 1.55;
}

.service-info-grid li::before {
    position: absolute;
    top: 0;
    left: 0;
    content: "•";
    color: var(--color-gold);
    font-weight: 700;
}

.service-info-benefits li::before {
    content: "✓";
}

.service-info-duration {
    margin: 20px 0 0;
    color: var(--color-text);
    font-size: 0.84rem;
}

.service-info-duration strong {
    color: var(--color-brown);
}

.service-info-duration span {
    display: block;
    margin-top: 5px;
    white-space: pre-line;
}

.service-info-note {
    margin: 18px 0 0;
    padding: 12px 14px;
    border-left: 3px solid var(--color-gold);
    border-radius: 0 10px 10px 0;
    color: var(--color-brown);
    background: rgba(234, 216, 178, 0.3);
    font-size: 0.78rem;
    line-height: 1.6;
}

.service-info-note:empty {
    display: none;
}

.service-card__image {
    position: relative;
    height: 340px;
    overflow: hidden;
    background: #e7ded4;
}

.service-card__image::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(
        to top,
        rgba(25, 19, 15, 0.28),
        transparent 45%
    );
}

.service-card__image img {
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.55s ease;
}

.service-card:hover .service-card__image img {
    transform: scale(1.06);
}

.service-card__tag {
    position: absolute;
    z-index: 2;
    top: 18px;
    right: 18px;
    padding: 7px 13px;
    border-radius: 999px;
    color: var(--color-white);
    background: rgba(34, 29, 26, 0.72);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
}

.service-card__content {
    flex: 1;
    padding: 20px 22px 18px;
    display: grid;
    grid-template-rows: 68px 78px 24px minmax(70px, auto);
    align-content: stretch;
    align-items: start;
    min-height: 280px;
}

.service-card__content h3 {
    min-height: 0;
    margin: 0;
    color: var(--color-brown);
    font-family: var(--font-title);
    font-size: 1.85rem;
    font-weight: 600;
    line-height: 1.1;
}

.service-card__content p {
    min-height: 0;
    margin: 0;
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.service-card__footer {
    display: grid;
    grid-row: 4;
    width: 100%;
    align-items: center;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(198, 161, 91, 0.18);
}

.service-card__price {
    display: flex;
    min-height: 2.5em;
    align-items: center;
    color: var(--color-gold-dark);
    font-family: var(--font-title);
    font-size: clamp(1.3rem, 1.8vw, 1.65rem);
    font-weight: 700;
    line-height: 1.15;
}

.service-card__footer a,
.service-card__footer button {
    display: inline-flex;
    width: 106px;
    min-width: 106px;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 999px;
    color: var(--color-white);
    background: linear-gradient(
        135deg,
        #f8d366,
        #c5983e 38%,
        #f5e09a 60%,
        #b57f35
    );
    background-size: 200% 200%;
    font-size: 0.82rem;
    font-weight: 500;
    transition:
        background var(--transition),
        transform var(--transition),
        box-shadow var(--transition);
    white-space: nowrap;
    box-shadow: 0 10px 22px rgba(180, 122, 40, 0.22);
    border: none;
    cursor: pointer;
}

.service-card__footer a:hover {
    background: var(--color-brown);
    transform: translateY(-2px);
}


/* =====================================================
   EXPERIENCIAS COMPLEMENTARIAS
===================================================== */

.complements {
    overflow: hidden;
    padding: 105px 0;
    background:
        radial-gradient(circle at 85% 15%, rgba(198, 161, 91, 0.13), transparent 30%),
        var(--color-bg-soft);
}

.complements__container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: clamp(48px, 7vw, 90px);
}

.complements__content h2 {
    max-width: 540px;
    margin: 0 0 30px;
    color: var(--color-brown);
    font-family: var(--font-title);
    font-size: clamp(2.6rem, 5vw, 4rem);
    font-weight: 600;
    line-height: 1.02;
}

.complements__list {
    display: grid;
    gap: 4px;
}

.complement-item {
    position: relative;
    padding: 16px 0 16px 22px;
    border-bottom: 1px solid rgba(198, 161, 91, 0.22);
}

.complement-item::before {
    position: absolute;
    top: 24px;
    left: 0;
    width: 7px;
    height: 7px;
    content: "";
    border-radius: 50%;
    background: var(--color-gold);
    box-shadow: 0 0 0 5px rgba(198, 161, 91, 0.12);
}

.complement-item h3 {
    margin-bottom: 3px;
    color: var(--color-brown);
    font-family: var(--font-title);
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.2;
}

.complement-item p {
    color: var(--color-text-light);
    font-size: 0.84rem;
    line-height: 1.6;
}

.complements__media {
    position: relative;
    overflow: hidden;
    width: min(100%, 380px);
    min-height: 350px;
    justify-self: center;
    border: 1px solid rgba(198, 161, 91, 0.34);
    border-radius: var(--radius-large);
    background: var(--color-dark);
    box-shadow: var(--shadow-card);
}

.complements__media::before {
    position: absolute;
    z-index: 1;
    inset: 14px;
    content: "";
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: calc(var(--radius-large) - 8px);
    pointer-events: none;
}

.complements__media video {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 350px;
    object-fit: cover;
}


/* =====================================================
   EXPERIENCIA
===================================================== */

.experience {
    display: grid;
    min-height: 610px;
    grid-template-columns: 1fr 1fr;
    background: var(--color-dark);
}

.experience__image {
    min-height: 540px;
    overflow: hidden;
}

.experience__image img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.experience:hover .experience__image img {
    transform: scale(1.03);
}

.experience__content {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    padding: 80px 10%;
}

.experience__content .section-label {
    color: var(--color-gold-light);
}

.experience__content h2 {
    max-width: 580px;
    color: var(--color-white);
}

.experience__content p {
    max-width: 540px;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.7);
}

.text-link {
    position: relative;
    padding-bottom: 6px;
    color: var(--color-gold-light);
    font-size: 0.92rem;
    font-weight: 500;
}

.text-link::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 45%;
    height: 1px;
    content: "";
    background: var(--color-gold-light);
    transition: width var(--transition);
}

.text-link:hover::after {
    width: 100%;
}


/* =====================================================
   ACERCA DE
===================================================== */

.about {
    padding: 120px 0;
    background: var(--color-bg-soft);
}

.about::after {
    position: absolute;
    bottom: -120px;
    left: -120px;
    width: 350px;
    height: 350px;
    content: "";
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(198, 161, 91, 0.12),
        transparent 70%
    );
}

.about__container {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    align-items: center;
    gap: 80px;
}

.about__content {
    position: relative;
    z-index: 2;
}

.about__content h2 {
    text-align: left;
}

.about__content > p {
    margin-bottom: 20px;
    color: var(--color-text-light);
}

.about__quote {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-top: 36px;
    padding: 25px 28px;
    border-left: 3px solid var(--color-gold);
    background: rgba(198, 161, 91, 0.08);
}

.about__quote > span {
    color: var(--color-gold);
    font-family: var(--font-title);
    font-size: 3.2rem;
    line-height: 0.8;
}

.about__quote p {
    color: var(--color-brown);
    font-family: var(--font-title);
    font-size: 1.45rem;
    font-style: italic;
    line-height: 1.3;
}

.about__image {
    position: relative;
}

.about__image::before {
    position: absolute;
    z-index: 0;
    top: -20px;
    right: -20px;
    width: 75%;
    height: 80%;
    content: "";
    border: 1px solid var(--color-gold);
    border-radius: var(--radius-large);
}

.about__image img {
    position: relative;
    z-index: 1;
    min-height: 520px;
    border-radius: var(--radius-large);
    object-fit: cover;
    box-shadow: var(--shadow-card);
}


/* =====================================================
   CONTACTO
===================================================== */

.contact {
    overflow: hidden;
    padding: 88px 0;
    text-align: center;
    background:
        linear-gradient(
            rgba(248, 243, 236, 0.91),
            rgba(248, 243, 236, 0.91)
        ),
        url("../images/contacto.jpeg") center / cover no-repeat;
    position: relative;
}

.modal-close {
    display: none;
    position: fixed;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    color: var(--color-brown);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    z-index: 3010;
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.14);
}

body.modal-open {
    overflow: hidden;
}

.contact.contact--open {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(32px, 6vh, 64px) 24px;
    background: transparent;
    backdrop-filter: none;
    animation: contactBackdropIn 260ms ease both;
}

.contact.contact--open::before,
.contact.contact--open::after {
    display: none;
}

.contact.contact--open .contact__container {
    position: relative;
    width: min(740px, 100%);
    max-height: none;
    overflow: visible;
    padding: 0;
    z-index: 3001;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    place-items: stretch;
}

.contact.contact--open .contact__info {
    display: none !important;
}

.contact.contact--open .contact__form {
    grid-column: 1 / -1;
    margin: 0;
    width: 100%;
    max-height: calc(100dvh - 96px);
    overflow-y: auto;
    padding: 30px 32px;
    background:
        linear-gradient(145deg, #ffffff, #fffaf4);
    border: 1px solid rgba(234, 216, 178, 0.52);
    border-radius: 24px;
    box-shadow:
        0 35px 90px rgba(0, 0, 0, 0.34),
        0 0 0 8px rgba(255, 255, 255, 0.04);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 16px;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: rgba(198, 161, 91, 0.55) transparent;
    animation: contactModalIn 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.contact.contact--open.contact--closing {
    animation: contactBackdropOut 220ms ease both;
}

.contact.contact--open.contact--closing .contact__form {
    animation: contactModalOut 220ms ease both;
}

@keyframes contactBackdropIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes contactBackdropOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes contactModalIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes contactModalOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(12px) scale(0.97);
    }
}

.contact.contact--open .modal-close {
    display: inline-flex;
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3010;
    width: 34px;
    height: 34px;
    aspect-ratio: 1;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
    color: var(--color-text-light);
    background: transparent;
    font-size: 1.4rem;
    font-weight: 300;
    line-height: 1;
    box-shadow: none;
    transition: color var(--transition), background var(--transition), transform var(--transition);
}

.contact.contact--open .modal-close:hover {
    color: var(--color-brown);
    background: rgba(198, 161, 91, 0.14);
    transform: rotate(6deg);
}

.contact__selected-service {
    grid-column: 1 / -1;
    margin: 0;
    padding: 10px 14px;
    border-left: 3px solid var(--color-gold);
    border-radius: 0 10px 10px 0;
    color: var(--color-brown);
    background: rgba(234, 216, 178, 0.25);
    font-size: 0.82rem;
    font-weight: 700;
    text-align: left;
}

.contact__selected-service:empty {
    display: none;
}

.contact::before,
.contact::after {
    position: absolute;
    width: 330px;
    height: 330px;
    content: "";
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(198, 161, 91, 0.17),
        transparent 70%
    );
}

.contact::before {
    top: -160px;
    left: -90px;
}

.contact::after {
    right: -90px;
    bottom: -160px;
}

.contact__container {
    position: relative;
    z-index: 2;
    width: min(1120px, 92%);
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    align-items: center;
    gap: 70px;
}

.contact h2 {
    margin-bottom: 18px;
}

.contact p {
    margin-bottom: 36px;
    max-width: 520px;
}

.contact__info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 18px;
}

.contact .section-label {
    margin-inline: auto;
}

.contact__form {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px 16px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 250, 244, 0.96));
    padding: 36px 38px;
    border-radius: 30px;
    box-shadow: 0 30px 80px rgba(61, 48, 40, 0.15);
    border: 1px solid rgba(198, 161, 91, 0.28);
}

.contact__form-heading {
    grid-column: 1 / -1;
    margin-bottom: 4px;
    text-align: left;
}

.contact__form-heading span {
    color: var(--color-gold-dark);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.contact__heading-modal {
    display: none;
}

.contact.contact--open .contact__heading-default,
.contact.contact--open .contact__form-heading h3,
.contact.contact--open .contact__form-heading p {
    display: none;
}

.contact.contact--open .contact__heading-modal {
    display: inline;
}

.contact__form-heading h3 {
    margin: 7px 0 5px;
    color: var(--color-brown);
    font-family: var(--font-title);
    font-size: clamp(1.65rem, 3vw, 2rem);
    font-weight: 600;
    line-height: 1.1;
}

.contact__form-heading p {
    margin: 0;
    color: var(--color-text-light);
    font-size: 0.8rem;
    line-height: 1.55;
}

.contact__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact__field.contact__field--center {
    grid-column: auto;
    align-items: stretch;
    text-align: left;
}

.contact__field.contact__field--center input {
    margin: 0;
    width: 100%;
}

.contact__field label {
    color: var(--color-brown);
    font-size: 0.82rem;
    font-weight: 600;
}

.contact__field input {
    width: 100%;
    min-height: 50px;
    padding: 0 16px;
    border: 1px solid rgba(95, 85, 79, 0.2);
    border-radius: 13px;
    outline: none;
    color: var(--color-brown);
    background: rgba(255, 255, 255, 0.82);
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.contact__field input::placeholder {
    color: #aaa09a;
}

.contact__field input:focus {
    border-color: var(--color-gold);
    outline: none;
    background: var(--color-white);
    box-shadow: 0 0 0 4px rgba(198, 161, 91, 0.13);
}

.contact__radio-group {
    grid-column: 1 / -1;
    border: none;
    padding: 0;
    margin: 0;
}

.contact__radio-group legend {
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--color-brown);
}

.contact__radio-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: center;
    gap: 12px;
}

.contact__radio-field {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 62px;
    gap: 8px;
    padding: 0 14px;
    border: 1px solid rgba(198, 161, 91, 0.22);
    border-radius: 14px;
    color: var(--color-text);
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.78);
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease, background 180ms ease;
}

.contact__radio-field:hover {
    transform: translateY(-2px);
    border-color: rgba(198, 161, 91, 0.4);
    box-shadow: 0 8px 24px rgba(61, 48, 40, 0.07);
}

.contact__radio-field input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.contact__radio-field span {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 9px 0;
    line-height: 1.25;
}

.contact__radio-field strong {
    color: var(--color-brown);
    font-size: 0.86rem;
}

.contact__radio-field small {
    margin-top: 3px;
    color: var(--color-text-light);
    font-size: 0.7rem;
}

.contact__radio-field:has(input:checked) {
    color: var(--color-dark);
    border-color: transparent;
    background: linear-gradient(135deg, rgba(234, 216, 178, 0.62), rgba(255, 250, 244, 0.98));
    box-shadow: inset 0 0 0 1px rgba(198, 161, 91, 0.35), 0 12px 30px rgba(198, 161, 91, 0.12);
}

.contact__radio-field:has(input:checked)::after {
    display: grid;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    place-items: center;
    content: "✓";
    border-radius: 50%;
    color: var(--color-white);
    background: var(--color-gold-dark);
    font-size: 0.72rem;
    font-weight: 700;
}

.contact__form button[type="submit"] {
    grid-column: 1 / -1;
    justify-self: center;
    width: auto;
    min-width: 220px;
    margin-top: 2px;
    padding: 13px 30px;
    letter-spacing: 0.02em;
}

.contact__privacy {
    grid-column: 1 / -1;
    justify-self: center;
    width: 100%;
    max-width: none !important;
    margin: -8px 0 0 !important;
    color: var(--color-text-light) !important;
    font-size: 0.68rem !important;
    line-height: 1.4;
    text-align: center;
}

.contact__conditions-note {
    grid-column: 1 / -1;
    display: block;
    justify-self: center;
    width: 100%;
    margin: 0 !important;
    color: var(--color-text-light) !important;
    font-size: 0.72rem !important;
    font-style: italic;
    line-height: 1.45;
    text-align: center;
}

.contact__conditions-note strong {
    color: var(--color-brown);
}

.contact__phone:hover {
    color: var(--color-brown);
}


/* =====================================================
   FOOTER
===================================================== */

.footer {
    padding: 40px 0;
    color: rgba(255, 255, 255, 0.7);
    background: var(--color-dark);
}

.footer__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.footer__logo {
    flex-shrink: 0;
}

.footer p {
    font-size: 0.78rem;
    text-align: center;
}

.footer__links {
    display: flex;
    gap: 22px;
}

.footer__links a {
    font-size: 0.8rem;
    transition: color var(--transition);
    text-decoration: none;
}

.footer__links a:hover {
    color: var(--color-gold-light);
}

.footer p a {
    color: inherit;
    text-decoration: none;
}

.footer p a:hover {
    color: var(--color-gold-light);
}



/* =====================================================
   ANIMACIONES DE ENTRADA
===================================================== */

.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1024px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about__container {
        gap: 50px;
    }

    .experience__content {
        padding: 65px 8%;
    }
}


/* =====================================================
   MÓVIL
===================================================== */

@media (max-width: 768px) {
    :root {
        --header-height: 72px;
    }

    .contact__container {
        grid-template-columns: 1fr;
    }

    .contact__form {
        width: 100%;
    }

    .menu-button {
        display: flex;
        z-index: 1001;
        background: rgba(255, 255, 255, 0.90);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
        border: 1px solid rgba(198, 161, 91, 0.28);
    }

    .menu-button span {
        background: var(--color-brown);
    }

    .navigation {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        display: flex;
        width: min(320px, 85%);
        height: calc(100vh - var(--header-height));
        align-items: flex-start;
        flex-direction: column;
        gap: 0;
        padding: 35px 28px;
        background: rgba(255, 250, 244, 0.98);
        box-shadow: -15px 20px 40px rgba(36, 27, 21, 0.13);
        border-top-left-radius: 24px;
        border-bottom-left-radius: 24px;
        transition: right var(--transition);
        backdrop-filter: blur(14px);
    }

    .navigation.open {
        right: 0;
    }

    .navigation a,
    .header.scrolled .navigation a {
        width: 100%;
        padding: 16px 0;
        border-bottom: 1px solid rgba(198, 161, 91, 0.18);
        color: var(--color-brown);
        font-size: 1rem;
    }

    .navigation a::after {
        display: none;
    }

    .menu-button.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-button.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-button.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hero {
        min-height: 100vh;
        background:
            linear-gradient(
                90deg,
                rgba(24, 18, 14, 0.82),
                rgba(24, 18, 14, 0.52),
                rgba(24, 18, 14, 0.24)
            ),
            url("../images/hero-mv.jpeg") center 15% / cover no-repeat;
    }

    .hero__content {
        padding-top: 72px;
        padding-bottom: 40px;
        margin-inline: auto;
        max-width: 520px;
        text-align: center;
    }

    .hero h1 {
        font-size: clamp(3rem, 14vw, 4.5rem);
    }

    .hero p {
        font-size: 0.95rem;
    }

    .hero__actions {
        align-items: center;
        flex-direction: column;
        width: 100%;
        max-width: 520px;
        margin-inline: auto;
    }

    .hero__actions .button {
        width: auto;
        min-width: 220px;
    }

    .hero__scroll {
        display: none;
    }

    .promise,
    .services,
    .complements,
    .about,
    .contact {
        padding: 85px 0;
    }

    .promise__grid,
    .services__grid {
        grid-template-columns: 1fr;
    }

    .section-heading {
        margin-bottom: 45px;
    }

    .section-label {
        font-size: 0.78rem;
        letter-spacing: 0.14em;
        padding: 5px 10px;
        white-space: normal;
        max-width: 100%;
        word-break: break-word;
    }

    .section-label::after {
        display: none;
    }

    .service-card__content p {
        min-height: auto;
    }

    .service-card__content h3 {
        min-height: auto;
    }

    .service-card__content {
        grid-template-rows: auto auto auto auto;
        min-height: 0;
        gap: 12px;
    }

    .complements__container {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .complements__media,
    .complements__media video {
        min-height: 310px;
    }

    .experience {
        grid-template-columns: 1fr;
    }

    .experience__image {
        min-height: 380px;
    }

    .contact__form {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 24px 20px;
    }

    .contact.contact--open {
        padding: 12px;
        background: rgba(25, 19, 15, 0.78);
        backdrop-filter: blur(10px);
    }

    .service-info-modal {
        padding: 14px;
        background: rgba(25, 19, 15, 0.78);
        backdrop-filter: blur(10px);
    }

    .service-info-card {
        max-height: calc(100dvh - 28px);
        padding: 32px 22px 26px;
        border-radius: 22px;
    }

    .service-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact.contact--open .contact__container {
        width: 100%;
    }

    .contact.contact--open .contact__form {
        max-height: calc(100dvh - 24px);
        grid-template-columns: minmax(0, 1fr);
        padding: 28px 20px 24px;
        border-radius: 22px;
    }

    .contact.contact--open .modal-close {
        position: fixed;
        top: 24px;
        right: 24px;
        width: 44px;
        height: 44px;
        padding: 0;
        font-size: 1.75rem;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 22px 44px rgba(0, 0, 0, 0.14);
    }

    .contact__field {
        width: 100%;
    }

    .contact__field input {
        width: 100%;
    }

    .contact__field.contact__field--center {
        align-items: center;
        text-align: center;
    }

    .contact__field.contact__field--center input {
        width: 100%;
        margin: 0 auto;
        max-width: 420px;
    }

    .contact__radio-options {
        grid-template-columns: 1fr;
    }

    .contact__radio-field {
        width: 80%;
        max-width: none;
    }

    .contact__radio-field {
        justify-content: flex-start;
    }

    .contact__radio-field span {
        padding: 12px 18px;
    }

    .contact__form button[type="submit"] {
        justify-self: stretch;
        width: 100%;
    }

    .experience__content {
        padding: 70px 8%;
    }

    .about__container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about__image {
        width: 94%;
        margin-inline: auto;
    }

    .about__image img {
        min-height: 420px;
    }

    .footer__container {
        align-items: center;
        flex-direction: column;
        text-align: center;
    }

    .footer__links {
        flex-wrap: wrap;
        justify-content: center;
    }
}


/* =====================================================
   MÓVILES PEQUEÑOS
===================================================== */

@media (max-width: 480px) {
    .container {
        width: min(92%, var(--container-width));
    }

    .logo img {
        height: 60px;
    }

    .hero h1 {
        font-size: 3.1rem;
    }

    .hero p {
        line-height: 1.75;
    }

    .section-heading h2,
    .about__content h2,
    .experience__content h2,
    .contact h2 {
        font-size: 2.65rem;
    }

    .promise-card {
        padding: 34px 26px;
    }

    .service-card__image {
        height: 300px;
    }

    .service-card__content {
        padding: 18px 20px;
    }

    .service-card__footer {
        align-items: stretch;
        flex-direction: column;
        grid-template-columns: 1fr;
        padding-top: 14px;
    }

    .about__image img {
        object-position: 20% top;
    }

    .service-card__footer a,
    .service-card__footer button {
        width: 100%;
        text-align: center;
    }

    .experience__image {
        min-height: 310px;
    }

    .experience__content {
        padding: 60px 6%;
    }

    .about__quote {
        padding: 22px;
    }

    .about__quote p {
        font-size: 1.25rem;
    }

    .whatsapp-button {
        right: 17px;
        bottom: 17px;
        width: 54px;
        height: 54px;
    }
}


/* =====================================================
   REDUCCIÓN DE MOVIMIENTO
===================================================== */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
