/**
 * No Estoy Podcast - Estilos Cinematográficos
 * Archivo: assets/css/style.css
 */

/* ============================================
   VARIABLES CSS
   ============================================ */
:root {
    --negro-profundo: #0A0A0A;
    --rojo-sangre: #9B1F2E;
    --dorado-vinilo: #C9A04A;
    --crema-antiguo: #F4F0E8;
    --carbon: #1F1F1F;
    
    --font-cinzel: 'Cinzel', serif;
    --font-playfair: 'Playfair Display', serif;
    --font-cormorant: 'Cormorant Garamond', serif;
    --font-inter: 'Inter', sans-serif;
}

/* ============================================
   RESET Y BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--negro-profundo);
    color: var(--crema-antiguo);
    font-family: var(--font-inter);
    overflow-x: hidden;
}

/* Selection */
::selection {
    background: var(--rojo-sangre);
    color: var(--crema-antiguo);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--negro-profundo);
}

::-webkit-scrollbar-thumb {
    background: var(--carbon);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--rojo-sangre);
}

/* ============================================
   FILM GRAIN OVERLAY
   ============================================ */
.film-grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar-pill {
    width: calc(100% - 2rem);
    max-width: 960px;
    background: transparent;
    left: 50% !important;
    transform: translateX(-50%);
}

.navbar-pill.scrolled {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(155, 31, 46, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    gap: 1rem;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--crema-antiguo);
    transition: opacity 0.3s;
}

.navbar-logo:hover {
    opacity: 0.8;
}

.navbar-menu {
    list-style: none;
}

.nav-link {
    font-family: var(--font-inter);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--crema-antiguo);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.3s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--rojo-sangre);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--rojo-sangre);
}

.nav-link:hover::after {
    width: 100%;
}

/* ============================================
   BOTONES MAGNÉTICOS
   ============================================ */
.btn-magnetico {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-inter);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 9999px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-magnetico::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-magnetico:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--rojo-sangre);
    color: var(--crema-antiguo);
}

.btn-primary:hover {
    background: #b32436;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(155, 31, 46, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--crema-antiguo);
    border: 1px solid rgba(244, 240, 232, 0.3);
}

.btn-outline:hover {
    border-color: var(--rojo-sangre);
    color: var(--rojo-sangre);
}

/* Input magnético */
.input-magnetico {
    transition: all 0.3s ease;
}

.input-magnetico:focus {
    box-shadow: 0 0 0 3px rgba(155, 31, 46, 0.2);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    height: 75vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(to top, 
            var(--negro-profundo) 0%, 
            rgba(10, 10, 10, 0.7) 40%,
            rgba(155, 31, 46, 0.3) 100%
        ),
        url('assets/img/hero-bg.jpg') center/cover no-repeat;
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, var(--negro-profundo), transparent);
}

/* Vinilo animado */
.vinyl-record {
    position: absolute;
    right: 10%;
    top: 50%;
    margin-top: -150px; /* Instead of transform, to allow spin animation */
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: 
        /* Conic gradient for light reflection highlights (sheen) */
        conic-gradient(
            from 0deg,
            transparent 0deg,
            rgba(255, 255, 255, 0.12) 45deg,
            transparent 90deg,
            transparent 180deg,
            rgba(255, 255, 255, 0.12) 225deg,
            transparent 270deg,
            transparent 360deg
        ),
        /* Repeating radial gradient for the record's physical grooves */
        repeating-radial-gradient(
            circle at center,
            #151515,
            #151515 2px,
            #0d0d0d 3px,
            #0d0d0d 5px
        );
    box-shadow: 
        0 0 60px rgba(155, 31, 46, 0.3),
        inset 0 0 40px rgba(0, 0, 0, 0.8);
    animation: spin 10s linear infinite;
    opacity: 0.7;
}

.vinyl-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--dorado-vinilo), #8b6914);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
    border: 3px double rgba(10, 10, 10, 0.25);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    pointer-events: none;
    z-index: 2;
}

.label-text-top,
.label-text-bottom {
    font-family: var(--font-cinzel);
    font-weight: 800;
    color: #0A0A0A;
    text-transform: uppercase;
    line-height: 1.1;
}

.label-text-top {
    font-size: 9px;
    letter-spacing: 0.12em;
    margin-top: 3px;
}

.label-text-bottom {
    font-size: 7px;
    letter-spacing: 0.22em;
    opacity: 0.85;
    margin-bottom: 3px;
}

.vinyl-record::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--negro-profundo);
    box-shadow: 0 1px 2px rgba(255, 255, 255, 0.1);
    z-index: 3;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 4rem;
    width: 100%;
}

.hero-label {
    font-family: var(--font-inter);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--rojo-sangre);
    margin-bottom: 1rem;
    display: block;
}

.hero-title {
    font-family: var(--font-playfair);
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 700;
    line-height: 0.95;
    color: var(--crema-antiguo);
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-family: var(--font-cormorant);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-style: italic;
    color: var(--rojo-sangre);
    font-weight: 400;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--crema-antiguo);
    opacity: 0.6;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ============================================
   TARJETAS CINEMATOGRÁFICAS
   ============================================ */
.tarjeta-cinematografica {
    position: relative;
    background: var(--carbon);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
}

.tarjeta-cinematografica:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(155, 31, 46, 0.3);
}

