/* =========================
   HERO
========================= */
.hero-section {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background: #000;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.42) 35%, rgba(0,0,0,0.62) 100%),
        linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.20) 55%, rgba(0,0,0,0.38) 100%);
}

.hero-content {
    position: relative;
    z-index: 3;
    padding-top: calc(var(--header-height) + 2rem);
    padding-bottom: 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    margin-bottom: 1.2rem;
    backdrop-filter: blur(6px);
}

.hero-title {
    font-size: clamp(2.7rem, 7vw, 5.6rem);
    line-height: 0.95;
    font-weight: 900;
    color: #fff;
    max-width: 900px;
    margin-bottom: 1.3rem;
    text-wrap: balance;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255,255,255,0.88);
    max-width: 700px;
    margin-bottom: 2rem;
}

.hero-actions .btn {
    min-width: 180px;
}

/* =========================
   ABOUT
========================= */
.about-section {
    background:
        radial-gradient(circle at top left, rgba(214,179,106,0.08), transparent 28%),
        linear-gradient(180deg, #101218 0%, #0b0b0f 100%);
}

.about-section img {
    width: 100%;
    height: auto;
    max-height: 760px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border: 1px solid var(--color-border);
    
}


.about-section p {
    color: var(--color-text-soft);
    font-size: 1.03rem;
    margin-bottom: 1rem;
}

/* =========================
   GALLERY
========================= */
.gallery-section {
    background: var(--color-bg);
}
.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid var(--color-border);
    background: #0f1117;
    box-shadow: var(--shadow-soft);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.gallery-card img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    transition: transform 0.55s ease, filter 0.4s ease;
}

.gallery-card:hover img {
    transform: scale(1.05);
    filter: brightness(1.03);
}

.gallery-card-body {
    position: relative;
    z-index: 2;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.04));
    border-top: 1px solid var(--color-border);
}

.gallery-card-title {
    color: #fff;
    font-weight: 700;
}

.gallery-card-text {
    color: var(--color-text-soft);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* =========================
   LOCATION
========================= */
.location-section {
    background:
        linear-gradient(180deg, #0d0f14 0%, #11141c 100%);
}

.location-section p {
    color: var(--color-text-soft);
    font-size: 1.03rem;
}

.location-section .ratio {
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
}

/* =========================
   CONTACT
========================= */
.contact-section {
    background:
        radial-gradient(circle at bottom right, rgba(214,179,106,0.08), transparent 25%),
        linear-gradient(180deg, #11141c 0%, #090a0f 100%);
}

.document-section {
    background:
        linear-gradient(180deg, #0d0f14 0%, #11141c 100%);
}

.contact-form {
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-medium);
}

.pdf-preview-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-medium);
}

.pdf-preview-frame {
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(0,0,0,0.18);
}

.pdf-preview-frame iframe {
    display: block;
    width: 100%;
    min-height: 760px;
    border: 0;
    background: #fff;
}

.contact-section p {
    color: var(--color-text-soft);
}

/* =========================
   SERVICES
========================= */
.services-section {
    background:
        linear-gradient(180deg, #0f1118 0%, #0b0b0f 100%);
}

.service-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    border: 1px solid var(--color-border);
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
}

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

.service-card p {
    color: var(--color-text-soft);
}

/* =========================
   FAQ
========================= */
.faq-section {
    background:
        radial-gradient(circle at top right, rgba(214,179,106,0.08), transparent 28%),
        linear-gradient(180deg, #0c0f15 0%, #11141c 100%);
}

.faq-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--color-border);
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
}

.faq-card h3 {
    color: #fff;
}

.faq-card p {
    color: var(--color-text-soft);
    line-height: 1.7;
}

/* =========================
   FADE IN SUAVE
========================= */
.fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 991.98px) {
    .hero-title {
        max-width: 100%;
    }

    .gallery-card img {
        height: 360px;
    }

    .about-section img {
        min-height: auto;
        max-height: 520px;
    }
}

@media (max-width: 767.98px) {
    .hero-content {
        padding-top: calc(var(--header-height) + 1.5rem);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .gallery-card img {
        height: 300px;
    }
}


.contact-form .is-focused {
    transition: var(--transition-fast);
}

.contact-form .is-focused .form-control {
    border-color: rgba(214, 179, 106, 0.7);
    box-shadow: 0 0 0 0.2rem rgba(214, 179, 106, 0.10);
}

@media (max-width: 767.98px) {
    .gallery-marquee-shell {
        gap: 0.55rem;
    }

    .gallery-marquee-control {
        width: 42px;
        height: 42px;
        font-size: 1.15rem;
    }
}

@media (max-width: 767.98px) {
    .brand-logo {
        height: 34px;
        max-width: 120px;
    }

    .navbar-brand span {
        font-size: 0.95rem;
    }
}

/* =========================
   GALLERY
========================= */
.gallery-section {
    background: var(--color-bg);
}

.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid var(--color-border);
    background: #0f1117;
    box-shadow: var(--shadow-soft);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.gallery-card img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    transition: transform 0.55s ease, filter 0.4s ease;
}

