/* --- VARIABLES Y ESTILOS GLOBALES --- */
:root {
    --color-black: #0A0A0A;
    --color-rose-gold: #B76E79;
    --color-white: #F5F5F5;
    --font-title: 'Cormorant Garamond', serif;
    --font-text: 'Montserrat', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-text);
    background-color: var(--color-black);
    color: var(--color-white);
    font-size: 16px;
    line-height: 1.7;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3, h4 { font-family: var(--font-title); font-weight: 700; color: var(--color-white); }
a { color: var(--color-rose-gold); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--color-white); }
img { max-width: 100%; height: auto; }

/* --- HEADER --- */
.main-header {
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0; left: 0;
    background-color: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(183, 110, 121, 0.2);
}
.header-container { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 60px; }

.main-nav ul { list-style: none; display: flex; gap: 30px; }
.main-nav a { color: var(--color-white); padding: 5px 0; position: relative; }
.main-nav a::after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 1px;
    background-color: var(--color-rose-gold); transition: width 0.4s ease;
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.mobile-nav-toggle { display: none; background: none; border: none; color: var(--color-white); font-size: 1.5rem; cursor: pointer; }

/* --- HERO SECTION (Corregido) --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    
    /* Ruta corregida y propiedades separadas para evitar errores */
    background-image: url('/assets/img/hero-background.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    
    position: relative;
    padding-top: 80px;
}
.hero::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(10, 10, 10, 0.6); /* Oscurece la imagen para leer el texto */
}
.hero-content { position: relative; z-index: 2; animation: fadeIn 2s ease-in-out; padding: 0 20px; }
.hero h1 { font-size: 4rem; margin-bottom: 10px; letter-spacing: 2px; }
.hero p { font-size: 1.2rem; font-family: var(--font-title); font-style: italic; margin-bottom: 30px; }

