@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&display=swap');

body {
    font-family: 'Inter', sans-serif;
}

/* Correcciones de Fluidez General */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden; /* Evita que el contenido se salga de lado */
}

/* Ajuste de márgenes en móviles */
@media (max-width: 640px) {
    section {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    
    .hero-title {
        font-size: 3rem !important; /* El título del Hero no debe romperse */
    }
    
    .nav-scrolled {
        padding: 10px 20px !important;
    }
}

/* ========================= */
/* NAV */
/* ========================= */
.nav-scrolled {
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    padding: 15px 40px !important;
    border-bottom: 1px solid #222;
}

.logo-video {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    filter: brightness(1.2);
}

/* ========================= */
/* HERO & CARRUSEL */
/* ========================= */
.carrusel {
    position: absolute;
    inset: 0;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    animation: heroFade 15s infinite;
}

.s1 { background-image: url('https://estudio79.com.co/wp-content/uploads/2025/03/gf4ed24ad93f8beb3a79feccc87fd7807ea24b3cfb20535077de426b09d96c2bb23be40932380b47cc911dd15698d37d3e3402f1bc79f84c61506400c032e635d_1280-1850469.jpg'); animation-delay: 0s; }
.s2 { background-image: url('https://static.foto321.com/2023/12/tener-estudio-en-casa.jpg'); animation-delay: 5s; }
.s3 { background-image: url('https://images.unsplash.com/photo-1664817550969-5e76adc4a3fe?fm=jpg&q=60&w=3000&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8M3x8ZXN0dWRpbyUyMGZvdG9ncmFmaWNvfGVufDB8fDB8fHww'); animation-delay: 10s; }

@keyframes heroFade {
    0% { opacity: 0; }
    5% { opacity: 1; }
    30% { opacity: 1; }
    35% { opacity: 0; }
    100% { opacity: 0; }
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, black, transparent, black);
}

.hero-logo {
    width: 600px;
    max-width: 100%;
    margin: auto;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.1));
    opacity: 0.95;
    transition: 0.4s;
}

.hero-logo:hover {
    transform: scale(1.05);
    opacity: 1;
}

/* ========================= */
/* BOTONES GENÉRICOS */
/* ========================= */
.btn-main {
    /* Reset total */
    appearance: none;
    -webkit-appearance: none;
    border: none;
    outline: none;
    margin: 0;
    cursor: pointer;
    text-decoration: none;
    
    /* Geometría */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 55px; 
    min-width: 220px;
    padding: 0 30px;
    box-sizing: border-box;
    
    /* Estilo Visual */
    background: #f1d555;
    color: #000 !important;
    border-radius: 12px;
    
    /* --- EL FIX DE LAS LETRAS --- */
    font-family: 'Inter', sans-serif;
    font-size: 11px !important;     /* Tamaño exacto */
    font-weight: 900 !important;    /* Grosor máximo */
    text-transform: uppercase;      /* Siempre mayúsculas */
    letter-spacing: 2px !important; /* Espaciado entre letras */
    line-height: 1;                 /* Altura de línea para centrar texto */
    -webkit-font-smoothing: antialiased; /* Suavizado consistente */
    -moz-osx-font-smoothing: grayscale;
    /* ---------------------------- */
    
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-main:hover {
    background: #fff;
    transform: translateY(-3px);
}

/* Ajuste Mobile para que no se dispare la página */
@media (max-width: 768px) {
    .btn-main {
        display: flex; /* En móvil ocupan el ancho que les demos */
        width: 100%;
        max-width: 280px;
        margin: 10px auto;
        height: 52px; /* Ligeramente más bajos en móvil */
    }
}

.btn-outline:hover {
    background: white;
    color: black;
}

/* ========================= */
/* STUDIO SECTION (PRECIOS) */
/* ========================= */
.studio-section {
    padding: 120px 40px;
    border-top: 1px solid #111;
}

.studio-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 80px;
}

.studio-tag {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #f1d555;
    opacity: 0.6;
}

.studio-info h2 {
    font-size: 3rem;
    font-weight: 900;
    margin: 10px 0 20px;
}

.studio-desc {
    color: #aaa;
    max-width: 500px;
}

.studio-details {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.studio-details strong {
    display: block;
    font-size: 12px;
    letter-spacing: 0.1em;
    color: #666;
}

.studio-includes {
    margin-top: 40px;
}

.studio-includes h4 {
    font-size: 12px;
    letter-spacing: 0.2em;
    color: #666;
    margin-bottom: 15px;
}

.studio-includes ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    color: #ccc;
}

