/* ========================================
   VARIABLES Y RESET
   ======================================== */
:root {
    --bg-dark: #1a1523;      /* Fondo oscuro con un toque púrpura/marrón profundo */
    --bg-mid: #2d2436;       
    --gold: #f59e0b;         /* Dorado/Ámbar brillante (más llamativo) */
    --gold-light: #fcd34d;   /* Dorado claro */
    --text-light: #f8fafc;   
    --text-muted: #a8a29e;   /* Gris cálido */
    
    --font-main: 'Inter', sans-serif;
    --font-titles: 'Lora', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-main); background-color: var(--bg-dark); color: var(--text-light); overflow-x: hidden; position: relative; line-height: 1.6; }

/* FONDO DECORATIVO */
.bg-light { position: fixed; top: -20vh; left: 50%; transform: translateX(-50%); width: 100vw; height: 100vw; max-width: 1000px; max-height: 1000px; background: radial-gradient(circle, rgba(245, 158, 11, 0.1) 0%, transparent 60%); pointer-events: none; z-index: 0; }
.bg-verse { position: fixed; bottom: -5vh; right: -5vw; font-size: clamp(150px, 30vw, 400px); color: rgba(245, 158, 11, 0.03); pointer-events: none; z-index: 0; line-height: 1; }

/* HERO CON NUEVA IMAGEN LLAMATIVA */
.hero { 
    position: relative; 
    min-height: 100vh; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 80px 20px; 
    /* Imagen de cielo dramático con nubes doradas */
    background-image: url('https://images.unsplash.com/photo-1534067783941-51c9c23ecefd?q=80&w=2070&auto=format&fit=crop'); 
    background-size: cover; 
    background-position: center; 
    background-attachment: fixed; 
    overflow: hidden; 
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26, 21, 35, 0.5) 0%, rgba(26, 21, 35, 0.95) 100%); z-index: 1; }

/* LOGO SUPERIOR DERECHO */
.top-logo-container { position: absolute; top: 25px; right: 30px; z-index: 10; }
.site-logo { width: 75px; height: 75px; object-fit: cover; border-radius: 50%; border: 2px solid rgba(245, 158, 11, 0.5); box-shadow: 0 4px 15px rgba(0,0,0,0.5); transition: transform 0.3s ease, border-color 0.3s ease; }
.site-logo:hover { transform: scale(1.1); border-color: var(--gold); }

/* CONTADOR */
.visitor-counter { position: absolute; top: 30px; left: 30px; z-index: 10; display: flex; align-items: center; gap: 10px; padding: 10px 20px; background: rgba(26, 21, 35, 0.6); backdrop-filter: blur(10px); border: 1px solid rgba(245, 158, 11, 0.3); border-radius: 50px; color: var(--text-light); font-size: 0.95rem; font-weight: 600; box-shadow: 0 4px 15px rgba(0,0,0,0.3); transition: all 0.3s ease; }
.visitor-counter:hover { background: rgba(26, 21, 35, 0.8); border-color: var(--gold); }
.visitor-counter i { color: var(--gold); font-size: 1.1rem; animation: pulseIcon 2s ease-in-out infinite; }

