.elementor-4670 .elementor-element.elementor-element-3a6bf2e7{--display:flex;}.elementor-theme-builder-content-area{height:400px;}.elementor-location-header:before, .elementor-location-footer:before{content:"";display:table;clear:both;}/* Start custom CSS for html, class: .elementor-element-4a65b2c8 *//* 1. VARIABLES */
.rtve-v2 {
  --color-brand-primary: #00b4d8; /* Cyan Másteres */
  --color-white: #ffffff;
  --color-light-gray: #e0e0e0;
  --header-height: 80px;
  --max-width: 1200px;
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. ESTRUCTURA */
.rtve-v2 .header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 9999;
  display: flex;
  align-items: center;
}

.rtve-v2 .header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--color-brand-primary);
  z-index: 10;
}

.rtve-v2 .header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* 3. LOGO IZQUIERDA */
.rtve-v2 .header-logo {
  height: 45px;
  width: auto;
  display: block;
  transition: opacity var(--transition-fast);
}

.rtve-v2 .header-logo:hover {
  opacity: 0.7;
}

/* 4. NAVEGACIÓN ESCRITORIO */
.rtve-v2 .nav { display: flex; gap: 2.5rem; }
.rtve-v2 .nav a {
  position: relative;
  color: var(--color-light-gray);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.5rem 0;
  transition: color var(--transition-fast);
}

.rtve-v2 .nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-brand-primary);
  transition: width 0.3s ease;
}

.rtve-v2 .nav a:hover, .rtve-v2 .nav a.active-link { color: var(--color-white); }
.rtve-v2 .nav a:hover::after, .rtve-v2 .nav a.active-link::after { width: 100%; }

/* 5. CARRITO Y LOGO DERECHA */
.rtve-v2 .header-right {
  display: flex;
  align-items: center;
  gap: 2rem; 
}

.rtve-v2 .cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white !important;
    text-decoration: none;
}

.rtve-v2 .cart-link:hover {
    background: rgba(0, 180, 216, 0.1);
    border-color: var(--color-brand-primary);
    transform: translateY(-2px) scale(1.05);
}

.rtve-v2 .cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--color-brand-primary);
    color: #000;
    font-size: 0.65rem;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0, 180, 216, 0.4);
}

.rtve-v2 .header-logo-right-link {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.rtve-v2 .header-logo-right-link:hover {
    transform: scale(1.05);
}

.rtve-v2 .header-logo-right {
    height: 32px;
    width: auto;
    opacity: 0.9;
}

/* 6. BOTÓN HAMBURGUESA (OCULTO EN PC) */
.rtve-v2 .mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 26px;
    height: 18px;
    position: relative;
    z-index: 100;
    padding: 0;
    margin-left: 0.5rem;
}

.rtve-v2 .mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-white);
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.rtve-v2 .mobile-menu-toggle span:nth-child(1) { top: 0; }
.rtve-v2 .mobile-menu-toggle span:nth-child(2) { top: 8px; }
.rtve-v2 .mobile-menu-toggle span:nth-child(3) { bottom: 16px; top: auto; }

/* Animación de aspa (X) al abrir el menú */
.rtve-v2 .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 8px;
}
.rtve-v2 .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.rtve-v2 .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 8px;
}

/* 7. RESPONSIVE MÓVIL (MENÚ DESPLEGABLE) */
@media (max-width: 991px) {
    .rtve-v2 .header {
        height: 70px;
    }
    .rtve-v2 .header-inner {
        padding: 0 1rem;
    }
    
    .rtve-v2 .header-logo { height: 32px; }
    
    /* ¡AQUÍ ESTÁ! Ocultamos el logo derecho de RTVE en móvil */
    .rtve-v2 .header-logo-right-link { 
        display: none !important; 
    }
    
    .rtve-v2 .cart-link { width: 36px; height: 36px; }
    .rtve-v2 .header-right { gap: 1rem; }

    /* Aparece el botón de la hamburguesa */
    .rtve-v2 .mobile-menu-toggle {
        display: block;
    }

    /* Navegación como cajón oculto debajo */
    .rtve-v2 .nav {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        gap: 0;
        padding: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        box-shadow: 0 20px 40px rgba(0,0,0,0.5);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }

    /* Clase que se activa con Javascript al pulsar */
    .rtve-v2 .nav.active {
        max-height: 300px;
    }

    .rtve-v2 .nav a {
        width: 100%;
        padding: 1.2rem 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .rtve-v2 .nav a::after {
        display: none; 
    }
}/* End custom CSS */