/* ===================================
   LECTORES PROMEDIO - ESTILOS CSS
   ================================== */

/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #000000;
    color: #FFFFFF;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   PRIMERA SECCIÓN - HEADER
   ================================== */

.header-section {
    padding: 60px 0;
    text-align: center;
    background-color: #000000;
}

.logo-container {
    width: 120px;
    height: 120px;
    background-color: #FFFFFF;
    border-radius: 50%;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(238, 232, 21, 0.3);
    transition: transform 0.3s ease;
}

.logo-container:hover {
    transform: scale(1.05);
}

.logo-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.main-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.description {
    font-size: 1.2rem;
    color: #CCCCCC;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.links-container {
    max-width: 500px;
    margin: 0 auto;
}

.link-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #eee815;
    color: #000000;
    text-decoration: none;
    padding: 15px 25px;
    margin-bottom: 15px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(238, 232, 21, 0.2);
    border: 2px solid transparent;
}

.link-button:hover {
    background-color: #d4d014;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(238, 232, 21, 0.4);
    border-color: #FFFFFF;
}

.link-button:active {
    transform: translateY(0);
}

.link-content {
    display: flex;
    align-items: center;
    flex: 1;
}

.link-icon {
    width: 20px;
    height: 20px;
    margin-right: 15px;
    flex-shrink: 0;
}

.external-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.7;
}

/* ===================================
   SEGUNDA SECCIÓN - PODCASTS
   ================================== */

.podcasts-section {
    padding: 60px 0;
    background-color: #000000;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    color: #eee815;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.podcasts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.podcast-card {
    background-color: #1a1a1a;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.podcast-card:hover {
    transform: translateY(-5px);
    border-color: #eee815;
    box-shadow: 0 8px 25px rgba(238, 232, 21, 0.2);
}

.podcast-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.podcast-card:hover .podcast-thumbnail {
    transform: scale(1.05);
}

.podcast-content {
    padding: 20px;
}

.podcast-title {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #FFFFFF;
    min-height: 50px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.podcast-button {
    background-color: #eee815;
    color: #000000;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    width: 100%;
    text-align: center;
}

.podcast-button:hover {
    background-color: #d4d014;
    transform: translateY(-2px);
    border-color: #FFFFFF;
}

/* ===================================
   BANNER INTERMEDIO
   ================================== */

.banner-section {
    padding: 40px 0;
    background-color: #000000;
}

.banner {
    background: linear-gradient(135deg, #eee815 0%, #d4d014 100%);
    color: #000000;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(238, 232, 21, 0.3);
    border: 2px solid transparent;
}

.banner:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 30px rgba(238, 232, 21, 0.5);
    border-color: #FFFFFF;
}

.banner h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: bold;
}

.banner p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ===================================
   TERCERA SECCIÓN - INSTAGRAM
   ================================== */

.instagram-section {
    padding: 60px 0;
    background-color: #000000;
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.instagram-post {
    aspect-ratio: 4/5;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid transparent;
}

.instagram-post:hover {
    transform: scale(1.05);
    border-color: #eee815;
    box-shadow: 0 6px 20px rgba(238, 232, 21, 0.3);
}

.instagram-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.instagram-post:hover img {
    transform: scale(1.1);
}

/* ===================================
   REDES SOCIALES
   ================================== */

.social-section {
    padding: 60px 0;
    text-align: center;
    background-color: #000000;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.social-icon {
    width: 50px;
    height: 50px;
    background-color: #333333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.social-icon:hover {
    background-color: #eee815;
    color: #000000;
    transform: translateY(-3px);
    border-color: #FFFFFF;
    box-shadow: 0 6px 20px rgba(238, 232, 21, 0.4);
}

.social-icon svg {
    width: 24px;
    height: 24px;
}

/* ===================================
   FOOTER - SPOTIFY
   ================================== */

.footer-section {
    padding: 60px 0;
    text-align: center;
    background-color: #000000;
}

.spotify-embed {
    max-width: 624px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(238, 232, 21, 0.2);
    border: 2px solid #333333;
    transition: all 0.3s ease;
}

.spotify-embed:hover {
    border-color: #eee815;
    box-shadow: 0 12px 40px rgba(238, 232, 21, 0.3);
}

.spotify-embed iframe {
    width: 100%;
    max-width: 624px;
    height: 351px;
    border: none;
    border-radius: 12px;
}

/* ===================================
   UTILIDADES
   ================================== */

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

/* ===================================
   ANIMACIONES
   ================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* ===================================
   RESPONSIVE DESIGN
   ================================== */

/* Tablets */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .main-title {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .podcasts-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
}

/* Móviles grandes */
@media (max-width: 768px) {
    .header-section {
        padding: 40px 0;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .description {
        font-size: 1.1rem;
        padding: 0 10px;
    }
    
    .links-container {
        max-width: 100%;
        padding: 0 10px;
    }
    
    .link-button {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    .podcasts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .social-icons {
        gap: 15px;
    }
    
    .social-icon {
        width: 45px;
        height: 45px;
    }
    
    .banner {
        padding: 30px 20px;
    }
    
    .banner h3 {
        font-size: 1.5rem;
    }
    
    .banner p {
        font-size: 1rem;
    }
    
    .spotify-embed iframe {
        height: 280px;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .logo-container {
        width: 100px;
        height: 100px;
    }
    
    .main-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .link-button {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .link-icon {
        width: 18px;
        height: 18px;
        margin-right: 10px;
    }
    
    .external-icon {
        width: 14px;
        height: 14px;
    }
    
    .podcast-content {
        padding: 15px;
    }
    
    .podcast-title {
        font-size: 1rem;
        min-height: 45px;
    }
    
    .instagram-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
    }
    
    .social-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .spotify-embed iframe {
        height: 250px;
    }
}

/* ===================================
   ESTADOS DE CARGA
   ================================== */

.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #eee815;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===================================
   ACCESIBILIDAD
   ================================== */

/* Focus states para navegación por teclado */
.link-button:focus,
.podcast-button:focus,
.social-icon:focus,
.banner:focus {
    outline: 3px solid #eee815;
    outline-offset: 2px;
}

/* Reducir movimiento para usuarios que lo prefieren */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Alto contraste */
@media (prefers-contrast: high) {
    .link-button {
        border: 3px solid #FFFFFF;
    }
    
    .podcast-card {
        border: 2px solid #FFFFFF;
    }
    
    .social-icon {
        border: 2px solid #FFFFFF;
    }
}

/* ===================================
   PRINT STYLES
   ================================== */

@media print {
    body {
        background-color: white !important;
        color: black !important;
    }
    
    .link-button,
    .podcast-button,
    .social-icon {
        background-color: white !important;
        color: black !important;
        border: 1px solid black !important;
    }
    
    .spotify-embed {
        display: none;
    }
}