/* =============================================
   VARIABLES Y RESET
   ============================================= */
   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

:root {
    --primary: #1a237e;
    --primary-dark: #000051;
    --primary-light: #534bae;
    --accent: #ff6b6b;
    --accent-gold: #ffd54f;
    --text-light: #ffffff;
    --text-dim: rgba(255,255,255,0.8);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

body {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, var(--primary-light) 100%);
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-attachment: fixed;
}

/* =============================================
   LAYOUT PRINCIPAL
   ============================================= */
.header-content {
    max-width: 1200px;
    margin: 0 auto;
}

.tabs-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 1rem;
}

.content-section {
    padding: 0;
    height: 100%;
}

/* =============================================
   HEADER
   ============================================= */
header {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    padding: 1.5rem 1rem;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--accent-gold), #ffeb3b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(255, 213, 79, 0.3);
    font-weight: 700;
}

.tagline {
    font-style: italic;
    opacity: 0.9;
    font-size: 1rem;
    color: var(--text-dim);
    letter-spacing: 1px;
}

/* =============================================
   SISTEMA DE TABS
   ============================================= */
.tabs-nav {
    display: flex;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    margin: 1rem 0;
    padding: 0.5rem;
    box-shadow: var(--glass-shadow);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab-btn {
    flex: 1;
    min-width: 80px;
    padding: 1rem 0.5rem;
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.6s;
}

.tab-btn:hover::before {
    left: 100%;
}

.tab-btn:hover {
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.tab-btn.active {
    color: var(--accent-gold);
    background: rgba(255, 213, 79, 0.1);
    border: 1px solid rgba(255, 213, 79, 0.3);
    box-shadow: 0 4px 15px rgba(255, 213, 79, 0.2);
    transform: translateY(-2px);
}

.tab-icon {
    font-size: 1.4rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.tab-text {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.tab-content {
    flex: 1;
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
}

.tab-pane {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.tab-pane.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

/* =============================================
   CONTENEDORES GLASS
   ============================================= */
.player-container, .requests-container, .iframe-container, .info-section, 
.facebook-group-preview, .ios-install-section {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    margin-bottom: 1.5rem;
    box-shadow: var(--glass-shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.player-container:hover, .requests-container:hover, .iframe-container:hover, 
.info-section:hover, .facebook-group-preview:hover, .ios-install-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* =============================================
   IFRAMES - CORREGIDOS
   ============================================= */
.player-iframe, .requests-iframe, .web-iframe {
    width: 100%;
    border: none;
    background: transparent;
    display: block;
}

/* ALTURAS CORREGIDAS - MÁS GRANDES */
.player-iframe {
    height: 600px; /* Aumentado significativamente */
    min-height: 550px;
    border-radius: 20px;
}

.requests-iframe {
    height: 500px; /* Aumentado significativamente */
    min-height: 450px;
    border-radius: 20px;
}

.iframe-container {
    height: 700px; /* Altura fija grande */
    min-height: 650px;
    border-radius: 20px;
}

.web-iframe {
    height: 100%;
    border-radius: 20px;
}

/* =============================================
   BOTONES
   ============================================= */
.buttons-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    padding: 1rem 2rem;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    min-width: 160px;
    border: none;
    position: relative;
    overflow: hidden;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.btn:active {
    transform: translateY(-1px);
}

.btn-tunein { 
    background: linear-gradient(135deg, #00a8ff, #0097e6);
    color: white;
}

.btn-mytuner { 
    background: linear-gradient(135deg, #ff5722, #e64a19);
    color: white;
}

.btn-facebook { 
    background: linear-gradient(135deg, #1877f2, #166fe5);
    color: white;
}

/* =============================================
   FACEBOOK GROUP
   ============================================= */
.facebook-group-preview {
    padding: 2rem;
    text-align: center;
}

.group-preview-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

.group-icon {
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--accent), #ff5252);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 8px rgba(255, 107, 107, 0.3));
}

.group-info h3 {
    color: var(--accent-gold);
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.group-info p {
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
    font-size: 1rem;
}

.group-preview-content {
    background: rgba(0, 0, 0, 0.2);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    border: 1px solid var(--glass-border);
}

.group-preview-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.group-features {
    text-align: left;
    margin: 1.5rem 0;
    padding-left: 1rem;
}

.group-features li {
    margin-bottom: 1rem;
    line-height: 1.5;
    padding-left: 0.5rem;
    position: relative;
}

.group-features li::before {
    content: '✨';
    position: absolute;
    left: -1.5rem;
}

.btn-facebook-group {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    background: linear-gradient(135deg, #1877f2, #166fe5);
    color: white;
    padding: 1.2rem 2.5rem;
    border-radius: 16px;
    text-decoration: none;
    font-weight: bold;
    margin: 1rem 0;
    transition: all 0.4s ease;
    box-shadow: 0 6px 20px rgba(24, 119, 242, 0.4);
    border: none;
    font-size: 1.1rem;
}

.btn-facebook-group:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #166fe5, #145cbf);
    box-shadow: 0 10px 25px rgba(24, 119, 242, 0.6);
}

.group-note {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 0.8rem;
}

/* =============================================
   SECCIONES DE INFORMACIÓN
   ============================================= */
.info-section {
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.info-section h3 {
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.info-section p {
    line-height: 1.7;
    margin-bottom: 1.2rem;
    color: var(--text-dim);
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease;
    border-radius: 8px;
    padding-left: 1rem;
    padding-right: 1rem;
}

.schedule-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.schedule-time {
    font-weight: 700;
    color: var(--accent-gold);
    font-size: 1rem;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1rem;
    border-radius: 12px;
    transition: background 0.3s ease;
}

.contact-info:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* =============================================
   INSTALACIÓN iOS
   ============================================= */
.ios-install-section {
    padding: 2rem;
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.8), rgba(40, 53, 147, 0.9));
    border: 2px solid var(--accent-gold);
    text-align: center;
}

.ios-install-section h3 {
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
}

.install-steps {
    text-align: left;
    margin: 2rem 0;
}

.install-step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease;
}

.install-step:hover {
    transform: translateX(10px);
}

.step-number {
    background: linear-gradient(135deg, var(--accent-gold), #ffeb3b);
    color: var(--primary-dark);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(255, 213, 79, 0.4);
}

.step-content {
    flex: 1;
}

.step-content strong {
    color: var(--accent-gold);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.step-content span {
    color: var(--text-dim);
    line-height: 1.5;
}

.ios-tip {
    background: rgba(255, 213, 79, 0.15);
    border-left: 4px solid var(--accent-gold);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1.5rem;
    font-style: italic;
    border: 1px solid rgba(255, 213, 79, 0.2);
}

.ios-tip strong {
    color: var(--accent-gold);
}

.ios-install-note {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

/* =============================================
   INSTALACIÓN PWA
   ============================================= */
.install-prompt {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.9), rgba(69, 160, 73, 0.9));
    backdrop-filter: blur(15px);
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    text-align: center;
    display: none;
    animation: fadeIn 0.6s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--glass-shadow);
}

.install-btn {
    background: white;
    color: #4caf50;
    border: none;
    padding: 1rem 2rem;
    border-radius: 16px;
    cursor: pointer;
    font-weight: 700;
    margin-top: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.install-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
}

/* =============================================
   MODALES
   ============================================= */
.ios-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.ios-modal-content {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 24px;
    padding: 2.5rem;
    max-width: 500px;
    width: 100%;
    border: 2px solid var(--accent-gold);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    position: relative;
    animation: modalAppear 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ios-modal-content h3 {
    color: var(--accent-gold);
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.ios-modal-close {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    color: var(--accent-gold);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.ios-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-actions {
    text-align: center;
    margin-top: 1.5rem;
}

.ios-install-btn {
    background: linear-gradient(135deg, var(--accent-gold), #ffeb3b);
    color: var(--primary-dark);
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 16px;
    font-weight: bold;
    cursor: pointer;
    margin: 1rem 0;
    transition: all 0.4s ease;
    box-shadow: 0 6px 20px rgba(255, 213, 79, 0.4);
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
}

.ios-install-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 213, 79, 0.6);
    background: linear-gradient(135deg, #ffeb3b, var(--accent-gold));
}

/* =============================================
   NOTIFICACIONES
   ============================================= */
.update-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
    padding: 1.2rem 1.8rem;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(76, 175, 80, 0.4);
    z-index: 10000;
    display: none;
    animation: slideIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(