.tarjeta-imagen {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.tarjeta-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

/* Fallbacks de altura para las tarjetas en caso de fallar Tailwind JIT */
.premium-card-image-wrap {
    min-height: 400px;
}
@media (min-width: 768px) {
    .premium-card-image-wrap {
        min-height: 500px;
    }
}
a.premium-card.min-h-\[250px\] {
    min-height: 250px;
}

.tarjeta-cinematografica:hover .tarjeta-imagen img {
    transform: scale(1.05);
}

.tarjeta-imagen::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, var(--carbon), transparent);
}

.tarjeta-contenido {
    padding: 1.5rem;
}

.tarjeta-categoria {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--rojo-sangre);
    margin-bottom: 0.5rem;
}

.tarjeta-titulo {
    font-family: var(--font-playfair);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--crema-antiguo);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.tarjeta-fecha {
    font-size: 0.75rem;
    color: #666;
}

/* ============================================
   SECCIÓN ANÁLISIS / RESEÑAS
   ============================================ */
.analisis-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.analisis-grid > .resena-card {
    flex: 1 1 300px;
    max-width: 360px;
    width: 100%;
}

.resena-card {
    background: var(--carbon);
    border-radius: 1.5rem;
    padding: 1.5rem;
    transition: all 0.4s ease;
    border: 1px solid transparent;
}

.resena-card:hover {
    border-color: rgba(155, 31, 46, 0.3);
    transform: translateY(-4px);
}

.resena-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.resena-caratula {
    width: 80px;
    height: 80px;
    border-radius: 0.75rem;
    object-fit: cover;
    flex-shrink: 0;
}

.resena-info {
    flex: 1;
}

.resena-artista {
    font-size: 0.875rem;
    color: var(--dorado-vinilo);
    margin-bottom: 0.25rem;
}

.resena-titulo {
    font-family: var(--font-playfair);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--crema-antiguo);
}

.estrellas {
    display: flex;
    gap: 0.25rem;
    margin: 0;
    align-items: center;
    font-size: 0.8rem;
    line-height: 1;
}

.estrella-filled {
    color: var(--dorado-vinilo);
}

.estrella-empty {
    color: #333;
}

.resena-excerpt {
    font-size: 0.875rem;
    color: #888;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   MANIFIESTO SECTION
   ============================================ */
.manifiesto-section {
    position: relative;
    padding: 8rem 0;
    background: var(--carbon);
    overflow: hidden;
}

.manifiesto-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
}

.manifiesto-content {
    position: relative;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.manifiesto-texto {
    font-family: var(--font-cormorant);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-style: italic;
    line-height: 1.4;
    color: var(--crema-antiguo);
}

.manifiesto-texto .enfatisis {
    color: var(--rojo-sangre);
    font-weight: 600;
}

/* ============================================
   SECCIÓN NEWSLETTER
   ============================================ */
.newsletter-form {
    position: relative;
}

.newsletter-form input {
    transition: all 0.3s ease;
}

/* ============================================
   SOCIAL ICONS
   ============================================ */
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--negro-profundo);
    border: 1px solid #333;
    color: var(--crema-antiguo);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--rojo-sangre);
    border-color: var(--rojo-sangre);
    transform: translateY(-3px);
}

/* ============================================
   ANIMACIONES DE SCROLL
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger delays */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

/* ============================================
   MOBILE MENU
   ============================================ */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-overlay.hidden {
    display: none !important;
}

.mobile-menu {
    list-style: none;
    text-align: center;
}

.mobile-nav-link {
    display: block;
    font-family: var(--font-playfair);
    font-size: 2rem;
    color: var(--crema-antiguo);
    text-decoration: none;
    padding: 1rem;
    transition: color 0.3s;
}

.mobile-nav-link:hover {
    color: var(--rojo-sangre);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero-content {
        padding: 2rem;
    }
    
    .vinyl-record {
        display: none;
    }
    
    .tarjeta-cinematografica {
        margin-bottom: 1rem;
    }
    
    .manifiesto-texto {
        font-size: 1.75rem;
    }
}

/* ============================================
   UTILIDADES
   ============================================ */
.text-gradient {
    background: linear-gradient(135deg, var(--rojo-sangre), var(--dorado-vinilo));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.border-glow {
    box-shadow: 0 0 20px rgba(155, 31, 46, 0.3);
}

/* ============================================
   ACCESIBILIDAD
   ============================================ */

/* Skip Link - Para navegación por teclado */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--rojo-sangre);
    color: var(--crema-antiguo);
    padding: 8px 16px;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Reduced Motion - Respetar preferencias del usuario */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .vinyl-record {
        animation: none !important;
    }
    
    .scroll-indicator {
        animation: none !important;
    }
    
    .fade-in,
    .fade-in-left,
    .fade-in-right {
        opacity: 1 !important;
        transform: none !important;
    }
    
    .film-grain {
        display: none;
    }
}

/* Focus visible para accesibilidad */
:focus-visible {
    outline: 2px solid var(--rojo-sangre);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid var(--dorado-vinilo);
    outline-offset: 2px;
}

/* Alto contraste para pantalla */
@media (prefers-contrast: high) {
    :root {
        --negro-profundo: #000000;
        --crema-antiguo: #ffffff;
    }
    
    .btn-primary {
        border: 2px solid var(--crema-antiguo);
    }
}