/* =========================================================
   OASIS DEL PARAÍSO — Tema "Luxury Tropical"
   Estilo arquitectónico moderno con acentos dorados
========================================================= */

/* ===============================
   VARIABLES Y FUENTES
=============================== */
:root {
    --primary-color: #bfa76f;
    --accent-color: #bfa76f;
    --dark-color: #1f1f1f;
    --light-color: #f5f5f5;
    --font-title: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    background-color: var(--light-color);
    color: var(--dark-color);
    font-family: var(--font-body);
    letter-spacing: 0.2px;
    margin: 0;
    padding-top: 0;
    scroll-behavior: smooth;
}

html, body {
    overflow-x: hidden;
}

/* ===============================
   NAVBAR
=============================== */
.navbar {
    position: relative;
    background-color: var(--dark-color);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    z-index: 10;
    padding-left: 3rem;
    padding-right: 3rem;
}

.navbar-brand {
    font-family: var(--font-title);
    font-weight: 600;
    letter-spacing: 1px;
    color: #fff;
    margin-right: 3rem;
}

.navbar-nav {
    gap: 1.8rem;
}

    .navbar-nav .nav-link {
        color: #ccc;
        white-space: nowrap;
        text-transform: uppercase;
        font-size: 0.9rem;
        font-weight: 500;
        letter-spacing: 0.6px;
        transition: color 0.3s ease, letter-spacing 0.3s ease;
    }

        .navbar-nav .nav-link:hover,
        .navbar-nav .nav-link.active {
            color: var(--accent-color);
            letter-spacing: 1px;
        }

/* --- Responsive ajustes --- */
@media (max-width: 1200px) {
    .navbar {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .navbar-brand {
        margin-right: 2rem;
    }

    .navbar-nav {
        gap: 1.2rem;
    }
}

@media (max-width: 991.98px) {
    .navbar {
        padding-left: 1rem;
        padding-right: 1rem;
        flex-wrap: nowrap;
    }

    .navbar-brand {
        margin-right: auto;
        display: flex;
        align-items: center;
    }

    .navbar-nav {
        gap: 0.75rem;
    }

    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #1b1d1f;
        padding: 1rem;
        border-top: 1px solid rgba(255,255,255,0.1);
        box-shadow: 0 8px 16px rgba(0,0,0,0.3);
        z-index: 999;
    }

    .navbar-nav .nav-link {
        display: block;
        padding: 0.75rem 0;
        color: #ddd;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

        .navbar-nav .nav-link:last-child {
            border-bottom: none;
        }

    .navbar-nav .dropdown {
        text-align: center;
        margin-top: 0.5rem;
    }

    .dropdown-menu {
        position: static;
        float: none;
        background: #222;
        border: none;
        box-shadow: none;
    }

    .dropdown-item {
        color: #ddd;
        padding: 0.5rem 0;
    }

        .dropdown-item:hover {
            color: var(--accent-color);
            background: transparent;
        }

    .custom-toggler {
        margin-left: 1rem;
    }
}

/* --- Botón hamburguesa personalizado --- */
/*.custom-toggler {
    width: 42px;
    height: 36px;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1051;
}

    .custom-toggler:hover {
        border-color: var(--accent-color);
        background: rgba(255,255,255,0.1);
    }

    .custom-toggler .navbar-toggler-icon {
        display: none !important;
    }

    .custom-toggler .bars {
        position: relative;
        width: 22px;
        height: 18px;
    }

    .custom-toggler .bar {
        position: absolute;
        width: 22px;
        height: 2.5px;
        background: rgba(255,255,255,0.92);
        border-radius: 2px;
        transition: transform 0.25s ease, opacity 0.25s ease;
    }

        .custom-toggler .bar:nth-child(1) {
            top: 0;
        }

        .custom-toggler .bar:nth-child(2) {
            top: 7.5px;
        }

        .custom-toggler .bar:nth-child(3) {
            bottom: 0;
        }

    .custom-toggler.active .bar:nth-child(1) {
        transform: translateY(7.5px) rotate(45deg);
    }

    .custom-toggler.active .bar:nth-child(2) {
        opacity: 0;
    }

    .custom-toggler.active .bar:nth-child(3) {
        transform: translateY(-7.5px) rotate(-45deg);
    }

    .custom-toggler.active .bar {
        background: var(--accent-color);
    }*/

/* ===============================
   HERO
=============================== */
#hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-color);
    overflow: hidden;
}

    #hero video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0.7;
        transform: scale(1.05);
        transition: transform 8s ease, opacity 1s ease;
    }

    #hero:hover video {
        transform: scale(1.1);
    }

    #hero .hero-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 80%);
    }

    #hero .hero-content {
        position: absolute;
        text-align: center;
        color: #fff;
        z-index: 2;
        animation: fadeUp 1.2s ease-out both;
    }

    #hero h1 {
        font-family: var(--font-title);
        font-size: 3.2rem;
        font-weight: 600;
        opacity: 0;
        animation: fadeUp 1s ease-out 0.3s forwards;
    }

    #hero p {
        font-size: 1.2rem;
        color: #ddd;
        opacity: 0;
        animation: fadeUp 1s ease-out 0.6s forwards;
    }