.gallery-card:hover img {
    transform: scale(1.05);
    filter: brightness(1.03);
}

.gallery-card-body {
    position: relative;
    z-index: 2;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.04));
    border-top: 1px solid var(--color-border);
}

.gallery-card-title {
    color: #fff;
    font-weight: 700;
}

.gallery-card-text {
    color: var(--color-text-soft);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* =========================
   GALERÍA MARQUEE
========================= */
.gallery-marquee-shell {
    position: relative;
    width: 100%;
}

.gallery-marquee-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.gallery-marquee-track {
    display: flex;
    gap: 1.25rem;
    width: max-content;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.gallery-marquee-card {
    position: relative;
    flex: 0 0 auto;
    width: 320px;
    height: 440px;
    border-radius: 24px;
    overflow: hidden;
    background: #0f1117;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
    transition:
        transform 0.18s linear,
        box-shadow 0.25s ease,
        opacity 0.2s linear;
    transform-origin: center center;
    will-change: transform, opacity;
    cursor: pointer;
}

.gallery-marquee-card.is-center {
    z-index: 8;
    box-shadow: var(--shadow-medium);
}

.gallery-marquee-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.gallery-marquee-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 58px;
    height: 120px;
    border: 0;
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.28);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition:
        opacity 0.25s ease,
        background 0.25s ease,
        transform 0.25s ease;
}

.gallery-marquee-shell:hover .gallery-marquee-control,
.gallery-marquee-shell:focus-within .gallery-marquee-control {
    opacity: 1;
    pointer-events: auto;
}

.gallery-marquee-control-left {
    left: 14px;
}

.gallery-marquee-control-right {
    right: 14px;
}

.gallery-marquee-control span {
    font-size: 2rem;
    line-height: 1;
    transform: translateY(-1px);
}

.gallery-marquee-control:hover,
.gallery-marquee-control:focus {
    background: rgba(0, 0, 0, 0.58);
    transform: translateY(-50%) scale(1.04);
    outline: none;
}

.gallery-marquee-control:focus {
    box-shadow: 0 0 0 0.22rem rgba(214, 179, 106, 0.22);
}

/* =========================
   ACCESSIBILITY
========================= */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}



.brand-logo {
    height: 50px;
    width: auto;
    max-width: 130px;
    object-fit: contain;
    display: block;
}



/* =========================
   TITULO Y SIBTITULO
========================= */

.hero-content {
    position: relative;
    z-index: 3;
    padding-top: var(--header-height);
    padding-bottom: 2rem;
}

.hero-row {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-badge {
    margin-bottom: 1rem;
}

.hero-title {
    text-align: center;
    white-space: normal;
    font-size: clamp(2.1rem, 4.6vw, 4.8rem);
    line-height: 1.08;
    margin: 0 0 1.8rem 0;
    max-width: 980px;
    text-wrap: balance;
    overflow-wrap: anywhere;
}

.hero-subtitle {
    text-align: center;
    max-width: 860px;
    margin: 0 auto 2.2rem auto;
    font-size: 1.08rem;
    line-height: 1.8;
}

.hero-actions {
    justify-content: center;
}

@media (max-width: 991.98px) {
    .hero-title {
        font-size: clamp(2rem, 7vw, 3.4rem);
    }

    .hero-subtitle {
        max-width: 100%;
    }
}

@media (max-width: 767.98px) {
    .hero-row {
        min-height: calc(100vh - var(--header-height) - 1rem);
    }

    .hero-copy {
        max-width: 100%;
        padding-inline: 0.25rem;
    }

    .hero-badge {
        font-size: 0.78rem;
        letter-spacing: 0.04em;
        text-align: center;
        white-space: normal;
        justify-content: center;
    }

    .hero-title {
        font-size: clamp(1.85rem, 9.5vw, 2.8rem);
        line-height: 1.12;
        margin-bottom: 1.1rem;
    }

    .hero-subtitle {
        font-size: 0.98rem;
        line-height: 1.65;
        margin-bottom: 1.5rem;
        padding-inline: 0.2rem;
    }

    .section-title {
        line-height: 1.18;
        text-wrap: balance;
    }

    .section-description,
    .about-section p,
    .location-section p,
    .contact-section p,
    .service-card p,
    .faq-card p {
        font-size: 0.98rem;
        line-height: 1.7;
    }

    .service-card,
    .faq-card,
    .contact-form,
    .pdf-preview-card {
        padding: 1.25rem !important;
    }

    .gallery-marquee-card {
        width: 250px;
        height: 340px;
    }

    .location-section .ratio {
        min-height: 280px;
    }

    .pdf-preview-frame iframe {
        min-height: 520px;
    }
}
