/**
 * REP VIDEO - Estilos Globales V2.0
 * Incluye maquetación base y componentes de la App Trophy
 */

/* --- Variables y Resets --- */
:root { 
    --red: #bc0011; 
    --black: #0a0a0a; 
    --white: #ffffff; 
    --light-gray: #f2f2f2; 
    --dark-gray: #333333; 
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    scroll-behavior: smooth; 
}

body { 
    font-family: 'Roboto', sans-serif; 
    background: var(--white); 
    color: var(--black); 
    line-height: 1.6; 
    overflow-x: hidden; 
}

h1, h2, h3, .oswald { 
    font-family: 'Oswald', sans-serif; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
}

/* --- Navegación Superior --- */
nav { 
    padding: 0.5rem 8%; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    background: var(--white); 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
    position: fixed; 
    width: 100%; 
    top: 0; 
    z-index: 1000; 
}

.logo { 
    font-size: 1.2rem; 
    font-weight: 700; 
    color: var(--black); 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    text-decoration: none; 
}

.logo img { height: 40px; }
.nav-right { display: flex; align-items: center; gap: 25px; }

.header-social { 
    display: flex; 
    gap: 12px; 
    border-right: 1px solid #ddd; 
    padding-right: 20px; 
}

.header-social a { 
    color: var(--black); 
    text-decoration: none; 
    font-family: 'Oswald'; 
    font-size: 0.7rem; 
    opacity: 0.7; 
    transition: 0.3s; 
}

.header-social a:hover { color: var(--red); opacity: 1; }

.lang-switch a { 
    text-decoration: none; 
    font-family: 'Oswald'; 
    font-size: 0.7rem; 
    color: var(--black); 
    margin-left: 5px; 
}

.lang-switch a span { 
    background: #eee; 
    width: 28px; 
    height: 28px; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 50%; 
    font-size: 0.6rem; 
}

.lang-switch a.active span { background: var(--red); color: white; }

/* Enlace Trophy en Menú Nav */
.btn-nav-trophy {
    background: var(--red);
    color: var(--white) !important;
    padding: 6px 14px;
    border-radius: 4px;
    font-family: 'Oswald', sans-serif;
    font-size: 0.75rem;
    text-decoration: none;
    transition: 0.3s ease;
    box-shadow: 0 2px 8px rgba(188, 0, 17, 0.3);
}

.btn-nav-trophy:hover {
    background: var(--black);
    transform: translateY(-2px);
}

/* --- Hero Slider --- */
.hero { 
    position: relative; 
    height: 85vh; 
    overflow: hidden; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    border-bottom: 6px solid var(--red); 
    margin-top: 50px; 
}

.slider-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }

.slide { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background-size: cover; 
    background-position: center; 
    opacity: 0; 
    transition: opacity 1.2s ease; 
}

.slide.active { opacity: 1; }
.hero-overlay { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(255, 255, 255, 0.45); /* 🔴 Reducido para revelar las fotos */
    z-index: 2; 
}
.hero-content { position: relative; z-index: 3; padding: 0 8%; }
.hero h1 { font-size: clamp(2.3rem, 7vw, 4.5rem); line-height: 0.95; }
.hero h1 span { color: var(--red); }

/* --- Marquesina / Live Ticker --- */
.live-ticker { 
    background: var(--black); 
    color: var(--white); 
    padding: 10px 0; 
    font-family: 'Oswald'; 
    font-size: 0.8rem; 
    overflow: hidden; 
    border-bottom: 4px solid var(--red); 
}

.ticker-wrap { display: flex; white-space: nowrap; animation: ticker 30s linear infinite; }

@keyframes ticker { 
    0% { transform: translateX(100%); } 
    100% { transform: translateX(-100%); } 
}

/* --- Sección Banner Trophy App --- */
.trophy-banner {
    padding: 60px 8%;
    background: linear-gradient(135deg, #111111 0%, #000000 100%);
    color: var(--white);
    text-align: center;
    border-bottom: 4px solid var(--red);
    position: relative;
}

.trophy-banner h2 { font-size: 2.2rem; margin-bottom: 15px; }
.trophy-banner h2 span { color: var(--red); }
.trophy-banner p { max-width: 700px; margin: 0 auto 30px; opacity: 0.8; font-weight: 300; font-size: 1rem; }

/* Busca o actualiza tu clase existente para que incluya la línea de la animación */
.btn-trophy-app {
    display: inline-block;
    background-color: var(--red);
    color: var(--white);
    padding: 12px 35px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    
    /* 🔴 ASIGNACIÓN DEL LATIDO: Agrega esta línea */
    animation: latidoTrophyApp 2.2s infinite ease-in-out;
    transform-origin: center;
}

/* Modificamos sutilmente el hover original para que no choque con la animación */
.btn-trophy-app:hover {
    background-color: #a3000f; /* Un tono rojo un poco más oscuro al pasar el cursor */
    color: var(--white);
}

/* --- Contenedores de Feeds (Videos Odysee) --- */
.video-feed { padding: 80px 8%; background: var(--light-gray); text-align: center; }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; margin-top: 40px; }

.video-card { 
    background: var(--white); 
    border-bottom: 4px solid var(--red); 
    overflow: hidden; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.05); 
    transition: 0.4s; 
    text-decoration: none; 
    color: inherit; 
}

.video-card:hover { transform: translateY(-8px); }

.video-thumb { 
    width: 100%; 
    height: 200px; 
    background-size: cover; 
    background-position: center; 
    position: relative; 
    background-color: #000; 
}