/* Botones hero (móvil) */
@media (max-width: 767.98px) {
    #hero h1 {
        font-size: 2.2rem;
    }

    #hero p {
        font-size: 1rem;
    }

    #hero .btn {
        display: block;
        width: 100%;
        max-width: 320px;
        margin: 0 auto 12px;
    }

        #hero .btn:last-child {
            margin-bottom: 0;
        }
}

/* ===============================
   SECCIONES GENERALES
=============================== */
section {
    padding: 5rem 0;
    transition: background-color 0.6s ease, color 0.6s ease;
}

h1, h2, h3, h4 {
    font-family: var(--font-title);
    letter-spacing: 0.5px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease-out;
}

    h2.visible {
        opacity: 1;
        transform: translateY(0);
    }

.section-divider {
    width: 50px;
    height: 2px;
    background: var(--accent-color);
    margin: 0 auto 2rem;
    opacity: 0;
    transition: opacity 1s ease-out;
}

    .section-divider.visible {
        opacity: 1;
    }

/* ===============================
   BOTONES
=============================== */
.btn {
    border-radius: 30px;
    padding: 0.6rem 1.4rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(0,0,0,0.25);
    }

    .btn:active {
        transform: scale(0.98);
    }

.btn-primary {
    background-color: var(--primary-color);
    border: none;
    color: #fff;
}

    .btn-primary:hover {
        background-color: var(--accent-color);
        color: var(--dark-color);
    }

.btn-outline-dark {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

    .btn-outline-dark:hover {
        background-color: var(--accent-color);
        color: #fff;
    }

.btn-outline-light {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

    .btn-outline-light:hover {
        background-color: var(--accent-color);
        color: #fff;
    }

/* ===============================
   IMÁGENES Y FIGURAS
=============================== */
.img-rounded {
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease-out;
}

    .img-rounded.visible {
        opacity: 1;
        transform: translateY(0);
    }

img, iframe {
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
}

    img:hover, iframe:hover {
        transform: scale(1.01);
    }

/* ===============================
   WEBCAM SECTION
=============================== */
.webcam-section {
    background-color: #111;
    color: #f8f9fa;
}

    .webcam-section h2 {
        color: #fff;
        font-family: var(--font-title);
        font-size: 2.3rem;
    }

    .webcam-section .lead {
        color: #ccc;
    }

.webcam-frame {
    box-shadow: 0 8px 28px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .webcam-frame:hover {
        transform: scale(1.01);
        box-shadow: 0 10px 35px rgba(0,0,0,0.7);
    }

/* Indicador EN DIRECTO */
.live-indicator {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 5;
}

    .live-indicator .dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: var(--accent-color);
        box-shadow: 0 0 10px var(--accent-color);
        animation: pulse 1.4s infinite ease-in-out;
    }

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.4);
    }
}