.hero-content { text-align: center; position: relative; z-index: 2; max-width: 800px; width: 100%; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 20px; border: 1px solid rgba(245, 158, 11, 0.5); border-radius: 50px; font-size: 0.75rem; font-weight: 700; letter-spacing: 2px; color: var(--gold); margin-bottom: 30px; background: rgba(26, 21, 35, 0.6); backdrop-filter: blur(5px); animation: fadeDown 1s ease both; }
.hero-badge i { animation: pulseIcon 2s ease-in-out infinite; }
.hero-title { font-family: var(--font-titles); font-size: clamp(2.5rem, 8vw, 5.5rem); font-weight: 700; line-height: 1.1; letter-spacing: -1px; margin-bottom: 24px; animation: fadeUp 1s ease 0.15s both; text-shadow: 0 4px 20px rgba(0,0,0,0.5); }
.hero-title span { background: linear-gradient(135deg, #fff 0%, var(--gold) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { font-size: clamp(1rem, 2.5vw, 1.2rem); color: var(--text-muted); line-height: 1.8; max-width: 600px; margin: 0 auto 50px; animation: fadeUp 1s ease 0.3s both; text-shadow: 0 2px 10px rgba(0,0,0,0.5); font-weight: 300; }

/* REPRODUCTOR */
.radio-player { display: inline-flex; align-items: center; gap: 12px; background: linear-gradient(135deg, rgba(45, 36, 54, 0.9) 0%, rgba(26, 21, 35, 0.9) 100%); padding: 8px 20px 8px 8px; border-radius: 50px; box-shadow: 0 8px 25px rgba(0,0,0,0.5); transition: transform 0.3s ease, box-shadow 0.3s ease; animation: fadeUp 1s ease 0.45s both; backdrop-filter: blur(10px); border: 1px solid rgba(245, 158, 11, 0.2); }
.radio-player:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(245, 158, 11, 0.2); }
.play-btn { width: 50px; height: 50px; border-radius: 50%; background: var(--gold); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; flex-shrink: 0; box-shadow: 0 4px 10px rgba(245, 158, 11, 0.4); }
.play-btn:hover { background: var(--gold-light); transform: scale(1.08); }
.play-btn:active { transform: scale(0.95); }
.play-icon { width: 0; height: 0; border-left: 15px solid var(--bg-dark); border-top: 10px solid transparent; border-bottom: 10px solid transparent; margin-left: 4px; }
.pause-icon { display: none; width: 15px; height: 20px; position: relative; }
.pause-icon::before, .pause-icon::after { content: ''; position: absolute; width: 5px; height: 20px; background: var(--bg-dark); border-radius: 2px; }
.pause-icon::before { left: 0; } .pause-icon::after { right: 0; }
.play-btn.playing .play-icon { display: none; } .play-btn.playing .pause-icon { display: block; }
.volume-wrap { display: flex; align-items: center; gap: 12px; }
.volume-icon { width: 22px; height: 22px; fill: var(--text-muted); flex-shrink: 0; transition: fill 0.3s ease; }
.volume-wrap:hover .volume-icon { fill: var(--gold); }
.volume-slider { width: 100px; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.1); outline: none; -webkit-appearance: none; cursor: pointer; }
.volume-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); cursor: pointer; transition: all 0.2s; box-shadow: 0 0 5px rgba(245, 158, 11, 0.5); }
.volume-slider::-webkit-slider-thumb:hover { transform: scale(1.3); }
.volume-slider::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--gold); border: none; cursor: pointer; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }
.play-btn.playing { animation: pulse 2s ease-in-out infinite; }

/* SECCIÓN MENSAJE */
.message-section { padding: 100px 20px; display: flex; justify-content: center; position: relative; z-index: 2; background-image: url('https://images.unsplash.com/photo-1519681393784-d120267933ba?q=80&w=2070&auto=format&fit=crop'); background-size: cover; background-position: center; background-attachment: fixed; }
.message-section::before { content: ''; position: absolute; inset: 0; background: rgba(26, 21, 35, 0.85); z-index: -1; }
.message-card { max-width: 850px; width: 100%; text-align: center; padding: 60px 40px; background: linear-gradient(135deg, rgba(45, 36, 54, 0.8) 0%, rgba(26, 21, 35, 0.6) 100%); border: 1px solid rgba(245, 158, 11, 0.2); border-radius: 24px; position: relative; backdrop-filter: blur(15px); transition: transform 0.4s ease, border-color 0.4s ease; box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.message-card:hover { transform: translateY(-8px); border-color: rgba(245, 158, 11, 0.5); }
.quote-icon { font-size: 3rem; color: var(--gold); opacity: 0.4; margin-bottom: 20px; }
.message-text { font-family: var(--font-titles); font-size: clamp(1.2rem, 3vw, 1.8rem); line-height: 1.6; font-style: italic; color: var(--text-light); margin-bottom: 24px; }
.message-ref { display: inline-block; font-size: 0.9rem; font-weight: 700; letter-spacing: 2px; color: var(--gold); text-transform: uppercase; }

/* CARACTERÍSTICAS */
.features { padding: 100px 20px; position: relative; z-index: 2; background-color: var(--bg-dark); }
.section-title { font-family: var(--font-titles); font-size: clamp(1.8rem, 4vw, 2.8rem); text-align: center; margin-bottom: 60px; color: var(--text-light); }
.section-title::after { content: ''; display: block; width: 80px; height: 4px; background: linear-gradient(90deg, var(--gold), var(--gold-light)); border-radius: 2px; margin: 20px auto 0; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; max-width: 1000px; margin: 0 auto; }
.feature-card { padding: 45px 30px; background: linear-gradient(160deg, rgba(45, 36, 54, 0.6) 0%, rgba(26, 21, 35, 0.4) 100%); border: 1px solid rgba(168, 162, 158, 0.1); border-radius: 20px; text-align: center; transition: all 0.4s ease; position: relative; overflow: hidden; backdrop-filter: blur(5px); }
.feature-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--gold), var(--gold-light)); transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease; }
.feature-card:hover { transform: translateY(-10px); border-color: rgba(245, 158, 11, 0.3); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon { width: 80px; height: 80px; margin: 0 auto 24px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.3); font-size: 2rem; color: var(--gold); transition: all 0.4s ease; }
.feature-card:hover .feature-icon { background: var(--gold); color: var(--bg-dark); transform: rotate(-10deg) scale(1.1); }
.feature-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 15px; color: var(--text-light); }
.feature-card p { font-size: 0.95rem; line-height: 1.7; color: var(--text-muted); }

