:root {
    /* Modo Oscuro por defecto con el nuevo rosado pastel más claro */
    --bg-color: #0d0f12;
    --card-bg: #161b22;
    --card-bg-subtle: #090b0e;
    --accent-color: #ff66b2; 
    --accent-tiktok: #00f2fe;
    --text-main: #ffffff;
    --text-muted: #9da7b3;
    --border-color: rgba(255, 102, 178, 0.25);
    --glow: 0 0 15px rgba(255, 102, 178, 0.35);
    --glow-tiktok: 0 0 15px rgba(0, 242, 254, 0.35);
}

/* Modo Claro Adaptativo */
body.light-mode {
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --card-bg-subtle: #f1f3f5;
    --accent-color: #ff4d94;
    --accent-tiktok: #00b4d8;
    --text-main: #1a1d20;
    --text-muted: #6c757d;
    --border-color: rgba(255, 77, 148, 0.25);
    --glow: 0 4px 15px rgba(255, 77, 148, 0.15);
    --glow-tiktok: 0 4px 15px rgba(0, 180, 216, 0.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { background-color: var(--bg-color); color: var(--text-main); font-family: 'Segoe UI', sans-serif; overflow-x: hidden; transition: background-color 0.3s ease, color 0.3s ease; }

/* Navbar */
.navbar { height: 65px; background-color: var(--card-bg); display: flex; justify-content: space-between; align-items: center; padding: 0 30px; position: fixed; top: 0; width: 100%; z-index: 1000; border-bottom: 2px solid var(--accent-color); transition: background-color 0.3s ease; }
.logo { font-size: 22px; font-weight: 900; letter-spacing: 2px; color: var(--text-main); }
.logo span { color: var(--accent-color); text-shadow: var(--glow); }
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text-main); text-transform: uppercase; font-weight: 600; font-size: 13px; transition: 0.2s; }
.nav-links a:hover { color: var(--accent-color); }
.auth-buttons { display: flex; gap: 10px; align-items: center; }
.btn-login { text-decoration: none; color: var(--text-main); padding: 6px 15px; border-radius: 6px; font-weight: bold; font-size: 13px; border: 1px solid var(--accent-color); transition: 0.2s; }
.btn-login:hover { background: var(--accent-color); color: #fff; box-shadow: var(--glow); }

.theme-toggle-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
}
.theme-toggle-btn:hover {
    background: var(--accent-color);
    color: #fff;
    box-shadow: var(--glow);
}

/* Hero Section (Corregida para que se vea bien la imagen de fondo en ambos modos) */
.hero-section {
    position: relative;
    margin-top: 65px;
    padding: 80px 20px 60px;
    background-image: linear-gradient(rgba(13, 15, 18, 0.75), rgba(13, 15, 18, 0.85)), url('img/fono.png');
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: left;
}

body.light-mode .hero-section {
    background-image: linear-gradient(rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.65)), url('img/fono.png');
}

body.light-mode .hero-title {
    color: #1a1d20;
}

body.light-mode .hero-bio {
    color: #495057;
    font-weight: 500;
}

