:root {
    --bg: #080808;
    --surface: #111111;
    --surface-strong: #171717;
    --ink: #f7f0e8;
    --muted: #b8aaa1;
    --line: #2c2724;
    --rose: #c77a75;
    --rose-dark: #9b4d4a;
    --gold: #d4af68;
    --gold-dark: #c1973d;
    --charcoal: #050505;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
    --container: 1140px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background: var(--bg);
    font-family: Inter, Arial, sans-serif;
    line-height: 1.6;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

/* Caps content width so sections don't stretch edge-to-edge on wide screens */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2 {
    font-family: "Playfair Display", Georgia, serif;
    line-height: 0.98;
    letter-spacing: 0;
}

h1 {
    margin-bottom: 22px;
    font-size: clamp(4rem, 12vw, 8.7rem);
}

h2 {
    margin-bottom: 18px;
    font-size: clamp(2.2rem, 5vw, 4.5rem);
}

h3 {
    margin-bottom: 12px;
    font-size: 1.18rem;
    line-height: 1.25;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 50;
    width: 100%;
    padding: 16px clamp(18px, 5vw, 72px);
    color: #ffffff;
    transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.site-header.is-scrolled,
.site-header.menu-active {
    color: var(--ink);
    background: rgba(8, 8, 8, 0.92);
    border-bottom: 1px solid rgba(212, 175, 104, 0.18);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(16px);
}

.brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 12px;
    font-size: 0.96rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.brand .logo {
    width: 50px;
    height: 50px;
}

.brand .texto {
    height: 30px;
    width: auto;
    margin-top: 10px;
}

.site-header.is-scrolled .brand img,
.site-header.menu-active .brand img {
    border-color: var(--line);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: clamp(16px, 3vw, 34px);
    font-size: 0.94rem;
    font-weight: 700;
}

.main-nav a {
    transition: color 180ms ease;
}

.main-nav a:hover {
    color: var(--gold);
}

.nav-cta {
    min-height: 42px;
    padding: 11px 17px;
    color: #000000;
    background: var(--gold);
    border-radius: 8px;
}

.nav-cta:hover {
    color: #000000 !important;
    background: var(--gold-dark);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
}

.site-header.is-scrolled .menu-toggle,
.site-header.menu-active .menu-toggle {
    background: var(--surface-strong);
    border-color: var(--line);
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 100vh;
    padding: 0 clamp(18px, 5vw, 72px);
    color: #ffffff;
    background: var(--ink);
    overflow: hidden;
}

/* Bounded to --container (like the rest of the site) instead of bleeding edge-to-edge */
.hero-bg {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 60%;
    z-index: 0;
    width: 100%;
    max-width: var(--container);
    transform: translateX(-50%);
    opacity: 0.4;
    filter: blur(2px);
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right top;
}

.hero::before {
    position: absolute;
    inset: 0;
    z-index: 1;
    content: "";
    background: linear-gradient(90deg, rgba(14, 10, 10, 0.88) 0%, rgba(14, 10, 10, 0.72) 42%, rgba(14, 10, 10, 0.2) 72%);
    pointer-events: none;
}

.hero-copy {
    position: relative;
    z-index: 2;
    max-width: 760px;
    padding: 150px 0 clamp(56px, 9vw, 96px);
}

.eyebrow {
    margin-bottom: 14px;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.lead {
    max-width: 650px;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 13px 22px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 600;
    line-height: 1;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button.primary {
    color: #000000;
    background: var(--gold);
}

.button.primary:hover {
    background: var(--gold-dark);
}

.button.secondary {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.08);
}

.button.secondary:hover {
    color: var(--gold-dark);
    border-color: rgba(255, 255, 255, 0.72);
}

.section {
    padding: clamp(72px, 10vw, 132px) clamp(20px, 5vw, 72px);
}

.section-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: clamp(30px, 5vw, 54px);
    text-align: center;
}

.section-heading h2 {
    max-width: 780px;
    margin-bottom: 0;
}

.services {
    background: linear-gradient(180deg, #0c0c0c 0%, #111111 100%);
    border-top: 1px solid rgba(212, 175, 104, 0.14);
    border-bottom: 1px solid rgba(212, 175, 104, 0.14);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.service-card {
    min-height: 270px;
    padding: clamp(24px, 4vw, 36px);
    background: linear-gradient(180deg, #191716 0%, #111111 100%);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.28);
    transition: border-color 220ms ease;
}

.service-card:hover {
    border-color: var(--gold);
}

.service-card h3 {
    color: #ffffff;
}

.service-icon {
    position: relative;
    width: 5rem;
    height: 5rem;
    margin: 0 auto 2rem;
}

.service-icon img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 220ms ease;
}

.service-icon img.is-hover {
    opacity: 0;
}

.service-card:hover .service-icon img.is-default {
    opacity: 0;
}

.service-card:hover h3 {
    color: var(--gold);
}

.service-card:hover .service-icon img.is-hover {
    opacity: 1;
}

/* Dispositivos táctiles (sin mouse/hover): mostrar directamente el estado "hover" */
@media (hover: none) {
    .service-card {
        border-color: var(--gold);
    }

    .service-card h3 {
        color: var(--gold);
    }

    .service-icon img.is-default {
        opacity: 0;
    }

    .service-icon img.is-hover {
        opacity: 1;
    }
}

.service-number {
    display: inline-flex;
    margin-bottom: 54px;
    color: var(--rose);
    font-weight: 800;
}

.service-card p,
.copy-block p {
    color: var(--muted);
}

.about,
.experience {
    background: radial-gradient(circle at 18% 18%, rgba(199, 122, 117, 0.16), transparent 30%),
    #0b0b0b;
    border-bottom: 1px solid rgba(212, 175, 104, 0.14);
}

/* Reusable image + copy split layout, shared by the "Sobre mí" and "Experiencia" sections */
.media-copy-grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
    gap: clamp(32px, 7vw, 92px);
    align-items: center;
}

.media-frame {
    display: grid;
    place-items: center;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #000000;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.media-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.copy-block {
    max-width: 760px;
}

.feature-list {
    display: grid;
    gap: 12px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.feature-list li {
    position: relative;
    padding-left: 24px;
    color: #eadfd7;
    font-weight: 700;
}

.feature-list li::before {
    position: absolute;
    top: 0.7em;
    left: 0;
    width: 9px;
    height: 9px;
    content: "";
    background: var(--gold);
    border-radius: 50%;
}

.booking {
    background: linear-gradient(135deg, rgba(199, 122, 117, 0.1), transparent 36%),
    var(--charcoal);
}

.cta-inner {
    display: grid;
    justify-items: center;
    gap: 24px;
    max-width: 720px;
    margin: 0 auto;
    color: #ffffff;
    text-align: center;
}

.cta-inner p {
    max-width: 560px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.76);
}

.booking-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
    gap: clamp(24px, 5vw, 48px);
    max-width: var(--container);
    margin: 0 auto;
}

.contact-form-card {
    padding: clamp(24px, 4vw, 34px);
    background: linear-gradient(180deg, #191716 0%, #111111 100%);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.28);
}

.contact-form-card h3 {
    margin-bottom: 6px;
    color: #ffffff;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.5rem;
}

.contact-form-card > p {
    margin-bottom: 22px;
    color: var(--muted);
}

.contact-form {
    display: grid;
    gap: 16px;
}

.form-group {
    display: grid;
    gap: 8px;
}

.form-group label {
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea {
    padding: 13px 16px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.98rem;
    transition: border-color 180ms ease, background 180ms ease;
}

.form-group input:focus,
.form-group textarea:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--gold);
    outline: none;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form .button {
    justify-self: start;
    margin-top: 4px;
    border: none;
    cursor: pointer;
}

.map-embed {
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 320px;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.map-embed iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.gallery-thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
    cursor: pointer;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease;
}

.gallery-thumb:hover img {
    transform: scale(1.06);
}

.gallery-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(8, 8, 8, 0);
    transition: background 300ms ease;
}

.gallery-thumb:hover::after {
    background: rgba(8, 8, 8, 0.18);
}

.gallery-more {
    display: flex;
    justify-content: center;
    margin-top: clamp(28px, 5vw, 44px);
}

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 300ms ease, visibility 300ms ease;
}

.lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.lightbox__backdrop {
    position: absolute;
    inset: 0;
    background-color: #000000;
    background-size: cover;
    background-position: center;
    filter: blur(36px) brightness(0.4);
    transform: scale(1.15);
}

.lightbox__figure {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    max-width: min(1000px, 92vw);
    max-height: 86vh;
}

.lightbox__figure img {
    width: auto;
    max-width: 100%;
    max-height: 74vh;
    border-radius: 8px;
    box-shadow: var(--shadow);
    object-fit: contain;
}

.lightbox__figure figcaption {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
}

.lightbox__count {
    color: rgba(255, 255, 255, 0.65);
    font-weight: 500;
    font-size: 0.85rem;
}

.lightbox__close,
.lightbox__nav {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    font-size: 1.4rem;
    transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.lightbox__close:hover,
.lightbox__nav:hover {
    color: var(--charcoal);
    background-color: var(--gold);
}

.lightbox__close {
    top: 24px;
    right: 24px;
}

.lightbox__nav--prev {
    top: 50%;
    left: 24px;
    transform: translateY(-50%);
}

.lightbox__nav--next {
    top: 50%;
    right: 24px;
    transform: translateY(-50%);
}

.lightbox__nav--prev:hover,
.lightbox__nav--next:hover {
    transform: translateY(-50%) scale(1.08);
}

.site-footer {
    padding: 26px clamp(20px, 5vw, 72px);
    color: #ffffff;
    background: #030303;
    border-top: 1px solid rgba(212, 175, 104, 0.14);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    color: var(--gold);
    font-weight: 800;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-social a {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(212, 175, 104, 0.2);
    border-radius: 50%;
    transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.footer-social a:hover {
    color: var(--gold);
    background: rgba(255, 255, 255, 0.13);
    transform: translateY(-2px);
}

.footer-credit {
    display: flex;
    align-items: baseline;
    gap: 7px;
}

.footer-credit a {
    display: inline-flex;
    align-items: center;
}

.footer-credit img {
    height: 17px;
    width: auto;
}

.floating-whatsapp {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 40;
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    color: #ffffff;
    background: #1f9d59;
    border-radius: 50%;
    box-shadow: 0 16px 36px rgba(12, 84, 47, 0.3);
    font-size: 0.88rem;
    font-weight: 900;
}

.floating-whatsapp img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


@media (max-width: 960px) {
    .hero {
        align-items: center;
    }

    .hero::before {
        background: linear-gradient(180deg, rgba(14, 10, 10, 0.9) 0%, rgba(14, 10, 10, 0.72) 50%, rgba(14, 10, 10, 0.88) 100%);
    }

    .hero-copy {
        padding-top: 138px;
    }

    .hero-bg img {
        object-position: 68% top;
    }

    .service-grid,
    .media-copy-grid,
    .booking-grid {
        grid-template-columns: 1fr;
    }

    .media-frame {
        max-width: 430px;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .map-embed {
        height: auto;
        min-height: 0;
        aspect-ratio: 4 / 3;
    }

    /* Below this, the desktop nav (5 links + CTA) no longer fits in one row */
    .brand span {
        max-width: 150px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .menu-toggle {
        position: relative;
        z-index: 61;
        display: block;
        color: inherit;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        z-index: 60;
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        width: min(82vw, 360px);
        height: 100vh;
        padding: 96px 28px 28px;
        color: var(--ink);
        background: #0d0d0d;
        border-left: 1px solid var(--line);
        box-shadow: -24px 0 60px rgba(0, 0, 0, 0.48);
        transform: translateX(102%);
        transition: transform 220ms ease;
    }

    .main-nav.is-open {
        transform: translateX(0);
    }

    .main-nav a {
        padding: 12px 0;
        font-size: 1.08rem;
    }

    .nav-cta {
        justify-content: center;
        margin-top: 8px;
        padding: 15px 18px !important;
        text-align: center;
    }
}

/* Below this, .hero-bg's width equals the viewport (no longer capped by --container),
   so the 60% offset used to push the image right on desktop just shifts it off-screen
   and leaves a gap on the left. Neutralize it back to centered. */
@media (max-width: 700px) {
    .hero-bg {
        left: 50%;
    }
}

@media (max-width: 740px) {
    h1 {
        font-size: clamp(3.5rem, 17vw, 5.4rem);
    }

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

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .floating-whatsapp {
        right: 16px;
        bottom: 16px;
    }
}

@media (max-width: 480px) {
    .brand img {
        width: 44px;
        height: 44px;
    }

    .hero {
        padding-right: 18px;
        padding-left: 18px;
    }

    .button {
        width: 100%;
    }

    .section {
        padding-right: 18px;
        padding-left: 18px;
    }

    .gallery-grid {
        gap: 8px;
    }

    .lightbox__nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .lightbox__nav--prev {
        left: 8px;
    }

    .lightbox__nav--next {
        right: 8px;
    }

    .lightbox__close {
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}