.studio-pricing {
    background: #0a0a0a;
    padding: 40px;
    border-radius: 24px;
    border: 1px solid #1a1a1a;
}

.price-card {
    padding: 20px;
    border-bottom: 1px solid #222;
    transition: 0.3s;
}

.price-card:hover {
    background: #111;
}

.price-card strong {
    display: block;
    font-size: 1.8rem;
    margin: 5px 0;
}

/* ========================= */
/* PROYECTOS (CAROUSEL) */
/* ========================= */
.carousel-section {
    padding: 100px 20px;
    border-top: 1px solid #111;
    overflow: hidden;
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    text-transform: uppercase;
    color: #f1d555;
    text-align: center;
    margin-bottom: 20px;
}

.section-subtitle {
    text-align: center;
    color: #aaa;
    margin-bottom: 60px;
}

.carousel-wrapper {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    width: max-content;
    gap: 24px;
    animation: scroll 35s linear infinite;
}

@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.carousel-wrapper:hover .carousel-track {
    animation-play-state: paused;
}

.carousel-item {
    flex: 0 0 auto;
    width: 380px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.overlay-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 24px 20px 20px;
    color: white;
}

/* ========================= */
/* MODAL / POP-UP (RECONSTRUIDO) */
/* ========================= */
/* EL MODAL SOLO EXISTE CUANDO SE ACTIVA */
.modal {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    z-index: 999999;
    
    /* ESTO EVITA QUE APAREZCA EL CUADRO VACÍO */
    display: none; 
    opacity: 0;
    pointer-events: none; 
    
    transition: opacity 0.4s ease;
    align-items: center;
    justify-content: center;
}

/* Solo cuando tiene la clase active se muestra y permite clicks */
.modal.active {
    display: flex !important;
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background: #0a0a0a;
    width: 100%;
    max-width: 900px;
    max-height: 90vh; /* No permite que sea más alto que la pantalla */
    border-radius: 32px;
    border: 1px solid rgba(241, 213, 85, 0.2);
    position: relative;
    overflow-y: auto; /* Scroll interno si el texto es largo */
    scrollbar-width: none; /* Oculta scroll en Firefox */
}

.modal-box::-webkit-scrollbar { display: none; } /* Oculta scroll en Chrome/Safari */

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.modal-img-container {
    height: 100%;
    min-height: 400px;
    background: #111;
}

.modal-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Evita que la imagen se estire */
}

.modal-info {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.close-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f1d555;
    font-size: 24px;
    cursor: pointer;
    z-index: 11;
    transition: 0.3s;
}

.close-btn:hover {
    background: #f1d555;
    color: #000;
    transform: rotate(90deg);
}

/* ========================= */
/* RESPONSIVE MODAL (CELULAR) */
/* ========================= */
/* ========================= */
/* FIX MODAL PARA CELULARES */
/* ========================= */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95); /* Fondo más oscuro para evitar distracciones */
    backdrop-filter: blur(15px);
    z-index: 999999 !important; /* El valor más alto posible */
    display: none; 
    align-items: center;
    justify-content: center;
    padding: 15px;
    -webkit-overflow-scrolling: touch; /* Suavidad en iPhone */
}

.modal.active {
    display: flex !important;
}

@media (max-width: 768px) {
    .modal-box {
        width: 100% !important;
        height: auto !important;
        max-height: 90vh !important; /* No deja que se salga de la pantalla */
        overflow-y: auto !important; /* Permite scroll si el contenido es largo */
        border-radius: 25px !important;
        margin: 0 auto;
        display: block !important; /* Cambia a block para que el contenido fluya */
    }

    .modal-grid {
        display: flex !important;
        flex-direction: column !important; /* Imagen arriba, texto abajo */
    }

    .modal-img-container {
        width: 100% !important;
        height: 200px !important; /* Imagen más pequeña en móvil */
    }

    .modal-info {
        padding: 30px 20px !important;
    }

    /* La X de cerrar debe ser fácil de tocar en móvil */
    .close-btn {
        top: 15px !important;
        right: 15px !important;
        background: #f1d555 !important;
        color: #000 !important;
        width: 35px;
        height: 35px;
    }
}

/* ========================= */
/* WHATSAPP MULTI-MENÚ */
/* ========================= */
.ws-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