.play-tag { 
    position: absolute; 
    top: 15px; 
    left: 15px; 
    background: var(--red); 
    color: white; 
    padding: 4px 12px; 
    font-family: 'Oswald'; 
    font-size: 0.7rem; 
    font-weight: bold; 
}

.video-info { padding: 20px; text-align: left; }
.video-info h4 { font-size: 0.95rem; color: var(--black); height: 45px; overflow: hidden; }

/* --- Sección de Contacto --- */
.contact-section { 
    padding: 100px 8%; 
    background: var(--black); 
    color: var(--white); 
    display: grid; 
    grid-template-columns: 1fr 1.2fr; 
    gap: 80px; 
}

input, textarea { 
    width: 100%; 
    padding: 18px; 
    margin-bottom: 20px; 
    border: 1px solid #444; 
    background: #1a1a1a; 
    color: white; 
    font-family: inherit; 
}

.btn { 
    background: var(--red); 
    color: white; 
    padding: 20px; 
    border: none; 
    font-family: 'Oswald'; 
    font-size: 1.3rem; 
    cursor: pointer; 
    width: 100%; 
    transition: 0.3s; 
}

.btn:hover { background: #90000d; transform: scale(1.02); }

/* --- Pie de Página (Footer) --- */
footer { padding: 80px 8% 40px; background: #000; color: #fff; border-top: 5px solid var(--red); }
.footer-content { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

.btn-mediakit { 
    display: inline-flex; 
    align-items: center; 
    gap: 10px; 
    background: transparent; 
    color: white !important; 
    text-decoration: none; 
    border: 1px solid rgba(255,255,255,0.2); 
    padding: 10px 20px; 
    border-radius: 50px; 
    font-size: 0.9rem; 
    transition: 0.3s; 
}

.btn-mediakit:hover { background: var(--red); border-color: var(--red); }
.seintek-link { color: var(--red); text-decoration: none; font-weight: bold; }

/* Inyecciones Especiales */
#curator-feed-default-feed-layout .crt-logo { display:none !important; }

/* --- Media Queries (Responsividad) --- */
@media (max-width: 1050px) { 
    .header-social { display: none; } 
}

@media (max-width: 900px) { 
    .video-grid { grid-template-columns: 1fr; } 
    .contact-section, .footer-content { grid-template-columns: 1fr; text-align: center; } 
}

/* --- Contenedor de Marca --- */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* --- Botón Premium TROPHY (Estilo Idéntico a tu Muestra) --- */
.btn-trophy-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff; /* Fondo blanco puro */
    border: 1px solid #e2e8f0; /* Contorno minimalista y limpio */
    padding: 6px 14px;
    border-radius: 4px; /* Esquinas suaves idénticas al asset */
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); /* Sutil relieve */
    transition: all 0.25s ease-in-out;
}

/* Tipografía de la marca */
.btn-trophy-brand .trophy-text {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.8px;
    color: #111c24; /* El tono exacto azul medianoche/oscuro de tu imagen */
}

/* Escalamiento del vector */
.icon-trophy-svg {
    width: 18px;
    height: 18px;
    display: block;
}

/* Efecto de interacción elegante */
.btn-trophy-brand:hover {
    background: #f8fafc;
    border-color: var(--red); /* Un guiño sutil al color de REP VIDEO al pasar el cursor */
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* --- Texto Informativo Discreto de Trophy --- */
.trophy-hint-text {
    font-family: 'Roboto', sans-serif;
    font-size: 0.68rem; /* Tamaño compacto y sutil */
    font-weight: 500;
    color: #64748b; /* Gris slate elegante que no satura la vista */
    letter-spacing: 0.5px;
    white-space: nowrap; /* Evita que el texto se rompa en dos líneas */
}

/* Ocultar dinámicamente en pantallas móviles muy pequeñas para evitar que el menú colapse */
@media (max-width: 768px) {
    .trophy-hint-text {
        display: none;
    }
}

/* ==========================================================================
   NUEVOS ESTILOS INTERACTIVOS PARA LA APP TROPHY
   ========================================================================== */

/* 1. Resaltado de la palabra AQUÍ */
.link-resaltado-trophy {
    color: var(--red) !important;          /* Fuerza el color rojo de tu marca */
    text-decoration: underline !important; /* Añade el subrayado */
    text-decoration-color: var(--red) !important; /* Fuerza que el subrayado sea rojo */
    font-weight: 800;                     /* Lo hace un poco más grueso y llamativo */
    transition: opacity 0.2s ease-in-out;
}

.link-resaltado-trophy:hover {
    opacity: 0.8;                         /* Sutil efecto visual al pasar el cursor */
}

/* 2. Efecto de Latido (Heartbeat) para el botón lateral de Trophy */
.btn-trophy-brand {
    animation: latidoTrophy 2s infinite ease-in-out;
    transform-origin: center;
    display: inline-flex;
    align-items: center;
}

/* Animación CSS para el efecto de expansión y contracción */
@keyframes latidoTrophy {
    0% {
        transform: scale(1);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }
    14% {
        transform: scale(1.06);
        box-shadow: 0 4px 10px rgba(188, 0, 17, 0.2); /* Sutil aura roja de tu marca al expandirse */
        border-color: var(--red);
    }
    28% {
        transform: scale(1);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }
    42% {
        transform: scale(1.06);
        box-shadow: 0 4px 10px rgba(188, 0, 17, 0.2);
        border-color: var(--red);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }
}