body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; margin: 0; background-color: #f4f4f9; }
.navbar { display: flex; justify-content: space-between; padding: 1rem 5%; background-color: #333; color: white; align-items: center; }
.tabs { display: flex; gap: 15px; }
.tab-button {
    text-decoration: none;
    color: white;
    padding: 10px 20px;
    background-color: #464;
    border-radius: 20px;
    transition: 0.3s;
    
    /* Centrado Vertical y Horizontal */
    display: flex;
    align-items: center;    /* Centra verticalmente */
    justify-content: center; /* Centra horizontalmente */
    height: 40px;           /* Altura fija opcional para asegurar uniformidad */
}

.tab-button:hover {
    background-color: #009bff;
}

.grid-productos { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; padding: 2rem; }
.card { background: white; padding: 1.5rem; border-radius: 10px; text-align: center; box-shadow: 0 4px 6px rgba(0,0,0,0.1); transition: 0.3s; }
.card:hover { transform: translateY(-5px); }
.card img { max-width: 100%; height: 150px; object-fit: cover; }
.precio { font-size: 1.2rem; color: #007bff; font-weight: bold; }
.buy-button { background-color: #28a745; color: white; border: none; padding: 10px 20px; border-radius: 5px; cursor: pointer; }
:root {
    --primary: #6366f1;
    --accent: #ec4899;
    --dark: #0f172a;
    --light: #f8fafc;
    --glass: rgba(255, 255, 255, 0.8);
}

 

/* Navbar Tabs */
.navbar {
    background: var(--glass);
    backdrop-filter: blur(10px);
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid rgba(255,255,255,0.3);
}

.nav-tabs {
    display: flex;
    gap: 10px;
    background: #e2e8f0;
    padding: 5px;
    border-radius: 50px;
}

.tab-btn {
    text-decoration: none;
    padding: 10px 25px;
    border-radius: 40px;
    color: #64748b;
    font-weight: 600;
    transition: 0.3s;
}

.tab-btn.active, .tab-btn:hover {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Grid y Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 2rem; }
.hero { text-align: center; padding: 3rem 1rem; }
.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 2rem; 
}

/* Efecto FLIP (Giro 3D) */
.product-card {
    background-color: transparent;
    width: 100%;
    height: 450px;
    perspective: 1000px; /* Necesario para el efecto 3D */
    cursor: pointer;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

/* Clase que se activa con el clic */
.product-card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.card-front {
    background: white;
}

.card-front img {
    width: 100%;
    height: 70%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .card-front img {
    transform: scale(1.1); /* Efecto zoom al pasar el mouse */
}

.info-front { padding: 1.5rem; text-align: center; }

/* Parte de atrás de la tarjeta */
.card-back {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
}

.card-back h3 { margin-top: 0; }
.card-back ul { text-align: left; font-size: 0.8rem; list-style: none; padding: 0; }
.price { font-size: 2rem; font-weight: bold; margin: 1rem 0; }

.buy-now {
    background: white;
    color: var(--primary);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
}

.buy-now:hover { transform: scale(1.1); background: var(--dark); color: white; }

.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    z-index: 10;
}
/* Estilo para el botón de la página actual */
.tab-button.active {
    background: var(--primary); /* El color que elijas */
    color: white !important;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}
.apps-showcase { padding: 4rem 2rem; max-width: 1200px; margin: auto; }
.header-apps { text-align: center; margin-bottom: 4rem; }

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.app-card {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.app-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }

.app-icon {
    width: 70px; height: 70px;
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; margin-bottom: 1.5rem;
}

.status {
    font-size: 0.7rem; font-weight: 800; text-transform: uppercase;
    color: #94a3b8; letter-spacing: 1px;
}

.status.highlight { color: #6366f1; }

.app-info h3 { font-size: 1.5rem; margin: 0.5rem 0; color: #1e293b; }
.app-info p { color: #64748b; line-height: 1.6; }

.tags { display: flex; gap: 8px; margin-top: 1rem; }
.tags span {
    background: #f1f5f9; padding: 4px 12px;
    border-radius: 50px; font-size: 0.75rem; color: #475569;
}

/* Estilo especial para la de obras grandes */
.featured-app { border: 2px solid #1e293b; position: relative; }
.featured-app::after {
    content: "MÁS POTENTE";
    position: absolute; top: -12px; right: 20px;
    background: #1e293b; color: white; padding: 4px 12px;
    font-size: 0.6rem; border-radius: 4px;
}
.radio-player-container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 15px;
    border-left: 1px solid #e2e8f0;
    margin-left: 10px;
}

.play-btn-circle {
    width: 85px;
    height: 65px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.play-btn-circle:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

.play-btn-circle.playing {
    background: #ef4444; /* Color rojo cuando suena */
    animation: pulse-red 2s infinite;
}

/* Punto de "En Vivo" */
.live-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}

.radio-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: #475569;
}

@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
/* Efecto de texto desplazándose */
.radio-info-scroll { width: 150px; overflow: hidden; }
.ticker-wrap { white-space: nowrap; overflow: hidden; }
.ticker-item {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 10s linear infinite;
    font-size: 0.8rem;
    font-weight: 600;
}

@keyframes marquee {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}

/* Botón de Publicidad en radio.html */
.ads-banner {
    background: linear-gradient(135deg, #1e293b, #334155);
    color: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    margin-top: 3rem;
}

.btn-ads {
    background: #d4af37;
    color: #1a1a1a;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 1rem;
}
.ads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 2rem;
}

.ad-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    transition: 0.3s;
}

.ad-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.program-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.program-table tr {
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.program-table td {
    padding: 15px;
    border-radius: 8px;
}
.program-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    margin-top: 2rem;
}

.programa-row {
    background: white;
    transition: all 0.4s ease;
    border-radius: 12px;
}

.programa-row td {
    padding: 20px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

/* ESTADO ACTIVO: El programa que suena ahora */
.al-aire-activo {
    background: #fffbeb !important; /* Fondo crema suave */
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.15);
    border: 1px solid #f59e0b !important;
}

.al-aire-activo .status-celda .badge-vivo {
    display: inline-block;
    background: #ef4444;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
    animation: blink 1.5s infinite;
}

.badge-vivo { display: none; } /* Oculto por defecto */

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}
.semana-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 15px;
    padding: 2rem;
}

.dia-col { background: #f8fafc; border-radius: 15px; padding: 10px; min-height: 400px; }
.dia-nombre { display: block; text-align: center; font-weight: 800; margin-bottom: 1rem; color: #64748b; }

.curso-card {
    background: white;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 10px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: 0.3s;
    border-left: 4px solid #6366f1;
}

.curso-card:hover { transform: scale(1.05); }

/* Estilo para fechas especiales */
.evento-especial {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: white;
    border: none;
}

.badge-special {
    font-size: 0.6rem;
    background: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 10px;
    margin-top: 5px;
}
/* Estilos del Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
}

.modal-content {
    background: white;
    width: 90%; max-width: 500px;
    margin: 10% auto;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    background: var(--primary);
    color: white;
    padding: 2rem;
}

.modal-tag {
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.9rem;
}

.modal-body { padding: 2rem; }
.modal-body h3 { margin-top: 0; color: var(--primary); font-size: 1.1rem; }
.modal-body p { line-height: 1.6; color: #64748b; }

.close-modal {
    position: absolute; right: 20px; top: 15px;
    color: white; font-size: 2rem; cursor: pointer;
}

.btn-inscripcion {
    width: 100%; padding: 15px;
    border: none; border-radius: 12px;
    background: var(--dark); color: white;
    font-weight: bold; cursor: pointer; margin-top: 1rem;
}
.login-btn {
    background-color: var(--dark) !important;
    color: white !important;
    border: 2px solid transparent;
}

.login-btn:hover {
    background-color: var(--primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}
.banner-container {
    display: flex;
    gap: 20px;
    margin: 20px;
    font-family: Arial, sans-serif;
}

.banner {
    padding: 20px;
    border-radius: 10px;
    color: white;
    width: 300px;
}

/* Banner Normal */
.banner-normal {
    background-color: #3498db; /* Azul */
}

/* Banner Exclusivo (Radio/Revista/Web) */
.banner-exclusivo {
    background-color: #e74c3c; /* Rojo brillante */
    border: 4px solid #c0392b;
    font-weight: bold;
    animation: flash 1s infinite alternate;
}

@keyframes flash {
    from { box-shadow: 0 0 5px #e74c3c; }
    to { box-shadow: 0 0 20px #e74c3c; }
}
 
/* Estilo del fondo del modal (oscurece la web) */
.modal-overlay {
    display: none; /* OCULTO POR DEFECTO */
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

/* Caja blanca del modal */
.modal-contenido {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    position: relative;
    color: #333;
}
        /* Estilos necesarios para la nueva funcionalidad */
        .contenedor-publicidad-vertical {
            display: flex;
            flex-direction: column;
            gap: 15px;
            margin-bottom: 20px;
        }
        .banner {
            height: 180px;
            background-size: cover;
            background-position: center;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            cursor: pointer;
            transition: transform 0.3s;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
        }
        .banner:hover { transform: scale(1.01); }
        
        .modal-overlay {
            display: none;
            position: fixed;
            top:0; left:0; width:100%; height:100%;
            background: rgba(0,0,0,0.8);
            z-index: 9999;
            justify-content: center;
            align-items: center;
        }
        .modal-contenido {
            background: white;
            padding: 25px;
            border-radius: 12px;
            width: 90%;
            max-width: 450px;
            max-height: 90vh;
            overflow-y: auto;
            color: #333;
            position: relative;
        }
        .cerrar {
            position: absolute;
            top: 10px; right: 15px;
            font-size: 30px;
            cursor: pointer;
            color: #666;
        }
        .input-form {
            width: 100%;
            padding: 10px;
            margin-bottom: 10px;
            border: 1px solid #ccc;
            border-radius: 5px;
        }
        .btn-whatsapp {
            background: #25d366;
            color: white;
            border: none;
            padding: 12px;
            width: 100%;
            border-radius: 8px;
            font-weight: bold;
            cursor: pointer;
            text-decoration: none;
            display: block;
            text-align: center;
        }
.cerrar {
    position: absolute;
    top: 10px; right: 15px;
    font-size: 25px;
    cursor: pointer;
}

.btn-whatsapp {
    display: block;
    background: #25d366;
    color: white;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 15px;
}