.hero-content { max-width: 1200px; width: 100%; z-index: 2; }
.hero-subtitle { font-size: 0.9rem; color: var(--accent-color); text-transform: uppercase; letter-spacing: 2px; font-weight: 700; display: block; margin-bottom: 15px; text-shadow: var(--glow); }
.hero-title { font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 900; text-transform: uppercase; letter-spacing: 2px; color: var(--text-main); line-height: 1.1; margin-bottom: 20px; }
.hero-bio { font-size: 1.05rem; line-height: 1.7; color: var(--text-muted); max-width: 850px; margin-bottom: 30px; }
.hero-buttons { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

.btn-primary { display: inline-block; padding: 12px 30px; background: var(--accent-color); color: #fff; text-decoration: none; border-radius: 8px; font-weight: 900; font-size: 0.95rem; text-transform: uppercase; box-shadow: var(--glow); transition: 0.2s; }
.btn-primary:hover { filter: brightness(1.15); transform: translateY(-2px); }

.follower-widget { display: flex; align-items: center; gap: 10px; padding: 10px 20px; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 8px; font-weight: bold; font-size: 0.95rem; color: var(--text-main); }
.kick-dot { width: 10px; height: 10px; background-color: var(--accent-color); border-radius: 50%; box-shadow: var(--glow); animation: pulse 1.5s infinite; }

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

/* Main Container & Stream */
.main-container { display: flex; max-width: 1600px; margin: 15px auto; padding: 0 20px; gap: 15px; height: 52vh; min-height: 400px; }
.video-container { flex: 0 0 76%; background: #000; border-radius: 12px; overflow: hidden; border: 1px solid var(--border-color); }
.video-container iframe { width: 100%; height: 100%; }

.chat-sidebar { flex: 0 0 24%; background: var(--card-bg); border-radius: 12px; padding: 0; display: flex; align-items: center; justify-content: center; text-align: center; border: 1px solid var(--border-color); overflow: hidden; }
.chat-iframe { border: none; border-radius: 12px; display: block; width: 100%; height: 100%; }

/* Sections */
.content-section { max-width: 1600px; margin: 35px auto; padding: 0 20px; }
.content-section h2 { font-size: 1.5rem; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-main); border-left: 4px solid var(--accent-color); padding-left: 10px; }

/* YouTube & Clips Grid */
.youtube-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.video-card { background-color: var(--card-bg); border-radius: 14px; padding: 15px; display: flex; flex-direction: column; align-items: center; border: 1px solid var(--border-color); box-shadow: var(--glow); transition: 0.3s; }
.video-card:hover { border-color: var(--accent-color); transform: translateY(-3px); }
.video-thumb { width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 10px; margin-bottom: 15px; border: 1px solid var(--border-color); overflow: hidden; position: relative; }
.video-thumb iframe { position: absolute; top: 0; left: 0; width: 100% !important; height: 100% !important; border: none !important; }
.watch-btn { display: inline-block; width: 100%; text-align: center; padding: 8px 20px; background: var(--accent-color); color: white; text-decoration: none; border-radius: 8px; font-weight: bold; font-size: 0.9rem; box-shadow: var(--glow); transition: 0.2s; }
.watch-btn:hover { filter: brightness(1.15); }

/* Social Feed (Instagram & TikTok) */
.social-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 25px; }
.social-column { background-color: var(--card-bg); border-radius: 16px; padding: 20px; border: 1px solid var(--border-color); box-shadow: var(--glow); display: flex; flex-direction: column; }
.social-column.tiktok-col { border-color: rgba(0, 242, 254, 0.3); box-shadow: var(--glow-tiktok); }
.social-column h3 { font-size: 1.2rem; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; text-align: center; color: var(--accent-color); }
.social-column.tiktok-col h3 { color: var(--accent-tiktok); }

.social-feed-box {
    width: 100%;
    height: 560px;
    background: var(--card-bg-subtle);
    border-radius: 12px;
    overflow: hidden !important;
    border: 1px solid var(--border-color);
    position: relative;
}

.social-feed-box iframe {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    background: transparent !important;
    overflow: hidden !important;
    transform: scale(1.02);
    transform-origin: top center;
}

/* YouTube Compacto */
.youtube-wrapper { border-color: var(--border-color); padding: 15px; border-radius: 16px; background-color: var(--card-bg); margin-top: 15px; }
.youtube-box-compact { width: 100%; height: 380px; border-radius: 12px; overflow: hidden; background: var(--card-bg-subtle); }
.youtube-iframe-compact { display: block; width: 100%; height: 100%; border: none; }

/* Galería Grid */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 20px; }
.gallery-card { background-color: var(--card-bg); border-radius: 14px; overflow: hidden; border: 1px solid var(--border-color); box-shadow: var(--glow); transition: transform 0.3s ease; }
.gallery-card:hover { transform: translateY(-5px); border-color: var(--accent-color); }
.gallery-card img { width: 100%; height: 280px; object-fit: cover; display: block; }
.gallery-card-info { padding: 12px; display: flex; justify-content: space-between; align-items: center; background: var(--card-bg-subtle); }