/* ===============================
   RECORRIDO VIRTUAL
=============================== */
.recorrido-section {
    background-color: #111;
    color: #f8f9fa;
}

.pano-viewer {
    width: 100%;
    height: 70vh;
    min-height: 420px;
    background-color: #000;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 28px rgba(0,0,0,0.5);
}

/* ===============================
   BLOG — LISTADO
=============================== */
/*.blog-hero {
    position: relative;
    background: url('/images/blog-hero.webp') center/cover no-repeat;
    height: 30vh;
    min-height: 300px;
}

    .blog-hero .overlay {
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,0.5);
        backdrop-filter: blur(2px);
    }

.blog-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .blog-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    }

    .blog-card h5 {
        font-family: var(--font-title);
    }*/


/* ===============================
   BLOG — LISTADO (Hero corregido)
=============================== */
.blog-hero {
    position: relative;
    width: 100%;
    height: 30vh;
    min-height: 300px;
    background: url('/images/blog-hero.webp') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    color: #fff;
    z-index: 0;
}

    /* Overlay */
    .blog-hero .overlay {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        backdrop-filter: blur(2px);
        z-index: 1;
    }

    /* Contenedor del texto */
    .blog-hero .container {
        position: relative;
        z-index: 5;
    }

    /* --- Título del Hero --- */
    .blog-hero h1 {
        position: relative;
        z-index: 10;
        color: #fff !important;
        background: none !important;
        mix-blend-mode: normal !important;
        opacity: 1 !important;
        text-shadow: 0 3px 15px rgba(0,0,0,0.8);
        font-size: clamp(2rem, 4vw, 3rem);
        font-weight: 700;
        margin: 0;
    }

    /* Subtítulo o texto bajo el título (opcional) */
    .blog-hero p {
        position: relative;
        z-index: 9;
        color: rgba(255,255,255,0.9);
        margin-top: 0.5rem;
    }

/* --- Tarjetas del blog --- */
.blog-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .blog-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    }

    .blog-card h5 {
        font-family: var(--font-title);
    }

/* Responsive */
@media (max-width: 767.98px) {
    .blog-hero {
        height: 24vh;
        min-height: 200px;
    }

        .blog-hero h1 {
            font-size: 1.8rem;
            text-shadow: 0 2px 8px rgba(0,0,0,0.8);
        }
}


/* ===============================
   BLOG — DETALLE
=============================== */
.blogpost-hero {
    position: relative;
    width: 100%;
    height: 30vh;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #111;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    z-index: 1; /* Añadido para asegurar que quede debajo del navbar */
}

    .blogpost-hero h1 {
        position: relative;
        z-index: 10;
        color: #fff !important;
        background: none !important;
        -webkit-background-clip: border-box !important;
        mix-blend-mode: normal !important;
        opacity: 1 !important;
        text-shadow: 0 2px 10px rgba(0,0,0,0.7);
        font-weight: 700;
        font-size: clamp(2rem, 4vw, 3rem);
        line-height: 1.2;
    }

    .blogpost-hero p {
        position: relative;
        z-index: 10;
        color: rgba(255,255,255,0.9);
    }

    .blogpost-hero .overlay {
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,0.55);
        z-index: 2;
    }

    .blogpost-hero .container {
        position: relative;
        z-index: 5;
        text-align: center;
    }

/* ===============================
   BLOG — CONTENIDO
=============================== */
.blogpost-content img {
    border-radius: 10px;
}

.blogpost-content .content-text {
    line-height: 1.8;
    color: #444;
    font-size: 1.05rem;
    text-align: justify;
}

