/* ==========================================
   VARIABLES Y RESETEO (Tema Playero)
========================================== */
:root {
    --fondo-oscuro: #10041a; 
    --tarjeta-blanca: rgba(255, 255, 255, 0.95);
    --texto-oscuro: #1a1a1a; 
    --texto-gris: #555555;
    --texto-principal: #ffffff; 
    --acento-vip: #ffd700; 
    --acento-auth: #ff6b6b; /* Un atardecer coral */
    --acento-mar: #00d2ff; /* Azul mar */
    --borde-suave: rgba(0,0,0,0.1);
}

* { box-sizing: border-box; scroll-behavior: smooth; }

body { 
    margin: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    background-color: var(--fondo-oscuro); color: var(--texto-principal); 
    padding-top: 60px; overflow-x: hidden;
}

/* ==========================================
   ANIMACIONES GLOBALES
========================================== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoomIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
@keyframes pulseSlow { 0% { transform: scale(1); } 50% { transform: scale(1.02); } 100% { transform: scale(1); } }
@keyframes bounceHover { 0% { transform: translateY(0); } 50% { transform: translateY(-5px); } 100% { transform: translateY(0); } }

.slide-up { animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.fade-in { animation: fadeIn 0.8s ease-in-out forwards; }
.zoom-in { animation: zoomIn 0.4s ease-out forwards; }
.pulse-slow { animation: pulseSlow 3s infinite ease-in-out; }
.hover-bounce:hover { animation: bounceHover 0.4s ease-in-out; }
.delay-1 { animation-delay: 0.2s; } .delay-2 { animation-delay: 0.4s; }

/* ==========================================
   BARRA DE AUTENTICACIÓN
========================================== */
.auth-bar { position: fixed; top: 0; left: 0; width: 100%; height: 60px; background: rgba(16, 4, 26, 0.85); backdrop-filter: blur(12px); display: flex; justify-content: flex-end; align-items: center; padding: 0 20px; z-index: 2000; border-bottom: 1px solid rgba(255, 107, 107, 0.3); }
.input-auth { padding: 8px 12px; border-radius: 20px; background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.2); color: white; margin-right: 10px; }
.btn-auth { background: linear-gradient(45deg, var(--acento-auth), #ff8e53); color: white; border: none; padding: 8px 16px; border-radius: 20px; font-weight: bold; cursor: pointer; transition: 0.3s; box-shadow: 0 4px 10px rgba(255, 107, 107, 0.3); }
.btn-auth:hover { transform: scale(1.05); }
.btn-auth-out { background: transparent; color: #ffbaba; border: 1px solid #ffbaba; padding: 6px 12px; border-radius: 20px; font-weight: bold; cursor: pointer; transition: 0.2s; margin-left: 15px; }
.texto-user { color: var(--acento-vip); font-size: 0.9rem; font-weight: bold; }

/* ==========================================
   HERO SECTION (Atardecer Playero)
========================================== */
.hero-section { position: relative; width: 100%; height: 80vh; min-height: 500px; display: flex; align-items: center; justify-content: center; overflow: hidden; border-bottom: 3px solid var(--acento-mar); }
.back-video { position: absolute; right: 0; bottom: 0; min-width: 100%; min-height: 100%; z-index: -2; object-fit: cover; }
.hero-overlay { position: absolute; top:0; left:0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(16, 4, 26, 0.4), rgba(16, 4, 26, 0.9)); z-index: -1; }
.hero-content { z-index: 1; text-align: center; color: white; padding: 0 20px; width: 100%; max-width: 800px; }
.hero-section h1 { margin: 0; font-size: 4rem; font-weight: 900; text-shadow: 0 4px 15px rgba(0,0,0,0.8); background: -webkit-linear-gradient(#fff, #ffeb3b); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-section p { color: #e0e0e0; margin-bottom: 30px; font-size: 1.3rem; text-shadow: 0 2px 5px rgba(0,0,0,0.8); }

.buscador-container { margin: 0 auto; width: 100%; max-width: 600px; }
.input-buscador { width: 100%; padding: 18px 25px; border-radius: 35px; border: 2px solid rgba(0, 210, 255, 0.4); background: rgba(0,0,0,0.6); backdrop-filter: blur(8px); color: white; font-size: 1.1rem; outline: none; transition: 0.3s; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6); }
.input-buscador:focus { border-color: var(--acento-mar); background: rgba(0,0,0,0.8); box-shadow: 0 0 20px rgba(0, 210, 255, 0.5); }

.btn-agregar { background: var(--acento-vip); color: #000; border: none; padding: 14px 28px; border-radius: 30px; font-weight: bold; cursor: pointer; font-size: 1.1rem; transition: transform 0.2s; margin-top: 30px; box-shadow: 0 5px 20px rgba(255, 215, 0, 0.5);}
.msg-login { color: #ffca28; font-style: italic; font-size: 1rem; margin-top: 25px; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }

/* ==========================================
   TARJETAS ANIMADAS
========================================== */
.grid-negocios { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; padding: 4rem 1rem; max-width: 1300px; margin: 0 auto; }
.tarjeta { background-color: var(--tarjeta-blanca); border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.5); transition: all 0.3s ease; position: relative; border: 1px solid rgba(255,255,255,0.5); display: flex; flex-direction: column; opacity: 0; animation: fadeInUp 0.6s forwards; }
.tarjeta:hover { transform: translateY(-10px) scale(1.02); box-shadow: 0 15px 40px rgba(0, 210, 255, 0.3); }

.img-portada-tarjeta { width: 100%; height: 220px; object-fit: cover; transition: 0.5s ease; }
.tarjeta:hover .img-portada-tarjeta { transform: scale(1.05); }
.placeholder-img { width: 100%; height: 220px; background: linear-gradient(45deg, #eee, #ddd); display: flex; align-items: center; justify-content: center; font-size: 4rem; }

.tarjeta-content { padding: 1.8rem; flex-grow: 1; display: flex; flex-direction: column; background: white; z-index: 2;}
.tarjeta h3 { margin-top: 0; color: var(--texto-oscuro); font-size: 1.6rem; font-weight: 800; }
.tarjeta p { color: var(--texto-gris); font-size: 0.95rem; line-height: 1.6; margin-bottom: 15px; }

.badge-vip { position: absolute; top: 15px; right: 15px; background: linear-gradient(45deg, #ffd700, #ffaa00); color: #000; font-weight: 900; padding: 0.5rem 1.2rem; border-radius: 25px; font-size: 0.85rem; z-index: 10; box-shadow: 0 5px 15px rgba(0,0,0,0.4); text-transform: uppercase; letter-spacing: 1px;}
.tag { background-color: #e3f2fd; color: #0277bd; padding: 0.4rem 1rem; border-radius: 20px; font-size: 0.8rem; margin-right: 6px; display: inline-block; margin-top: 5px; font-weight: bold; border: 1px solid #bbdefb;}

/* ==========================================
   MODALES (VENTANAS)
========================================== */
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(10, 2, 20, 0.9); display: flex; justify-content: center; align-items: center; z-index: 3000; backdrop-filter: blur(10px); }
.modal-contenido { background: var(--tarjeta-blanca); color: var(--texto-oscuro); padding: 2.5rem; border-radius: 25px; max-width: 650px; width: 90%; position: relative; box-shadow: 0 20px 50px rgba(0,0,0,0.8); }
.modal-scroll { max-height: 85vh; overflow-y: auto; overflow-x: hidden; }
.cerrar-btn { position: absolute; top: 15px; right: 25px; color: #999; font-size: 2.5rem; cursor: pointer; font-weight: bold; z-index: 10; transition: 0.3s;}
.cerrar-btn:hover { color: #ff4757; transform: rotate(90deg);}

.galeria-detalle { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 20px; width: 100%; }
.img-detalle-principal { width: 100%; height: 300px; object-fit: cover; border-radius: 15px; grid-column: 1 / -1; box-shadow: 0 5px 15px rgba(0,0,0,0.2);}
.img-detalle-extra { width: 100%; height: 120px; object-fit: cover; border-radius: 10px; }
.video-detalle { width: 100%; border-radius: 15px; margin-top: 10px; grid-column: 1 / -1; box-shadow: 0 5px 15px rgba(0,0,0,0.2);}

.redes-container { display: flex; gap: 10px; margin: 15px 0; flex-wrap: wrap; }
.btn-social { padding: 8px 15px; border-radius: 8px; color: white; text-decoration: none; font-size: 0.9rem; font-weight: bold; transition: 0.3s; }
.btn-social:hover { transform: translateY(-3px); box-shadow: 0 5px 10px rgba(0,0,0,0.2);}
.bg-fb { background-color: #1877F2; } .bg-ig { background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); } .bg-tk { background-color: #000; } .bg-web { background-color: #007BFF; }

.btn-whatsapp { display: inline-block; background: linear-gradient(45deg, #25D366, #128C7E); color: white; padding: 14px 24px; text-decoration: none; border-radius: 12px; font-weight: bold; width: 100%; text-align: center; font-size: 1.1rem; margin-top: 15px; box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4); transition: 0.3s;}
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37, 211, 102, 0.6);}
.btn-wompi { display: inline-block; background-color: #ff0055; color: white; padding: 14px 24px; text-decoration: none; border-radius: 12px; font-weight: bold; width: 100%; text-align: center; font-size: 1.1rem; border: 2px solid #fff; box-shadow: 0 4px 15px rgba(255, 0, 85, 0.4); transition: 0.3s; }

/* Formularios */
.input-form { width: 100%; padding: 15px; margin-top: 12px; border-radius: 10px; border: 2px solid #eaeaea; background-color: #fcfcfc; color: #333; font-size: 1rem; transition: 0.3s; }
.input-form:focus { border-color: var(--acento-mar); outline: none; background: #fff;}
.seccion-subir-fotos { margin-top: 25px; background-color: #f8f9fa; padding: 20px; border-radius: 15px; border: 2px dashed #ddd; }
.input-file { margin-top: 8px; color: #555; font-size: 0.9rem; width: 100%;}
.btn-submit { width: 100%; padding: 16px; margin-top: 25px; background: linear-gradient(45deg, var(--acento-auth), #ff8e53); color: white; border: none; border-radius: 12px; font-weight: bold; cursor: pointer; font-size: 1.2rem; box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);}

/* ==========================================
   CHAT ESTILO WHATSAPP PLAYERO
========================================== */
.chat-widget { position: fixed; bottom: 0; right: 20px; width: 350px; background-color: white; border-radius: 20px 20px 0 0; box-shadow: 0 -10px 30px rgba(0,0,0,0.4); z-index: 2500; display: flex; flex-direction: column; overflow: hidden; }
.chat-header { background: linear-gradient(to right, #075e54, #128c7e); color: white; padding: 16px; font-weight: bold; cursor: pointer; text-align: center; font-size: 1.1rem;}
.chat-body { height: 420px; display: flex; flex-direction: column; transition: 0.3s ease; }
.wa-background { background-color: #e5ddd5; background-image: url('https://www.transparenttextures.com/patterns/sand.png'); } /* Textura de arena */
.chat-mensajes { flex-grow: 1; padding: 15px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }

/* Burbujas de chat tipo WhatsApp */
.burbuja-wa { max-width: 85%; padding: 10px 14px; border-radius: 12px; font-size: 0.95rem; line-height: 1.4; box-shadow: 0 1px 3px rgba(0,0,0,0.2); position: relative; word-wrap: break-word; color: #111111;}
.burbuja-mia { background-color: #dcf8c6; align-self: flex-end; border-top-right-radius: 0; }
.burbuja-otro { background-color: #ffffff; align-self: flex-start; border-top-left-radius: 0; }
.wa-autor { font-weight: bold; font-size: 0.75rem; display: block; margin-bottom: 4px; }
.wa-hora { font-size: 0.65rem; color: #888; text-align: right; display: block; margin-top: 4px;}

.chat-input-area { display: flex; padding: 12px; background-color: #f0f0f0; align-items: center;}
.chat-input-area input { flex-grow: 1; padding: 12px 15px; border-radius: 30px; border: none; background: #fff; color: #333; outline: none; font-size: 1rem;}
.wa-btn { background-color: #128c7e; color: white; border: none; border-radius: 50%; width: 45px; height: 45px; margin-left: 10px; cursor: pointer; font-size: 1.2rem; display: flex; justify-content: center; align-items: center; box-shadow: 0 2px 5px rgba(0,0,0,0.2); transition: 0.2s;}
.wa-btn:disabled { background-color: #ccc; }
.wa-btn:hover:not(:disabled) { transform: scale(1.1); background-color: #075e54;}

/* ==========================================
   FOOTER (El toque playero final)
========================================== */
.wave-container { width: 100%; height: 50px; background: var(--fondo-oscuro); overflow: hidden; line-height: 0; margin-top: 4rem;}
.wave-container svg { width: 100%; height: 100%; }
.footer-ruta { background-color: #0b0213; padding: 40px 20px 60px; text-align: center; color: #aaa; }
.footer-logo { font-size: 2rem; font-weight: 900; color: white; margin-bottom: 15px; }
.footer-desc { max-width: 500px; margin: 0 auto 25px; line-height: 1.6; }
.agradecimientos { color: white; font-style: italic; background: rgba(255,255,255,0.05); display: inline-block; padding: 10px 20px; border-radius: 20px;}
.creador-redes { margin-top: 35px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 25px; }
.redes-iconos { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; margin-top: 15px;}
.social-btn { padding: 8px 16px; border-radius: 25px; color: white; text-decoration: none; font-weight: bold; font-size: 0.9rem; transition: 0.3s; display: flex; align-items: center; gap: 6px;}
.social-btn.facebook { background-color: #1877f2; } .social-btn.instagram { background: linear-gradient(45deg, #f09433, #bc1888); } .social-btn.linkedin { background-color: #0077b5; } .social-btn.whatsapp { background-color: #25d366; }
.social-btn:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(255,255,255,0.2); }

/* Planes VIP */
.contenedor-planes { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; margin-top: 30px; }
.tarjeta-plan { background: white; border: 1px solid #eee; border-radius: 20px; padding: 25px; width: 100%; max-width: 260px; text-align: center; box-shadow: 0 5px 15px rgba(0,0,0,0.05); position: relative; display: flex; flex-direction: column; }
.plan-destacado { border: 3px solid var(--acento-vip); transform: scale(1.05); box-shadow: 0 15px 35px rgba(255, 215, 0, 0.3); }
.etiqueta-popular { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: var(--acento-vip); color: black; font-weight: 900; padding: 6px 18px; border-radius: 20px; font-size: 0.85rem;}
.precio-plan { font-size: 2.5rem; font-weight: 900; color: var(--texto-oscuro); margin: 15px 0; }
.precio-plan span { font-size: 1rem; color: #888; font-weight: normal; }
.lista-beneficios { list-style: none; padding: 0; margin: 0 0 25px 0; text-align: left; font-size: 0.9rem; color: var(--texto-gris); flex-grow: 1;}
.lista-beneficios li { margin-bottom: 12px; border-bottom: 1px solid #f5f5f5; padding-bottom: 8px;}
.btn-wompi-plan { display: inline-block; background: #eee; color: #333; padding: 14px; border-radius: 12px; text-decoration: none; font-weight: bold; transition: 0.3s; }
.btn-wompi-plan:hover { background: #ddd; transform: translateY(-2px);}
.btn-wompi-destacado { background: #ff0055; color: white; animation: pulseSlow 2s infinite; }

/* Responsive */
@media (max-width: 768px) {
    .auth-bar { flex-direction: column; height: auto; padding: 10px; justify-content: center; gap: 10px; }
    body { padding-top: 110px; } 
    .hero-section h1 { font-size: 2.8rem; }
    .grid-negocios { grid-template-columns: 1fr; padding: 2rem 1rem; }
    .modal-contenido { width: 95%; padding: 1.5rem; }
    .img-detalle-principal { height: 200px; } 
    .contenedor-planes { flex-direction: column; align-items: center; }
    .tarjeta-plan { max-width: 100%; }
    .plan-destacado { transform: scale(1); border-width: 2px; }
    .chat-widget { width: 100%; right: 0; bottom: 0; border-radius: 20px 20px 0 0; }
}

.oculto { display: none !important; }

/* ==========================================
   NUEVAS FUNCIONES VIP (Glow, Estadísticas, Traductor)
========================================== */

/* 1. Efecto Glow Dorado y Sello de Agua */
@keyframes vipGlow {
    from { box-shadow: 0 0 10px rgba(255, 215, 0, 0.4), inset 0 0 10px rgba(255,215,0,0.05); }
    to { box-shadow: 0 0 25px rgba(255, 215, 0, 0.8), inset 0 0 20px rgba(255,215,0,0.15); }
}

/* AQUÍ ESTÁ LA CORRECCIÓN: Encadenamos las animaciones para que no se quede invisible */
.tarjeta-vip {
    animation: fadeInUp 0.6s forwards, vipGlow 2s infinite alternate 0.6s;
    position: relative;
    border: 2px solid var(--acento-vip);
    opacity: 1; 
}

.tarjeta-vip::before {
    content: '👑 PREMIUM';
    position: absolute;
    top: 40%; left: 50%;
    transform: translate(-50%, -50%) rotate(-25deg);
    font-size: 3.5rem; color: rgba(255, 215, 0, 0.08);
    font-weight: 900; pointer-events: none; z-index: 1;
}

/* 2. Contador de Vistas (Esquina de la tarjeta) */
.badge-vistas {
    position: absolute; bottom: 15px; left: 15px;
    background: rgba(0,0,0,0.8); color: #fff;
    padding: 6px 12px; border-radius: 12px; font-size: 0.85rem;
    z-index: 10; border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
}

/* 3. Panel de Estadísticas (Solo para el Dueño) */
.panel-estadisticas {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    color: white; padding: 20px; border-radius: 15px;
    margin-top: 25px; border-left: 5px solid #25D366;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.panel-estadisticas h4 { margin: 0 0 15px 0; color: var(--acento-vip); font-size: 1.2rem;}
.stat-item { background: rgba(255,255,255,0.05); padding: 10px; border-radius: 8px; margin-bottom: 10px; font-size: 0.95rem; }
.stat-item strong { color: var(--acento-mar); font-size: 1.1rem;}

/* 4. Botón Traductor (Modo Gringo) */
.btn-traductor {
    background: #f0f0f0; color: #333; border: 1px solid #ddd;
    padding: 6px 12px; border-radius: 20px; font-weight: bold;
    cursor: pointer; font-size: 0.85rem; margin-bottom: 10px;
    transition: 0.3s; display: inline-flex; align-items: center; gap: 5px;
}
.btn-traductor:hover { background: #e0e0e0; transform: translateY(-2px); }