/* Botón flotante principal */
.whatsapp-btn {
    width: 55px;
    height: 55px;
    background: #000;
    color: #f1d555;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(241, 213, 85, 0.4);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0; /* Controlado por JS */
    pointer-events: none;
}

.whatsapp-btn:hover {
    transform: scale(1.1) rotate(10deg);
    background: #f1d555;
    color: #000;
}

/* El menú de opciones */
.ws-menu {
    width: 260px;
    background: #0f0f0f;
    border: 1px solid rgba(241, 213, 85, 0.15);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
}

.ws-menu.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.ws-menu-header {
    background: #151515;
    padding: 15px 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #f1d555;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(241, 213, 85, 0.1);
}

.ws-options {
    padding: 10px;
    display: flex;
    flex-direction: column;
}

.ws-options button {
    background: transparent;
    border: none;
    color: #ccc;
    text-align: left;
    padding: 12px 15px;
    font-size: 13px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.ws-options button:hover {
    background: rgba(241, 213, 85, 0.1);
    color: #f1d555;
    padding-left: 20px;
}

/* ========================= */
/* MAPA DARK MODE */
/* ========================= */
#ubicacion iframe {
    filter: grayscale(100%) invert(92%) contrast(150%);
    opacity: 0.7;
    transition: all 0.6s ease;
}

#ubicacion .lg\:w-2\/3:hover iframe {
    opacity: 1;
    filter: grayscale(100%) invert(90%) contrast(110%);
}

/* Capa de protección para que el mapa no se mueva al hacer scroll en móvil */
.map-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to right, rgba(0,0,0,0.2), transparent);
    z-index: 10;
}

/* Mejora de fluidez para móviles */
@media (max-width: 1024px) {
    #ubicacion .flex-col-reverse {
        flex-direction: column-reverse;
    }
    #ubicacion h2 {
        font-size: 3rem;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================= */
/* WORKFLOW SECTION */
/* ========================= */
#proceso .text-4xl {
    font-weight: 900;
    font-family: 'Inter', sans-serif;
    /* Efecto de número hueco */
    -webkit-text-stroke: 1px rgba(255,255,255,0.2);
    color: transparent;
}

#proceso .group:hover .text-4xl {
    -webkit-text-stroke: 1px #f1d555;
    color: #f1d555;
    text-shadow: 0 0 20px rgba(241, 213, 85, 0.2);
}

@media (max-width: 768px) {
    #proceso h2 {
        font-size: 3rem;
    }
}

/* ========================= */
/* FIX FOOTER MOBILE - GOTY */
/* ========================= */
footer {
    /* Evita que cualquier contenido hijo (como el texto gigante) cree scroll lateral */
    overflow: hidden; 
    width: 100%;
    position: relative;
}

footer h2 {
    /* Mantenemos el estilo de borde sutil */
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.05);
    color: transparent;
    
    /* FIX: Asegura que el texto no estire el body */
    display: block;
    max-width: 100vw; 
    white-space: nowrap; /* Evita que el texto se parta en dos líneas */
    text-align: center;
}

/* Ajuste específico para celulares */
@media (max-width: 768px) {
    footer {
        padding-top: 60px; /* Menos espacio arriba en móvil */
    }

    footer h2 {
        /* Bajamos el tamaño en móvil para que sea una textura y no un estorbo */
        font-size: 30vw; 
        position: absolute;
        top: 20%;
        left: 50%;
        transform: translateX(-50%);
        opacity: 0.3; /* Un poco más sutil en pantallas pequeñas */
    }
    
    /* Aseguramos que las columnas de texto no se peguen a los bordes */
    footer .grid {
        gap: 40px;
        text-align: center; /* Centramos el texto en móvil para mejor estética */
    }
    
    footer .flex-col-reverse {
        align-items: center;
    }
}

/* ========================= */
/* FIX STUDIO SECTION (MOBILE) */
/* ========================= */
@media (max-width: 768px) {
    .studio-container {
        display: flex;
        flex-direction: column;
        gap: 30px;
        padding: 0 10px; /* Evita que toque los bordes */
    }

    .studio-info h2 {
        font-size: 2.5rem; /* Título más pequeño para que no empuje */
        line-height: 1.1;
    }

    .studio-includes ul {
        grid-template-columns: 1fr; /* Lista de incluye en 1 sola columna */
        gap: 8px;
    }

    .studio-pricing {
        padding: 20px; /* Menos espacio interno */
        width: 100%;
        box-sizing: border-box;
    }

    .price-card strong {
        font-size: 1.5rem;
    }
}