/* GALERÍA (2 COLUMNAS EXACTAS EN ESCRITORIO) */
.gallery-section { padding: 100px 20px; position: relative; z-index: 2; background-image: url('https://images.unsplash.com/photo-1438232992991-995b7058bbb3?q=80&w=2070&auto=format&fit=crop'); background-size: cover; background-position: center; background-attachment: fixed; }
.gallery-section::before { content: ''; position: absolute; inset: 0; background: rgba(26, 21, 35, 0.9); z-index: -1; }
.gallery-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); /* Fuerza 2 columnas */
    gap: 20px; 
    max-width: 1000px; 
    margin: 0 auto; 
}
.gallery-item { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 16/9; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(26, 21, 35, 0.95) 100%); display: flex; align-items: flex-end; padding: 25px; opacity: 0; transition: opacity 0.4s ease; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { color: var(--gold); font-family: var(--font-titles); font-size: 1.2rem; font-weight: 700; }

/* BOTÓN FLOTANTE DEL MURO */
.floating-buttons { position: fixed; bottom: 30px; right: 30px; display: flex; flex-direction: column; gap: 15px; z-index: 100; }
.chat-local-btn { width: 60px; height: 60px; border-radius: 50%; background: var(--gold); color: var(--bg-dark); border: none; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; cursor: pointer; box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4); transition: all 0.3s ease; position: relative; }
.chat-local-btn:hover { transform: scale(1.1) rotate(-5deg); box-shadow: 0 8px 25px rgba(245, 158, 11, 0.6); background: var(--gold-light); }
.btn-tooltip { position: absolute; right: 75px; top: 50%; transform: translateY(-50%) translateX(10px); background: var(--bg-mid); color: var(--text-light); padding: 8px 15px; border-radius: 8px; font-size: 0.8rem; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none; transition: all 0.3s ease; border: 1px solid rgba(245, 158, 11, 0.2); }
.chat-local-btn:hover .btn-tooltip { opacity: 1; transform: translateY(-50%) translateX(0); }