/* ===============================
   FOOTER
=============================== */
footer {
    background-color: #0a0a0a;
    color: #bbb;
    font-size: 0.9rem;
    padding: 2rem 0;
}

    footer a {
        color: #ccc;
        text-decoration: none;
        transition: color 0.3s ease;
    }

        footer a:hover {
            color: var(--accent-color) !important;
        }

/* ===============================
   UTILIDADES Y ANIMACIONES
=============================== */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

    .fade-in-section.visible {
        opacity: 1;
        transform: translateY(0);
    }

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
        filter: blur(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* Ajuste de scroll para menú fijo */
[id] {
    scroll-margin-top: 100px;
}

@media (max-width: 991px) {
    [id] {
        scroll-margin-top: 80px;
    }
}

/* ===============================
   UTILIDADES DE FONDO RESTAURADAS
   (Masterplan y Números)
=============================== */
.bg-light-alt,
.section-alt {
    background-color: #f2f2f2;
}

.bg-dark-alt {
    background-color: #111;
    color: #f8f9fa;
}

    .bg-dark-alt .section-divider {
        background: #fff;
        opacity: 0.9;
    }

    .bg-dark-alt p {
        color: #ddd;
    }

    .bg-dark-alt .text-muted {
        color: rgba(255,255,255,0.7) !important;
    }

.text-muted {
    color: rgba(200, 200, 200, 0.7) !important;}     /* gris claro con un poco de transparencia */

/* ===========================================================
   SECCIONES: Panamá y El Estudio — armonización visual
   =========================================================== */

/* Efecto de entrada suave */
.about-panama,
.about-studio {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
    will-change: opacity, transform;
}

    .about-panama.visible,
    .about-studio.visible {
        opacity: 1;
        transform: translateY(0);
    }

/* Espaciado uniforme con el resto de secciones */
.about-panama,
.about-studio {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

    /* Imagen fluida y elegante */
    .about-panama img,
    .about-studio img {
        border-radius: 10px;
        box-shadow: 0 6px 20px rgba(0,0,0,0.15);
        transition: transform 0.6s ease;
    }

        .about-panama img:hover,
        .about-studio img:hover {
            transform: scale(1.02);
        }

    /* Listas con iconos mejor alineadas */
    .about-studio ul li,
    .about-panama ul li {
        font-size: 1.05rem;
        color: #444;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    /* Botones coherentes con el resto */
    .about-panama .btn,
    .about-studio .btn {
        margin-top: 1.5rem;
    }

/* ===========================================================
   RESIDENCE HERO — Corrección de altura, fondo y visibilidad
   =========================================================== */
.residence-hero {
    position: relative;
    width: 100%;
    height: 60vh; /* antes: 45vh */
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: hidden;
    color: #fff;
    z-index: 1;
}

    .residence-hero .overlay {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        z-index: 2; /* capa oscura detrás del texto */
    }

    .residence-hero .container {
        position: relative;
        z-index: 5; /* texto por encima de la capa oscura */
        text-align: center;
    }

    .residence-hero h1 {
        position: relative;
        z-index: 10;
        color: #fff !important;
        font-weight: 700;
        font-size: clamp(2rem, 4vw, 3rem);
        line-height: 1.2;
        margin-bottom: 1rem;
        text-shadow: 0 3px 15px rgba(0,0,0,0.8);
        background: none !important;
        mix-blend-mode: normal !important;
        opacity: 1 !important;
    }

    .residence-hero p {
        position: relative;
        z-index: 10;
        color: rgba(255,255,255,0.85);
        font-size: 1.1rem;
    }

/* ======================================================
   HERO — Corrección de alineación de botones en móviles
   ====================================================== */
@media (max-width: 767.98px) {
    #hero .mt-4 {
        display: flex;
        flex-direction: column;
        align-items: center; /* centra ambos botones */
    }

    #hero .btn {
        display: block;
        width: 100%;
        max-width: 320px;
        margin: 0 auto 12px; /* espacio uniforme */
    }

        #hero .btn:last-child {
            margin-bottom: 0;
        }
}

