/* Tipografías alojadas en el propio sitio (sin conexión a Google) */
@font-face {
    font-family: 'DM Sans';
    src: url('../fonts/dm-sans-v17-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Oswald';
    src: url('../fonts/oswald-v57-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* 1. Colores y tipografía */
:root {
    --night: #10121b;
    --paper: #f7f3ed;
    --gold: #ffc43d;
    --orange: #f27835;
    --muted: #a8a9b0;
    --font-body: 'DM Sans', Arial, sans-serif;
    --font-display: 'Oswald', 'Arial Narrow', Impact, sans-serif;
}

/* 2. Estilos base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 82px;
}

body {
    font-family: var(--font-body);
    color: var(--night);
    background: var(--paper);
    line-height: 1.6;
}

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

a {
    color: inherit;
}

/* 3. Cabecera y navegación */
.site-header {
    height: 82px;
    padding: 7px clamp(20px, 5vw, 76px);
    position: absolute;
    z-index: 10;
    inset: 0 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, rgba(10, 10, 18, .62), transparent);
}

.brand {
    height: 68px;
    display: flex;
    align-items: center;
}

.brand img {
    height: 100%;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: clamp(20px, 3.5vw, 52px);
}

.main-nav a {
    text-decoration: none;
    color: #fff;
    font-size: .91rem;
    font-weight: 600;
    transition: color .2s;
}

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

.main-nav .nav-contact {
    padding: 10px 21px;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 999px;
}

.menu-toggle {
    display: none;
}

/* 4. Portada principal */
.hero {
    min-height: max(620px, 100svh);
    position: relative;
    display: flex;
    align-items: center;
    padding: 120px clamp(24px, 10vw, 150px) 90px;
    color: white;
    background: #20151a url('../img/carrusel-dorado.webp') center 42%/cover no-repeat;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(12, 11, 17, .84) 0%, rgba(12, 11, 17, .54) 48%, rgba(12, 11, 17, .12) 100%), linear-gradient(0deg, rgba(12, 11, 17, .5), transparent 40%);
}

.hero-content {
    position: relative;
    max-width: 760px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: .75rem;
    font-weight: 700;
    color: var(--orange);
}

.hero h1, .section-heading h2, .gallery-heading h2, .contact-inner h2 {
    font: 600 clamp(3.4rem, 7vw, 6.6rem)/.99 var(--font-display);
    text-transform: uppercase;
    letter-spacing: -.02em;
}

.hero h1 {
    margin: 18px 0 20px;
}

.hero h1 span {
    color: var(--gold);
}

.hero-copy {
    max-width: 520px;
    color: #f0ece9;
    font-size: clamp(1rem, 1.35vw, 1.18rem);
    line-height: 1.75;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    text-decoration: none;
    font-weight: 700;
    transition: transform .2s, filter .2s;
}

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

.button-yellow {
    margin-top: 31px;
    padding: 15px 21px;
    background: var(--gold);
    color: var(--night);
    border-radius: 3px;
}

.hero-scroll {
    position: absolute;
    bottom: 28px;
    left: clamp(24px, 10vw, 150px);
    color: #fff;
    text-decoration: none;
    font-size: .82rem;
    font-weight: 600;
}

.hero-scroll span {
    margin-left: 10px;
    color: var(--gold);
}

/* 5. Secciones de presentación */
.section {
    padding: clamp(65px, 9vw, 120px) clamp(22px, 9vw, 130px);
}

.intro {
    display: grid;
    grid-template-columns: 1fr .8fr;
    gap: 8vw;
    align-items: end;
    background: var(--paper);
}

.section-heading h2, .gallery-heading h2 {
    font-size: clamp(2.9rem, 5vw, 5rem);
    margin-top: 14px;
}

.section-heading h2 span {
    color: var(--orange);
}

.intro-copy p {
    font-size: clamp(1rem, 1.25vw, 1.12rem);
    color: #55545a;
    line-height: 1.85;
}

.text-link {
    display: inline-block;
    margin-top: 23px;
    text-decoration: none;
    font-weight: 700;
    border-bottom: 1px solid var(--orange);
    padding-bottom: 5px;
}

.text-link span {
    color: var(--orange);
    margin-left: 9px;
}

/* 6. Tarjetas de servicios */
.offer {
    padding-top: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.offer-card {
    min-height: 220px;
    padding: 30px;
    background: #fff;
    border-top: 3px solid var(--gold);
    box-shadow: 0 12px 35px #15131a0b;
}

.offer-icon {
    font-size: 1.7rem;
    color: var(--orange);
}

.offer-card h3 {
    font: 600 1.6rem var(--font-display);
    text-transform: uppercase;
    margin: 13px 0 8px;
}

.offer-card p {
    color: #65636a;
    font-size: .94rem;
    line-height: 1.75;
}

/* 7. Galería y fotos ampliadas */
.gallery-section {
    background: var(--night);
    color: white;
}

.gallery-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 25px;
    margin-bottom: 32px;
}

.gallery-heading h2 {
    font-size: clamp(2.6rem, 4.5vw, 4.3rem);
}

.gallery-heading>p {
    max-width: 300px;
    color: #c1c0c5;
    margin-bottom: 8px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: clamp(130px, 16vw, 240px);
    gap: 14px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    background: #282630;
    margin: 0;
    min-width: 0;
}

.gallery-item img, .gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}

.gallery-open {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.gallery-open img {
    object-fit: cover;
}

.gallery-item figcaption {
    position: absolute;
    inset: auto 0 0;
    padding: 30px 15px 12px;
    color: white;
    font-size: .84rem;
    font-weight: 600;
    background: linear-gradient(transparent, rgba(0, 0, 0, .78));
}

.gallery-portrait {
    grid-row: span 2;
}

.gallery-wide {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item img.pos-left {
    object-position: 25% center;
}

.image-lightbox {
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(94vw, 1200px);
    height: min(92vh, 900px);
    max-width: none;
    max-height: none;
    padding: 52px 20px 22px;
    border: 0;
    background: #10121bf2;
    color: #fff;
    display: none;
    grid-template-rows: 1fr auto;
    justify-items: center;
    align-items: center;
}

.image-lightbox[open] {
    display: grid;
}

.image-lightbox::backdrop {
    background: #000d;
}

.image-lightbox img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.image-lightbox p {
    margin: 12px 0 0;
    font-size: .9rem;
    color: #ddd;
}

.lightbox-close {
    position: absolute;
    top: 10px;
    right: 14px;
    width: 42px;
    height: 42px;
    border: 1px solid #ffffff70;
    border-radius: 50%;
    background: #ffffff16;
    color: white;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

/* 8. Contacto */
.contact-section {
    background: var(--orange);
    padding: clamp(55px, 8vw, 95px) clamp(22px, 9vw, 130px);
    color: var(--night);
}

.contact-inner {
    max-width: 1240px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.contact-inner h2 {
    font-size: clamp(3.2rem, 6vw, 5.8rem);
    margin: 10px 0 15px;
}

.contact-inner>div>p:last-child {
    max-width: 500px;
    color: #311e1c;
}

.contact-inner .eyebrow {
    color: #4c2020;
}

.button-whatsapp {
    flex: 0 0 auto;
    background: var(--night);
    color: #fff;
    padding: 19px 22px;
    border-radius: 4px;
    min-width: 280px;
    justify-content: space-between;
}

.button-whatsapp small {
    display: block;
    font-size: .78rem;
    font-weight: 400;
    color: #d1d0d2;
    margin-top: 3px;
}

.wa-icon {
    font-size: 1.6rem;
    color: #6be394;
}

/* 9. Pie de página */
.site-footer {
    background: #0a0b10;
    color: #c4c3c7;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px clamp(22px, 5vw, 76px);
    font-size: .82rem;
    gap: 12px 20px;
    flex-wrap: wrap;
}

.site-footer a {
    text-decoration: none;
}

.site-footer a:first-child {
    font-weight: 700;
    color: white;
}

/* 10. Ajustes para pantallas grandes */
@media(min-width:1500px) {

    .hero {
        padding-left: max(10vw, calc((100vw - 1250px)/2));
        padding-right: max(10vw, calc((100vw - 1250px)/2));
    }

    .hero-scroll {
        left: max(10vw, calc((100vw - 1250px)/2));
    }

    .section {
        padding-left: max(9vw, calc((100vw - 1250px)/2));
        padding-right: max(9vw, calc((100vw - 1250px)/2));
    }
}

/* 11. Ajustes para tablets y pantallas medianas */
@media(max-width:900px) {

    .gallery-grid {
        grid-auto-rows: clamp(140px, 27vw, 250px);
    }

    .gallery-heading {
        align-items: start;
        flex-direction: column;
    }

    .gallery-heading>p {
        max-width: 500px;
    }

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

    .button-whatsapp {
        min-width: min(100%, 360px);
    }

    .intro {
        gap: 5vw;
    }
}

/* 12. Ajustes para móviles */
@media(max-width:640px) {

    html {
        scroll-padding-top: 68px;
    }

    .site-header {
        height: 70px;
        padding: 5px 18px;
        background: rgba(12, 12, 19, .92);
    }

    .brand {
        height: 59px;
    }

    .brand img {
        max-width: 130px;
    }

    .menu-toggle {
        width: 44px;
        height: 44px;
        border: 1px solid #ffffff72;
        background: #10121b;
        color: white;
        border-radius: 3px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        cursor: pointer;
    }

    .menu-toggle span {
        height: 2px;
        width: 19px;
        background: #fff;
        transition: transform .2s;
    }

    .menu-toggle[aria-expanded=true] span:first-child {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle[aria-expanded=true] span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle[aria-expanded=true] span:last-child {
        transform: translateY(-7px) rotate(-45deg);
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        padding: 12px 20px 20px;
        background: #10121b;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        padding: 13px 7px;
        border-bottom: 1px solid #ffffff20;
    }

    .main-nav .nav-contact {
        border: 0;
        border-bottom: 1px solid #ffffff20;
        border-radius: 0;
    }

    .hero {
        min-height: 760px;
        min-height: 100svh;
        padding: 118px 24px 90px;
        background-position: 58% center;
    }

    .hero-shade {
        background: linear-gradient(90deg, rgba(12, 11, 17, .78), rgba(12, 11, 17, .25)), linear-gradient(0deg, rgba(12, 11, 17, .6), transparent 60%);
    }

    .hero h1 {
        font-size: clamp(3.1rem, 13vw, 5.2rem);
    }

    .hero-copy {
        font-size: 1rem;
    }

    .hero-scroll {
        left: 24px;
        bottom: 25px;
        font-size: .77rem;
    }

    .section {
        padding: 65px 22px;
    }

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

    .section-heading h2 {
        font-size: clamp(2.9rem, 12vw, 4.2rem);
    }

    .offer {
        padding-top: 0;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .offer-card {
        min-height: 0;
        padding: 24px;
    }

    .gallery-heading h2 {
        font-size: clamp(2.6rem, 11vw, 3.8rem);
    }

    .gallery-grid {
        gap: 8px;
        grid-auto-rows: clamp(130px, 43vw, 230px);
    }

    .gallery-item figcaption {
        font-size: .72rem;
        padding: 25px 9px 8px;
    }

    .contact-section {
        padding: 62px 22px;
    }

    .contact-inner h2 {
        font-size: clamp(3.2rem, 13vw, 4.7rem);
    }

    .button-whatsapp {
        width: 100%;
        padding: 16px;
    }

    .site-footer {
        padding: 22px;
        flex-direction: column;
        align-items: flex-start;
        gap: 7px;
    }

    .image-lightbox {
        width: 100vw;
        height: 100dvh;
        padding: 58px 12px 18px;
    }

    .image-lightbox img {
        max-width: 100%;
        max-height: 100%;
    }
}

/* 13. Accesibilidad: reducir movimiento */
@media(prefers-reduced-motion:reduce) {

    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        transition: none!important;
    }
}


/* 14. Página de aviso legal */
.legal-header {
    background: var(--night);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px clamp(20px, 5vw, 76px);
}

.legal-header .brand {
    height: 60px;
}

.back-link {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: .91rem;
}

.back-link:hover {
    color: var(--gold);
}

.legal-page {
    max-width: 820px;
    margin: 0 auto;
    padding: clamp(40px, 6vw, 80px) 22px;
}

.legal-page h1 {
    font: 600 clamp(2.4rem, 5vw, 3.6rem)/1.05 var(--font-display);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.legal-page h2 {
    font: 600 1.5rem var(--font-display);
    text-transform: uppercase;
    margin: 36px 0 10px;
    color: var(--night);
}

.legal-page p, .legal-page li {
    color: #45444a;
    margin-bottom: 10px;
}

.legal-page ul {
    padding-left: 22px;
    margin-bottom: 10px;
}

.legal-page .updated {
    color: #77767c;
    font-size: .9rem;
}

.legal-page a {
    color: var(--orange);
}

.rellenar {
    background: #fff3a8;
    padding: 0 4px;
    border-radius: 3px;
}


/* Foco visible para navegación con teclado */
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}