.like-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: bold;
    transition: 0.2s;
}
.like-btn:hover, .like-btn.liked {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
    box-shadow: var(--glow);
}

/* Upload Container */
.upload-container { background-color: var(--card-bg); border: 2px dashed var(--border-color); border-radius: 16px; padding: 30px; text-align: center; margin-bottom: 30px; transition: 0.3s; }
.upload-container:hover, .upload-container.dragover { border-color: var(--accent-color); box-shadow: var(--glow); }
.upload-input { display: none; }
.upload-label { display: inline-block; padding: 12px 25px; background: var(--accent-color); color: #fff; font-weight: bold; border-radius: 8px; cursor: pointer; box-shadow: var(--glow); transition: 0.2s; text-transform: uppercase; }
.upload-label:hover { filter: brightness(1.15); transform: translateY(-2px); }

/* Lightbox */
#lightbox { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(5, 7, 10, 0.9); backdrop-filter: blur(8px); display: none; justify-content: center; align-items: center; z-index: 9999; padding: 20px; }
#lightbox img { max-width: 85%; max-height: 85vh; object-fit: contain; border-radius: 12px; border: 2px solid var(--accent-color); box-shadow: var(--glow); }

/* Muro de Saludos (Centrado y simétrico) */
.muro-form-container {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    margin: 0 auto 35px auto;
    max-width: 750px;
    box-shadow: var(--glow);
}

.muro-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    align-items: center;
}

.muro-form input, 
.muro-form textarea {
    width: 100%;
    background: var(--card-bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-main);
    padding: 12px 16px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.muro-form input:focus, 
.muro-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: var(--glow);
}

.muro-form .btn-primary {
    align-self: center;
    padding: 12px 40px;
    margin-top: 5px;
}

.muro-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.muro-card { background-color: var(--card-bg); border: 1px solid var(--border-color); border-radius: 14px; padding: 20px; box-shadow: var(--glow); }
.muro-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border-color); }
.muro-autor { font-weight: 900; color: var(--accent-color); text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px; }
.muro-fecha { font-size: 0.75rem; color: var(--text-muted); }
.muro-texto { font-size: 0.95rem; line-height: 1.6; color: var(--text-main); word-wrap: break-word; }

/* Footer */
.main-footer { width: 100%; background-color: var(--card-bg); padding: 40px 0; margin-top: 60px; display: flex; justify-content: center; align-items: center; border-top: 1px solid var(--border-color); }
.footer-container { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; width: 100%; }
.footer-social-icons { display: flex; justify-content: center; align-items: center; gap: 15px; flex-wrap: wrap; }
.footer-social-icons .social-icon { display: flex; justify-content: center; align-items: center; width: 45px; height: 45px; border: 1px solid var(--border-color); color: var(--text-muted); text-decoration: none; font-size: 1.1rem; font-weight: bold; border-radius: 6px; transition: all 0.3s ease; }
.footer-social-icons .social-icon:hover { border-color: var(--accent-color); color: var(--accent-color); transform: translateY(-3px); box-shadow: var(--glow); }
.footer-copyright { color: var(--text-muted); font-size: 0.85rem; letter-spacing: 1px; text-align: center; margin-top: 10px; text-transform: uppercase; }

@media (max-width: 1024px) {
    .main-container { flex-direction: column; height: auto; }
    .video-container { flex: 0 0 100%; aspect-ratio: 16/9; min-height: 300px; }
    .chat-sidebar { height: 350px; }
    .social-grid { grid-template-columns: 1fr; }
    .youtube-grid { grid-template-columns: 1fr; }
}