/* ==========================================================================
   VARIABLES Y CONFIGURACIÓN GENERAL
   ========================================================================== */
:root {
    --primary: #e31e24; /* Rojo JAO */
    --gold: #c5a059;    /* Dorado JAO */
    --dark: #1a1a1a;
    --white: #ffffff;
    --bg: #fdfdfd;      /* Fondo base limpio */
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    font-family: 'Montserrat', sans-serif; 
    background: var(--bg); 
    color: var(--dark); 
    line-height: 1.6; 
    overflow-x: hidden;
    animation: webReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes webReveal {
    0% { opacity: 0; transform: translateY(15px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   PANTALLA DE CARGA MINIMALISTA ULTRA-MODERNA
   ========================================================================== */
#preloader {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: #ffffff !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 999999 !important;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modern-loader {
    width: 42px !important;
    height: 42px !important;
    border: 4px solid rgba(227, 30, 36, 0.1) !important;
    border-radius: 50% !important;
    border-top: 4px solid #e31e24 !important;
    animation: smoothSpin 0.8s linear infinite !important;
    display: block !important;
}

@keyframes smoothSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   NAVBAR PRO
   ========================================================================== */
.navbar { 
    background: white; 
    padding: 12px 0; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    border-bottom: 3px solid var(--primary); 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.nav-container { 
    max-width: 1200px; 
    margin: auto; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 0 20px;
}

.nav-links { 
    list-style: none; 
    display: flex; 
    gap: 35px; 
    align-items: center;
}

.nav-links a { 
    text-decoration: none; 
    color: #333; 
    font-weight: 700; 
    text-transform: uppercase; 
    font-size: 13px; 
    letter-spacing: 0.5px;
    transition: 0.3s; 
}

.nav-links a:hover, .nav-links a.active { 
    color: var(--primary); 
}

.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 70px; }

.logo-texto-fallback {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
}

.nav-btn { 
    background: var(--primary); 
    color: white !important; 
    padding: 10px 22px; 
    border-radius: 4px; 
}

.nav-btn:hover {
    background: var(--dark);
    transform: translateY(-1px);
}

/* ==========================================================================
   HERO HOME (ESCRITORIO)
   ========================================================================== */
.hero-home { 
    height: 88vh; 
    background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.6)), url('Portada Pagina JAO.png'); 
    background-size: cover; 
    background-position: center; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    color: white; 
    padding: 0 20px;
}

.tagline { 
    text-transform: uppercase; 
    letter-spacing: 5px; 
    color: var(--gold); 
    font-weight: 700; 
    font-size: 14px;
}

.titulo-luxury {
    font-family: 'Playfair Display', serif; 
    font-size: 4.5rem; 
    line-height: 1.1; 
    margin: 15px 0; 
}

.titulo-luxury span { 
    color: var(--primary); 
    display: block; 
}

.divider { 
    width: 80px; 
    height: 4px; 
    background: var(--gold); 
    margin: 15px auto; 
}

.btn-luxury { 
    display: inline-block; 
    background: var(--gold); 
    color: white; 
    padding: 15px 40px; 
    text-decoration: none; 
    font-weight: 700; 
    border-radius: 50px; 
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
}

.btn-luxury:hover { 
    transform: translateY(-3px); 
    background: var(--primary); 
    box-shadow: 0 10px 20px rgba(227, 30, 36, 0.3);
}

/* ==========================================================================
   PÁGINAS DE CONTENIDO GENERALES
   ========================================================================== */
.page-title { 
    padding: 65px 20px 20px 20px; 
    text-align: center; 
}

.page-title h1 { 
    font-family: 'Playfair Display', serif; 
    font-size: 3.2rem; 
    color: var(--primary); 
}

.page-title p { color: #666; font-size: 15px; margin-top: 5px; }

/* ==========================================================================
   SECCIÓN NUESTRO MENÚ
   ========================================================================== */
.menu-view { padding: 20px 20px 80px 20px; text-align: center; width: 100%; }

.menu-wrapper { 
    max-width: 900px; 
    margin: auto; 
    background: var(--white);
    border-radius: 28px; 
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.04); 
    border: 1px solid rgba(197, 160, 89, 0.15); 
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.img-container { overflow: hidden; background: #000; position: relative; }
.zoom-img { width: 100%; display: block; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); cursor: pointer; }
.menu-wrapper:hover { transform: translateY(-6px); box-shadow: 0 25px 55px rgba(197, 160, 89, 0.1); }
.menu-wrapper:hover .zoom-img { transform: scale(1.02); }

.menu-overlay-hint { 
    padding: 20px; 
    font-size: 12px; 
    color: var(--primary); 
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: var(--white);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.3s;
}

.menu-wrapper:hover .menu-overlay-hint { color: var(--gold); background-color: #fffbf5; }

/* ==========================================================================
   SECCIÓN UBICACIÓN
   ========================================================================== */
.ubicacion-section { padding: 20px 20px 80px 20px; display: flex; justify-content: center; width: 100%; }
.grid-tarjetas-ubicacion { max-width: 1200px; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; }

.tarjeta-info-jao {
    background: var(--white);
    padding: 50px;
    border-radius: 28px; 
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(197, 160, 89, 0.15); 
}

.subtitulo-rojo { color: var(--primary); text-transform: uppercase; font-size: 12px; font-weight: 700; letter-spacing: 2px; margin-bottom: 12px; display: block; }
.tarjeta-info-jao h2 { font-family: 'Playfair Display', serif; font-size: 2.8rem; color: #111111; font-weight: 700; margin-bottom: 20px; }
.descripcion-jao { font-size: 14px; color: #555; margin-bottom: 35px; line-height: 1.6; }
.lista-detalles-contacto { display: flex; flex-direction: column; gap: 25px; margin-bottom: 40px; }
.item-contacto-fiel { display: flex; align-items: center; gap: 20px; }

.icono-circulo {
    width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    background-color: rgba(197, 160, 89, 0.1); border: 1px solid rgba(197, 160, 89, 0.3);
}
.icono-circulo i { color: var(--gold); font-size: 18px; }
.item-contacto-fiel:nth-child(2) .icono-circulo { background-color: rgba(227, 30, 36, 0.08); border-color: rgba(227, 30, 36, 0.2); }
.item-contacto-fiel:nth-child(2) .icono-circulo i { color: var(--primary); }

.etiqueta-fiel { font-size: 11px; text-transform: uppercase; color: #888; font-weight: 700; letter-spacing: 1px; display: block; margin-bottom: 2px; }
.texto-fiel { font-size: 14px; color: #222; font-weight: 700; line-height: 1.4; }
.grupo-botones-fiel { display: flex; gap: 15px; }

.btn-fiel-whatsapp {
    background-color: #25d366; color: var(--white) !important; flex: 1; padding: 16px; text-align: center; text-decoration: none;
    border-radius: 50px; font-weight: 700; font-size: 13px; text-transform: uppercase; display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 8px 20px rgba(37, 211, 102, 0.15); transition: 0.3s;
}
.btn-fiel-whatsapp:hover { transform: translateY(-2px); background-color: #1ebd59; }

.btn-fiel-como-llegar {
    background-color: var(--primary); color: var(--white) !important; flex: 1; padding: 16px; text-align: center; text-decoration: none;
    border-radius: 50px; font-weight: 700; font-size: 13px; text-transform: uppercase; display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 8px 20px rgba(227, 30, 36, 0.15); transition: 0.3s;
}
.btn-fiel-como-llegar:hover { transform: translateY(-2px); background-color: var(--dark); }

.tarjeta-mapa-fiel { background: var(--white); border-radius: 28px; overflow: hidden; box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04); padding: 12px; height: 100%; min-height: 520px; border: 1px solid rgba(197, 160, 89, 0.15); }
.tarjeta-mapa-fiel iframe { border-radius: 20px; display: block; }

/* ==========================================================================
   ANIMACIÓN REVEAL SCROLL & FOOTER
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

.footer-social { background-color: #111; padding: 40px 0; text-align: center; color: white; border-top: 3px solid var(--primary); }
.follow-text { font-size: 12px; letter-spacing: 2px; font-weight: 600; color: #888; }
.social-btns { display: flex; justify-content: center; gap: 18px; margin: 18px 0; }
.social-btns a { width: 46px; height: 46px; background: #222; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: white; text-decoration: none; font-size: 20px; transition: 0.3s; }
.btn-fb:hover { background-color: #1877F2 !important; transform: translateY(-4px); }
.btn-ig:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%) !important; transform: translateY(-4px); }
.copy { font-size: 11px; color: #555; margin-top: 12px; }

/* ==========================================================================
   BOTÓN LLAMADA FLOTANTE MÓVIL - CORREGIDO FLOTACIÓN GLOBAL AL 100%
   ========================================================================== */
.btn-llamada-flotante {
    position: fixed !important;
    bottom: 25px !important;
    left: 20px !important; 
    right: auto !important;
    top: auto !important;
    background-color: #007bff !important; 
    color: white !important;
    padding: 14px 22px !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    display: none; /* Se activa abajo en la media query móvil */
    align-items: center !important;
    gap: 10px !important;
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4) !important;
    z-index: 2147483647 !important; /* Prioridad máxima por sobre cualquier capa del navegador */
    font-size: 14px !important;
    animation: pulso-llamada 2s infinite !important;
    transform: translateZ(0); /* Despierta el renderizado de GPU móvil para congelarlo en pantalla */
}

@keyframes pulso-llamada {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}

/* ==========================================================================
   RESPONSIVO CONTROLADO (CELULARES)
   ========================================================================== */
@media (max-width: 992px) {
    
    /* CORRECCIÓN: Letras del título compactas y juntas, sin el renglón vacío enmedio */
    .titulo-luxury {
        font-size: 3.4rem !important; 
        line-height: 1.02 !important; /* Une las líneas de texto quitando la separación exagerada */
        letter-spacing: -1px !important;
        margin: 10px 0 !important;
        padding: 0 5px;
    }

    .titulo-luxury span {
        display: block !important; 
        margin-top: 2px !important; /* Pegado inmediato y elegante */
    }

    /* CORRECCIÓN: Fuerza al botón a flotar y perseguir la pantalla en teléfonos */
    .btn-llamada-flotante {
        display: flex !important;
    }

    .nav-container { flex-direction: column; gap: 12px; padding: 10px; }
    .nav-links { gap: 20px; font-size: 11px; }
    .nav-logo img { height: 55px; }

    .page-title { padding: 35px 15px 10px 15px; }
    .page-title h1 { font-size: 2.2rem !important; }

    .menu-view { padding: 20px 10px; }
    .ubicacion-section { padding: 20px 10px 80px 10px; }
    .grid-tarjetas-ubicacion { grid-template-columns: 1fr !important; gap: 25px; }
    .tarjeta-info-jao { padding: 30px 20px; border-radius: 20px; }
    .tarjeta-info-jao h2 { font-size: 2rem; }
    .grupo-botones-fiel { flex-direction: column; gap: 12px; }
    .tarjeta-mapa-fiel { min-height: 350px; height: 350px; border-radius: 20px; padding: 8px; }
}