/* MODAL DE CHAT (MURO) */
.chat-modal { position: fixed; bottom: 110px; right: 30px; width: 340px; max-width: calc(100vw - 40px); background: #fff; border-radius: 16px; box-shadow: 0 15px 40px rgba(0,0,0,0.4); z-index: 1000; display: flex; flex-direction: column; overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(20px); transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.chat-modal.active { opacity: 1; visibility: visible; transform: translateY(0); }
.chat-header { background: var(--bg-mid); padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; color: #fff; border-bottom: 2px solid var(--gold); }
.chat-user { display: flex; align-items: center; gap: 12px; }
.chat-avatar { width: 40px; height: 40px; background: rgba(245, 158, 11, 0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--gold); }
.chat-user h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 2px; }
.chat-user span { font-size: 0.75rem; color: var(--gold-light); display: flex; align-items: center; gap: 5px; }
.chat-user span::before { content: ''; width: 8px; height: 8px; background: var(--gold); border-radius: 50%; display: inline-block; }
.chat-close { background: transparent; border: none; color: #fff; font-size: 1.2rem; cursor: pointer; opacity: 0.8; transition: opacity 0.2s; }
.chat-close:hover { opacity: 1; }
.chat-body { padding: 20px; background: #fdfaf6; height: 260px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.chat-bubble { background: #fff; color: #333; padding: 12px 16px; border-radius: 0 12px 12px 12px; font-size: 0.9rem; line-height: 1.5; max-width: 85%; box-shadow: 0 1px 2px rgba(0,0,0,0.1); position: relative; }
.local-bubble { background: #fef3c7 !important; color: #1a1523 !important; border-radius: 12px 0 12px 12px !important; align-self: flex-end; max-width: 90% !important; border: 1px solid #fde68a; }
.chat-footer { padding: 12px 15px; background: #f0f0f0; display: flex; gap: 10px; align-items: center; }
.chat-footer input { flex: 1; padding: 12px 16px; border: none; border-radius: 24px; font-family: var(--font-main); font-size: 0.9rem; outline: none; background: #fff; box-shadow: inset 0 1px 3px rgba(0,0,0,0.05); }
.chat-send-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: var(--bg-dark); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; transition: all 0.2s ease; flex-shrink: 0; }
.chat-send-btn:hover { background: var(--gold-light); transform: scale(1.05); }

/* FOOTER */
.footer { background: linear-gradient(180deg, var(--bg-dark) 0%, #0d0912 100%); padding: 80px 20px 40px; text-align: center; position: relative; z-index: 2; border-top: 1px solid rgba(245, 158, 11, 0.1); }
.footer-content { max-width: 750px; margin: 0 auto; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-titles); font-size: 1.5rem; font-weight: 700; color: var(--gold); margin-bottom: 30px; }
.footer-brand i { font-size: 1.3rem; }
.footer-phrase { font-family: var(--font-titles); font-style: italic; font-size: clamp(1.1rem, 3vw, 1.4rem); line-height: 1.8; color: var(--text-light); margin-bottom: 30px; }
.footer-phrase strong { color: var(--gold); font-style: normal; }
.footer-contact { display: inline-flex; align-items: center; gap: 10px; background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.3); padding: 10px 20px; border-radius: 50px; margin-bottom: 30px; color: var(--text-light); font-size: 1.05rem; transition: all 0.3s ease; }
.footer-contact:hover { background: rgba(245, 158, 11, 0.2); transform: translateY(-2px); }
.footer-contact i { color: var(--gold); font-size: 1.3rem; }
.footer-contact strong { color: var(--gold); letter-spacing: 1px; }
.footer-divider { width: 100px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); margin: 0 auto 25px; }
.footer-copy { font-size: 0.85rem; color: var(--text-muted); letter-spacing: 0.5px; }

/* ANIMACIONES */
@keyframes fadeUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulseIcon { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* RESPONSIVE */
@media (max-width: 992px) {
    .hero, .message-section, .gallery-section { background-attachment: scroll; }
}
@media (max-width: 600px) {
    .hero { padding: 100px 15px 60px; }
    .top-logo-container { top: 20px; right: 15px; }
    .site-logo { width: 55px; height: 55px; }
    .visitor-counter { top: 20px; left: 15px; padding: 8px 15px; font-size: 0.85rem; }
    .radio-player { padding: 6px 15px 6px 6px; gap: 10px; width: 100%; justify-content: space-between; border-radius: 40px; }
    .volume-slider { width: 80px; }
    .message-section, .features, .gallery-section { padding: 60px 15px; }
    .message-card { padding: 40px 20px; border-radius: 16px; }
    .features-grid { grid-template-columns: 1fr; }
    /* En móviles, la galería pasa a 1 columna */
    .gallery-grid { grid-template-columns: 1fr; }
    .feature-card { padding: 35px 20px; }
    .floating-buttons { bottom: 20px; right: 15px; gap: 10px; }
    .chat-local-btn { width: 55px; height: 55px; font-size: 1.6rem; }
    .btn-tooltip { display: none; }
    .chat-modal { bottom: 90px; right: 15px; width: calc(100vw - 30px); max-height: 80vh; }
    .chat-body { height: 180px; }
    .bg-verse { font-size: 120px; bottom: -10px; right: -10px; }
    .footer { padding: 60px 15px 30px; }
    .footer-contact { font-size: 0.9rem; padding: 8px 15px; }
}