.cta-button {
    display: inline-block; background-color: var(--color-rose-gold); color: var(--color-white);
    padding: 15px 35px; font-weight: 500; border-radius: 5px; text-transform: uppercase;
    letter-spacing: 1px; transition: background-color 0.3s ease, transform 0.3s ease;
}
.cta-button:hover { background-color: #a15f69; transform: translateY(-3px); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* --- SECCIONES GENERALES --- */
.page-header { padding: 150px 0 70px; text-align: center; background-color: #111; }
.page-header h1 { font-size: 3rem; }
.content-section { padding: 80px 0; }

/* --- NUEVA LISTA DE PRECIOS DETALLADA --- */
.pricing-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 20px 0;
}

.pricing-category {
    background: #141414; /* Fondo oscuro acorde al tema */
    padding: 25px;
    border-radius: 10px;
    border: 1px solid rgba(183, 110, 121, 0.2); /* Borde color rose-gold sutil */
}

.pricing-category h3 {
    text-align: center;
    color: var(--color-rose-gold);
    text-transform: uppercase;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
}

.price-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.price-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.price-list .service {
    flex: 1;
    position: relative;
    overflow: hidden;
    font-weight: 500;
    color: #ccc;
}

/* Efecto de puntos suspensivos */
.price-list .service::after {
    content: "......................................................................";
    color: #444;
    margin-left: 5px;
    position: absolute;
}

.price-list small {
    font-size: 0.8em;
    color: #888;
    font-weight: normal;
}

.price-list .price {
    font-weight: bold;
    color: var(--color-white);
    background: #141414; /* Tapa los puntos */
    padding-left: 5px;
    text-align: right;
    white-space: nowrap;
}


/* --- SERVICIOS (Estilo antiguo de tarjetas, por si acaso) --- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.service-item { background-color: #141414; padding: 30px; border: 1px solid rgba(183, 110, 121, 0.2); border-radius: 5px; text-align: center; }
.service-item i { font-size: 2.5rem; color: var(--color-rose-gold); margin-bottom: 20px; }
.service-item h3 { font-size: 1.5rem; margin-bottom: 15px; }
.service-item .price { display: block; font-size: 1.1rem; font-weight: 500; color: var(--color-rose-gold); margin-top: 20px; }

/* --- GALERÍA --- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 15px; }
.gallery-item { overflow: hidden; position: relative; border-radius: 5px; aspect-ratio: 1/1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.1); }

/* --- SOBRE MÍ Y CONTACTO --- */
.about-container, .contact-container { display: flex; flex-wrap: wrap; gap: 50px; align-items: center; }
.about-image, .about-text, .contact-info, .contact-map { flex: 1 1 400px; }
.contact-info p { margin-bottom: 15px; font-size: 1.1rem; }
.contact-info i { color: var(--color-rose-gold); margin-right: 15px; width: 20px; }
.map-responsive iframe { border-radius: 5px; width: 100%; height: 400px; }

/* --- FOOTER --- */
.main-footer { background-color: #000; padding: 60px 0; border-top: 1px solid rgba(183, 110, 121, 0.2); }
.footer-container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; }
.footer-column { flex: 1 1 250px; }
.footer-column h4 { font-size: 1.2rem; margin-bottom: 20px; color: var(--color-white); }
.footer-column p { font-size: 0.9rem; color: #ccc; margin-bottom: 10px; }
.social-icons a { color: var(--color-white); font-size: 1.5rem; margin-right: 20px; }
.social-icons a:hover { color: var(--color-rose-gold); }

/* --- RESPONSIVE DESIGN (MÓVIL) --- */
@media (max-width: 768px) {
    /* Menú móvil */
    .main-nav { display: none; position: absolute; top: 100%; left: 0; width: 100%; background-color: var(--color-black); }
    .main-nav.active { display: block; }
    .main-nav ul { flex-direction: column; align-items: center; padding: 20px 0; gap: 0; }
    .main-nav a { display: block; padding: 15px 0; }
    .mobile-nav-toggle { display: block; }
    
    /* Tipografía móvil */
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1rem; }
    .page-header h1 { font-size: 2.5rem; }

    /* CORRECCIÓN HERO PARA MÓVIL */
    .hero {
        height: 70vh; 
        background-attachment: scroll;
        background-position: center top; 
        background-size: cover; 
    }
}































/* --- ESTILOS DE LA RIFA NAVIDEÑA (Estilo Flyer) --- */
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Permanent+Marker&display=swap');

.rifa-section {
    background: linear-gradient(180deg, #fff0f3 0%, #ffcce0 100%); /* Fondo rosa degradado */
    padding: 40px 10px;
    color: #5e3038; /* Color vino/oscuro del texto */
}

.rifa-flyer {
    max-width: 700px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(183, 110, 121, 0.2);
    padding: 20px;
    position: relative;
    border: 2px solid #fff;
}

/* Decoración superior (Título) */
.rifa-header-art {
    text-align: center;
    margin-bottom: 20px;
}

.rifa-title {
    font-family: 'Great Vibes', cursive; /* Fuente estilo Rifa */
    font-size: 4.5rem;
    color: #a3333d; /* Rojo navideño oscuro */
    line-height: 1;
    text-shadow: 2px 2px 0px rgba(255, 255, 255, 0.8);
    margin: 10px 0;
}

/* La Cuadrícula exacta de 10x10 */
.rifa-grid-container {
    display: grid;
    grid-template-columns: repeat(10, 1fr); /* 10 columnas exactas */
    gap: 0; /* Sin espacio entre celdas, como en la imagen */
    border: 2px solid #333; /* Borde exterior grueso */
    background-color: rgba(255, 255, 255, 0.6);
    margin-bottom: 30px;
}

.rifa-cell {
    aspect-ratio: 1/1; /* Cuadrados perfectos */
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    color: #000;
    border: 1px solid #333; /* Líneas de la cuadrícula */
    position: relative;
    cursor: default;
    background: transparent;
}

/* Marca de agua del logo (opcional) */
.rifa-grid-container {
    position: relative;
    overflow: hidden;
}
.rifa-grid-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('../img/LOGO_NR_V1.png');
    background-size: 80%;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}

/* Estado: TACHADO (Ocupado) */
.rifa-cell.taken {
    color: #555;
}

/* La X roja de tachado */
.rifa-cell.taken::after {
    content: 'X';
    position: absolute;
    font-family: 'Permanent Marker', cursive; /* Fuente tipo rotulador */
    font-size: 2.5rem;
    color: #d62828; /* Rojo fuerte */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.8;
    z-index: 2;
}

/* Estado: LIBRE (Interacción) */
.rifa-cell.free:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* Admin Mode */
.rifa-cell.admin-mode {
    cursor: pointer;
}
.rifa-cell.admin-mode:hover {
    background-color: #ffcad4;
}

/* Footer del Flyer (Información) */
.rifa-footer-art {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    text-align: center;
}
.rifa-character {
    width: 150px;
    margin-bottom: -40px; /* Efecto 3D saliendo del flyer */
}
.rifa-info {
    flex: 1;
    padding: 10px;
}
.rifa-price {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 10px;
    display: block;
}
.rifa-prizes {
    background: rgba(255,255,255,0.5);
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 15px;
}
.rifa-prizes h4 { color: #a3333d; font-size: 1.2rem; margin-bottom: 5px; }

/* Responsive para móviles */
@media (max-width: 600px) {
    .rifa-title { font-size: 3rem; }
    .rifa-cell { font-size: 0.9rem; }
    .rifa-cell.taken::after { font-size: 1.5rem; }
    .rifa-footer-art { flex-direction: column; }
    .rifa-character { width: 120px; margin-bottom: 10px; }
}




/* --- EXTRAS NAVIDEÑOS (Luces y Nieve) --- */

/* 1. CABLE DE LUCES ANIMADAS */
.light-rope {
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    position: absolute;
    z-index: 10;
    margin: -15px 0 0 0;
    padding: 0;
    pointer-events: none;
    width: 100%;
    top: -20px; /* Ajuste para que cuelguen del borde superior */
    left: 0;
}

.light-rope li {
    position: relative;
    animation-fill-mode: both;
    animation-iteration-count: infinite;
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-block;
    width: 12px;
    height: 22px;
    border-radius: 50%;
    margin: 20px;
    background: #00f7a5;
    box-shadow: 0px 4.66667px 24px 3px #00f7a5;
    animation-name: flash-1;
    animation-duration: 2s;
}

.light-rope li:nth-child(2n+1) {
    background: #00FFFF;
    box-shadow: 0px 4.66667px 24px 3px rgba(0, 255, 255, 0.5);
    animation-name: flash-2;
    animation-duration: 0.4s;
}
.light-rope li:nth-child(4n+2) {
    background: #F70094;
    box-shadow: 0px 4.66667px 24px 3px #F70094;
    animation-name: flash-3;
    animation-duration: 1.1s;
}
.light-rope li:nth-child(odd) {
    animation-duration: 1.8s;
}
.light-rope li:nth-child(3n+1) {
    animation-duration: 1.4s;
}
/* Cable negro fino */
.light-rope li:before {
    content: "";
    position: absolute;
    background: #222;
    width: 40px;
    height: 2px; /* Grosor del cable */
    border-radius: 3px;
    top: -4px;
    left: 6px;
}
.light-rope li:after {
    content: "";
    top: -14px;
    left: 9px;
    position: absolute;
    width: 52px;
    height: 18.66667px;
    border-bottom: solid #222 2px;
    border-radius: 50%;
}

/* Animaciones de parpadeo */
@keyframes flash-1 { 
    0%, 100% { background: #00f7a5; box-shadow: 0px 4.66667px 24px 3px #00f7a5; } 
    50% { background: rgba(0, 247, 165, 0.4); box-shadow: 0px 4.66667px 24px 3px rgba(0, 247, 165, 0.2); }
}
@keyframes flash-2 { 
    0%, 100% { background: #00FFFF; box-shadow: 0px 4.66667px 24px 3px #00FFFF; } 
    50% { background: rgba(0, 255, 255, 0.4); box-shadow: 0px 4.66667px 24px 3px rgba(0, 255, 255, 0.2); }
}
@keyframes flash-3 { 
    0%, 100% { background: #F70094; box-shadow: 0px 4.66667px 24px 3px #F70094; } 
    50% { background: rgba(247, 0, 148, 0.4); box-shadow: 0px 4.66667px 24px 3px rgba(247, 0, 148, 0.2); }
}

/* 2. EFECTO NIEVE */
.snow-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
    background-image: 
        radial-gradient(4px 4px at 100px 50px, #fff , transparent), 
        radial-gradient(6px 6px at 200px 150px, #fff, transparent), 
        radial-gradient(3px 3px at 300px 250px, #fff, transparent);
    background-size: 550px 550px;
    animation: snow 10s linear infinite;
    opacity: 0.6;
}
@keyframes snow {
    0% { background-position: 0px 0px, 0px 0px, 0px 0px; }
    100% { background-position: 550px 550px, 400px 400px, 300px 300px; }
}

/* AJUSTES PARA QUE EL PERSONAJE (NURIA + ARBOL) RESALTE MÁS */
.rifa-character {
    width: 220px; /* Hacemos la imagen más grande */
    margin-bottom: -50px;
    margin-left: -20px;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.5)); /* Resplandor */
    transition: transform 0.3s ease;
}
.rifa-character:hover {
    transform: scale(1.05) rotate(2deg);
}

/* Fondo de la sección un poco más rojo/navideño pero suave */
.rifa-section {
    background: linear-gradient(180deg, #ffeef2 0%, #ffc4d6 100%);
    position: relative;
    overflow: hidden;
}




/* --- BOTÓN RIFA NAVIDEÑA --- */
.btn-rifa {
    background-color: #d62828 !important; /* Rojo Navidad */
    border: 1px solid #d62828;
    color: white !important;
    animation: pulse-btn 2s infinite;
}

.btn-rifa:hover {
    background-color: #a3333d !important; /* Rojo más oscuro al pasar ratón */
    transform: translateY(-3px);
}

/* Animación suave para llamar la atención */
@keyframes pulse-btn {
    0% { box-shadow: 0 0 0 0 rgba(214, 40, 40, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(214, 40, 40, 0); }
    100% { box-shadow: 0 0 0 0 rgba(214, 40, 40, 0); }
}