/* ======================================================
   RESIDENCE DETAILS — Imagen principal sin fade-in
   ====================================================== */
.residence-details .img-rounded {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

/* ======================================================
   RESIDENCE DETAILS — Imagen principal con fade suave al cargar
   ====================================================== */
.residence-details .img-rounded {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInLoad 1.2s ease-out forwards;
}

/* Animación suave de aparición */
@keyframes fadeInLoad {
    0% {
        opacity: 0;
        transform: translateY(10px);
        filter: blur(3px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* ======================================================
   HERO — Corrección precisa de alineación de botones móviles
   ====================================================== */
@media (max-width: 767.98px) {
    #hero .mt-4 {
        display: flex;
        flex-direction: column;
        align-items: center; /* centra el conjunto */
        justify-content: center;
        gap: 0.75rem; /* espacio uniforme entre botones */
    }

    #hero .btn {
        display: block;
        width: 100%;
        max-width: 320px;
        margin: 0; /* elimina márgenes previos */
    }

        #hero .btn + .btn {
            margin-top: 0.75rem; /* espacio inferior uniforme */
        }

        /* Elimina el margen lateral que Bootstrap añade al primer botón */
        #hero .btn.me-2 {
            margin-right: 0 !important;
        }
}



/* ======================================================
   BOTÓN HAMBURGUESA — alineación vertical precisa
   ====================================================== */
/*.custom-toggler {
    width: 42px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    padding: 0;
    transition: all 0.3s ease;
}

    .custom-toggler .bars {
        position: relative;
        width: 22px;
        height: 16px;*/ /* antes 18px — ajustamos visualmente */
        /*top: 0.5px;*/ /* ligera compensación vertical */
    /*}

    .custom-toggler .bar {
        position: absolute;
        left: 0;
        right: 0;
        height: 2.5px;
        background: rgba(255, 255, 255, 0.92);
        border-radius: 2px;
        transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease;
    }

        .custom-toggler .bar:nth-child(1) {
            top: 0;
        }

        .custom-toggler .bar:nth-child(2) {
            top: 6.5px;
        }

        .custom-toggler .bar:nth-child(3) {
            bottom: 0;
        }*/

    /* Estado activo (X) */
    /*.custom-toggler.active .bar:nth-child(1) {
        transform: translateY(6.5px) rotate(45deg);
    }

    .custom-toggler.active .bar:nth-child(2) {
        opacity: 0;
        transform: scaleX(0.5);
    }

    .custom-toggler.active .bar:nth-child(3) {
        transform: translateY(-6.5px) rotate(-45deg);
    }*/

/* ======================================================
   BOTÓN HAMBURGUESA PERSONALIZADO — FINAL COMBINADO
   ====================================================== */
.custom-toggler {
    width: 42px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    padding: 0;
    transition: all 0.3s ease;
    z-index: 1051;
}

    /* Hover / focus */
    .custom-toggler:hover {
        border-color: var(--accent-color);
        background: rgba(255,255,255,0.1);
    }

    /* Oculta el icono SVG por defecto de Bootstrap */
    .custom-toggler .navbar-toggler-icon {
        display: none !important;
    }

    /* Contenedor de las tres barras */
    .custom-toggler .bars {
        position: relative;
        width: 22px;
        height: 16px; /* ajuste óptico para centrado */
        top: 0.5px; /* ligera compensación vertical */
    }

    /* Barras del icono */
    .custom-toggler .bar {
        position: absolute;
        left: 0;
        right: 0;
        width: 22px;
        height: 2.5px;
        background: rgba(255, 255, 255, 0.92);
        border-radius: 2px;
        transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease;
    }

        /* Posiciones iniciales */
        .custom-toggler .bar:nth-child(1) {
            top: 0;
        }

        .custom-toggler .bar:nth-child(2) {
            top: 6.5px;
        }

        .custom-toggler .bar:nth-child(3) {
            bottom: 0;
        }

    /* Estado activo (animación a “X”) */
    .custom-toggler.active .bar:nth-child(1) {
        transform: translateY(6.5px) rotate(45deg);
    }

    .custom-toggler.active .bar:nth-child(2) {
        opacity: 0;
        transform: scaleX(0.5);
    }

    .custom-toggler.active .bar:nth-child(3) {
        transform: translateY(-6.5px) rotate(-45deg);
    }

    /* Color dorado activo */
    .custom-toggler.active .bar {
        background: var(--accent-color);
    }