/* ========================= */
/* WHATSAPP MOBILE FIX */
/* ========================= */
@media (max-width: 480px) {
    .ws-container {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 9999;
    }

    .whatsapp-btn {
        width: 55px; /* Un poco más pequeño en móvil */
        height: 55px;
        position: relative;
        z-index: 10000;
    }

    .ws-menu {
        width: calc(100vw - 40px); /* Que ocupe casi todo el ancho del celular */
        right: 0;
        bottom: 70px; /* Que aparezca justo arriba del botón */
    }
    
    .ws-options button {
        padding: 15px; /* Botones más fáciles de tocar con el dedo */
        font-size: 14px;
    }
}

/* AJUSTE BOTÓN RESERVA MÓVIL */
@media (max-width: 768px) {
    .btn-main {
        display: block;
        width: 100%; /* Ocupa el ancho disponible */
        max-width: 300px; /* Pero no se vuelve gigante */
        margin: 0 auto; /* Centrado */
        text-align: center;
        padding: 16px 24px !important;
        font-size: 11px !important;
        letter-spacing: 3px !important;
    }
    
    /* Aseguramos que el contenedor de la sección Studio no tenga scroll */
    .studio-section {
        overflow: hidden;
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 768px) {
    .ws-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;

    display: flex;
    flex-direction: column;
    align-items: flex-end;

    position: fixed;
}
    
    /* Si el menú de opciones tapa el botón de reserva, le damos más z-index */
    .ws-menu {
    position: absolute; /* 🔥 CLAVE */
    bottom: 70px;       /* aparece encima del botón */
    right: 0;           /* alineado al botón */
    
    width: 260px;
    background: #0f0f0f;
    border: 1px solid rgba(241, 213, 85, 0.15);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    pointer-events: none;
    
    transition: all 0.3s ease;
    transform-origin: bottom right; /* 🔥 animación desde botón */
}

.ws-menu.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}
}

/* ========================= */
/* BOTÓN PRINCIPAL (RESERVAR) */
/* ========================= */

/* AJUSTE PARA MÓVIL (Para que no se estire la pantalla) */
@media (max-width: 768px) {
    .btn-main {
        display: block; /* Ocupa su propio bloque */
        width: 100%;
        max-width: 280px; /* Tamaño ideal para pulgar */
        margin: 0 auto; /* Centrado */
        text-align: center;
        padding: 16px 20px;
    }
}

/* ========================= */
/* FIX SECCIÓN STUDIO MOBILE */
/* ========================= */
@media (max-width: 768px) {
    /* Forzamos que los contenedores ocupen el 100% del ancho */
    #Precios .flex, 
    #Precios .grid {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }

    /* Ajustamos el tamaño de la letra para que no empuje el diseño */
    #Precios h2 {
        font-size: 3rem !important;
        text-align: center;
    }

    /* La lista de "Incluye" debe ser una sola columna */
    .studio-includes {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px;
        padding: 0;
    }

    /* La tarjeta de precio debe adaptarse */
    .studio-pricing-card {
        width: 100% !important;
        margin-top: 30px;
        padding: 30px 20px !important;
    }

    /* Centramos el botón de Reservar en móvil */
    #Precios .btn-main {
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    #planMenu {
        position: fixed !important; /* En móvil es mejor que sea fijo al centro */
        bottom: 20px !important;
        left: 20px !important;
        right: 20px !important;
        width: auto !important;
        max-width: none !important;
        z-index: 99999;
    }
}

/* FIX SECCIÓN PRECIOS MÓVIL */
@media (max-width: 768px) {
    #Precios .max-w-7xl {
        padding-left: 15px;
        padding-right: 15px;
    }

    #Precios h2 {
        font-size: 2.5rem !important; /* Evita que el título empuje las paredes */
    }

    /* Aseguramos que el rectángulo no se estire */
    .bg-zinc-950 {
        padding: 40px 20px !important;
    }

    /* Forzamos que la tarjeta de precio sea el ancho total del contenedor */
    #Precios .lg\:w-1\/2 {
        width: 100% !important;
    }
}

/* Animación para el menú de opciones */
#planMenu {
    animation: fadeInModal 0.3s ease forwards;
    backdrop-filter: blur(10px);
}

@keyframes fadeInModal {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

body.modal-open {
    overflow: hidden;
    touch-action: none;
}