/* ===============================
   CONTACT PAGE
=============================== */
.contact-hero {
    position: relative;
    width: 100%;
    height: 40vh;
    min-height: 260px;
    background: url('/images/contact-hero.webp') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1; /* Añadido para asegurar que quede debajo del navbar */
}


    .contact-hero .overlay {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        z-index: 1;
    }

    .contact-hero .container {
        position: relative;
        z-index: 5;
        text-align: center;
    }

    .contact-hero h1 {
        position: relative;
        z-index: 10;
        color: #fff !important;
        font-weight: 700;
        font-size: clamp(2rem, 4vw, 3rem);
        line-height: 1.2;
        text-shadow: 0 3px 12px rgba(0, 0, 0, 0.85);
        background: none !important;
        mix-blend-mode: normal !important;
        opacity: 1 !important;
    }

    .contact-hero p {
        position: relative;
        z-index: 10;
        color: rgba(255,255,255,0.9);
        font-size: 1.1rem;
    }

    .contact-hero * {
        pointer-events: auto;
    }

.contact-section .form-control {
    border-radius: 6px;
    border: 1px solid #ddd;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

    .contact-section .form-control:focus {
        border-color: var(--accent-color);
        box-shadow: 0 0 0 0.2rem rgba(191, 167, 111, 0.25);
    }

.contact-section .btn {
    border-radius: 30px;
}

.contact-section a {
    color: var(--accent-color);
}

    .contact-section a:hover {
        text-decoration: underline;
    }


/* =========================================================
   SECCIONES LEGALES — Aviso legal, Cookies y Privacidad
   ========================================================= */

/* Contenedor general del hero */
.legal-hero {
    position: relative;
    width: 100%;
    height: 30vh;
    min-height: 240px;
    background-color: #111; /* fallback si no carga imagen */
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    /* Overlay oscuro controlado (solo cubre el hero) */
    .legal-hero .overlay {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        z-index: 1;
    }

    /* Título centrado y visible */
    .legal-hero h1 {
        position: relative;
        z-index: 3; /* más alto que el overlay */
        color: #fff !important;
        background: none !important;
        mix-blend-mode: normal !important;
        opacity: 1 !important;
        text-shadow: 0 2px 10px rgba(0,0,0,0.7);
        font-size: clamp(2rem, 4vw, 3rem);
        font-weight: 700;
        text-align: center;
        margin: 0;
    }

    /* Contenedor del título */
    .legal-hero .container {
        position: relative;
        z-index: 2;
    }

    /* --- Contenido del texto legal (solo para páginas legales) --- */
    .legal-hero + section.container {
        position: relative;
        z-index: 5;
    }

        /* Textos principales */
        .legal-hero + section.container p,
        .legal-hero + section.container ul,
        .legal-hero + section.container li {
            color: #333;
            font-size: 1.05rem;
            line-height: 1.8;
        }

        /* Subtítulos */
        .legal-hero + section.container h2 {
            color: var(--dark-color);
            font-family: var(--font-title);
            font-weight: 600;
            font-size: 1.4rem;
            margin-top: 2rem;
            margin-bottom: 1rem;
        }

        /* Listas con buen espaciado */
        .legal-hero + section.container ul {
            margin-top: 1rem;
            margin-bottom: 1rem;
            padding-left: 1.5rem;
        }

        .legal-hero + section.container li {
            margin-bottom: 0.5rem;
        }

        /* Fecha de actualización */
        .legal-hero + section.container .text-muted {
            color: rgba(0,0,0,0.5) !important;
            font-size: 0.9rem;
        }

/* --- Ajuste responsive del hero --- */
@media (max-width: 767.98px) {
    .legal-hero {
        height: 24vh;
        min-height: 180px;
    }

        .legal-hero h1 {
            font-size: 1.8rem;
            text-shadow: 0 2px 8px rgba(0,0,0,0.8);
        }
}

/* --- Navbar sin línea inferior --- */
.navbar,
header.position-fixed {
    border-bottom: none !important;
    box-shadow: none !important;
}


/* ===============================
   EL ESTUDIO
=============================== */
.studio-hero {
    position: relative;
    width: 100%;
    height: 30vh;
    min-height: 320px;
    background: url('/images/studio-hero.webp') center/cover no-repeat, #111; /* fallback */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    overflow: hidden;
}

    .studio-hero .overlay {
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,.55);
        z-index: 1;
    }
    /* eleva el texto por encima del overlay y neutraliza mezclas/opacity heredadas */
    .studio-hero h1,
    .studio-hero p,
    .studio-hero .container {
        position: relative;
        z-index: 3;
    }

    .studio-hero h1 {
        color: #fff !important;
        background: none !important;
        mix-blend-mode: normal !important;
        opacity: 1 !important;
        text-shadow: 0 2px 10px rgba(0,0,0,.7);
        font-weight: 700;
    }

    .studio-hero p {
        color: rgba(255,255,255,.85);
    }

/* Responsive */
@media (max-width: 767.98px) {
    .studio-hero {
        height: 38vh;
        min-height: 240px;
    }
}

/* Desactiva el fade-in en imágenes con clase .no-fade */
.no-fade {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

/* =========================================================
   CONTACTO DEL ESTUDIO — Hero visible
   ========================================================= */
.contactstudio-hero {
    position: relative;
    width: 100%;
    height: 30vh;
    min-height: 300px;
    background: url('/images/contact-studio-hero.webp') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    color: #fff;
    z-index: 0;
}

    .contactstudio-hero .overlay {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 1;
    }

    /* --- contenedor y texto siempre por encima --- */
    .contactstudio-hero .container {
        position: relative;
        z-index: 5;
    }

    .contactstudio-hero h1 {
        position: relative;
        z-index: 10;
        color: #fff !important;
        background: none !important;
        mix-blend-mode: normal !important;
        opacity: 1 !important;
        text-shadow: 0 3px 15px rgba(0,0,0,0.8);
        font-size: clamp(2rem, 4vw, 3rem);
        font-weight: 700;
        margin-bottom: 0.75rem;
    }

    .contactstudio-hero p {
        color: rgba(255,255,255,0.9);
        z-index: 9;
        position: relative;
    }

/* --- responsive --- */
@media (max-width: 767.98px) {
    .contactstudio-hero {
        height: 35vh;
        min-height: 220px;
    }

        .contactstudio-hero h1 {
            font-size: 1.8rem;
            text-shadow: 0 2px 8px rgba(0,0,0,0.8);
        }
}


/* ===============================
   MENÚ — ESTADO ACTIVO
=============================== */
.navbar .nav-link.active,
.navbar .nav-link:focus.active {
    color: #f8d24b !important; /* color dorado o acento */
    font-weight: 600;
    position: relative;
}

    .navbar .nav-link.active::after {
        content: "";
        position: absolute;
        bottom: -4px;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: #f8d24b; /* mismo tono del texto activo */
        border-radius: 1px;
    }


/* Compensar el navbar fijo en cualquier sección hero */
.with-fixed-navbar {
    padding-top: var(--navbar-offset, 95px);
}

@media (max-width: 991.98px) {
    .with-fixed-navbar {
        --navbar-offset: 145px;
    }
}
