/*
 * AnimeSGD Neon Suave V3
 * Capa visual final: neón moderado, legible y coherente.
 * Se carga después de los estilos anteriores para no alterar la lógica del tema.
 */
:root{
  --cdb-neon-pink:#e84aa9;
  --cdb-neon-purple:#8b5cf6;
  --cdb-neon-cyan:#27b7e8;
  --cdb-neon-blue:#3b82f6;
  --cdb-neon-orange:#f59e42;
  --cdb-neon-gold:#d9a62e;
  --cdb-neon-bg:#0d1220;
  --cdb-neon-panel:#ffffff;
  --cdb-neon-soft:#f7f9fd;
  --cdb-neon-text:#172033;
  --cdb-neon-muted:#667085;
}

/* Fondo exterior: oscuro para que el borde resalte, sin exceso de brillo */
html,
body,
body.home{
  background:
    radial-gradient(circle at 15% 8%, rgba(139,92,246,.10), transparent 25%),
    radial-gradient(circle at 88% 20%, rgba(39,183,232,.08), transparent 24%),
    #0d1220 !important;
}

body #marco,
body.home #marco{
  background:transparent !important;
}

/* Cabecera */
body #cabeza,
body.home #cabeza{
  border:1.5px solid rgba(232,74,169,.82) !important;
  border-bottom-color:rgba(139,92,246,.78) !important;
  border-radius:18px 18px 0 0 !important;
  box-shadow:
    0 0 7px rgba(232,74,169,.34),
    0 0 16px rgba(139,92,246,.15) !important;
}

body #menu,
body.home #menu{
  border:1px solid rgba(232,74,169,.62) !important;
  border-top-color:rgba(139,92,246,.62) !important;
  box-shadow:0 0 9px rgba(232,74,169,.18) !important;
}
body #menu ul li a:hover,
body #menu ul li.current-menu-item > a,
body #menu ul li.current_page_item > a{
  background:rgba(232,74,169,.13) !important;
  box-shadow:inset 0 0 0 1px rgba(232,74,169,.32) !important;
}
body .header-search input[type=text],
body .header-search input[type=search]{
  border-color:rgba(232,74,169,.42) !important;
  box-shadow:0 0 0 2px rgba(232,74,169,.05) !important;
}
body .header-search input[type=text]:focus,
body .header-search input[type=search]:focus{
  border-color:rgba(232,74,169,.75) !important;
  box-shadow:0 0 7px rgba(232,74,169,.18) !important;
}

/* Últimos estrenos */
body.home #estrenos{
  --neon:#f59e42;
  --neon-rgb:245,158,66;
  padding:8px !important;
  border:1.5px solid rgba(var(--neon-rgb),.82) !important;
  border-radius:17px !important;
  background:rgba(255,255,255,.985) !important;
  box-shadow:0 0 8px rgba(var(--neon-rgb),.24) !important;
}
body.home #estrenos .cdb-carousel-heading{
  border:0 !important;
  border-bottom:1px solid rgba(var(--neon-rgb),.20) !important;
  border-radius:12px !important;
  box-shadow:none !important;
  margin:0 0 8px !important;
}
body.home #estrenos .cdb-carousel-heading__icon{
  background:rgba(var(--neon-rgb),.12) !important;
  color:#d97706 !important;
}
body.home #estrenos .marco-filas{
  border:1px solid rgba(232,74,169,.58) !important;
  border-radius:13px !important;
  box-shadow:0 0 7px rgba(232,74,169,.18) !important;
  overflow:hidden !important;
}

/* Banners promocionales */
body.home .front-promos{
  gap:14px !important;
}
body.home .front-promos > *{
  border:1.5px solid rgba(139,92,246,.70) !important;
  box-shadow:0 0 8px rgba(139,92,246,.20) !important;
  border-radius:16px !important;
}
body.home .front-promos > *:nth-child(1){
  border-color:rgba(59,130,246,.78) !important;
  box-shadow:0 0 8px rgba(59,130,246,.22) !important;
}
body.home .front-promos > *:nth-child(2){
  border-color:rgba(232,74,169,.72) !important;
  box-shadow:0 0 8px rgba(232,74,169,.20) !important;
}

/* Variables por sección: se conserva exactamente el orden actual */
body.home .home-wrapper .home-section{
  --neon:var(--cdb-neon-purple);
  --neon-rgb:139,92,246;
}
body.home .home-wrapper .home-section:nth-child(1){--neon:var(--cdb-neon-pink);--neon-rgb:232,74,169;}
body.home .home-wrapper .home-section:nth-child(2){--neon:var(--cdb-neon-cyan);--neon-rgb:39,183,232;}
body.home .home-wrapper .home-section:nth-child(3){--neon:var(--cdb-neon-purple);--neon-rgb:139,92,246;}
body.home .home-wrapper .home-section:nth-child(4){--neon:var(--cdb-neon-gold);--neon-rgb:217,166,46;}
body.home .home-wrapper .home-section:nth-child(5){--neon:var(--cdb-neon-blue);--neon-rgb:59,130,246;}
body.home .home-wrapper .home-section:nth-child(6){--neon:#d946ef;--neon-rgb:217,70,239;}
body.home .home-wrapper .home-section:nth-child(7){--neon:#f59e0b;--neon-rgb:245,158,11;}
body.home .home-wrapper .home-section:nth-child(8){--neon:#a855f7;--neon-rgb:168,85,247;}
body.home .home-wrapper .home-section:nth-child(9){--neon:#22b8cf;--neon-rgb:34,184,207;}

body.home .home-wrapper .home-section{
  padding:9px !important;
  background:rgba(255,255,255,.99) !important;
  border:1.5px solid rgba(var(--neon-rgb),.80) !important;
  border-radius:17px !important;
  box-shadow:
    0 0 7px rgba(var(--neon-rgb),.22),
    0 8px 24px rgba(4,8,20,.10) !important;
  overflow:hidden !important;
}
body.home .home-wrapper .home-section__header{
  padding:15px 17px !important;
  margin:0 0 10px !important;
  border:0 !important;
  border-bottom:1px solid rgba(var(--neon-rgb),.17) !important;
  border-radius:11px !important;
  box-shadow:none !important;
  background:linear-gradient(180deg,#fff 0%,rgba(var(--neon-rgb),.035) 100%) !important;
}
body.home .home-wrapper .home-section__header h2{
  color:#172033 !important;
}
body.home .home-wrapper .home-section__more{
  color:#344054 !important;
  border-color:rgba(var(--neon-rgb),.28) !important;
  background:#fff !important;
}
body.home .home-wrapper .home-section__more:hover{
  color:var(--neon) !important;
  border-color:rgba(var(--neon-rgb),.58) !important;
  box-shadow:0 0 6px rgba(var(--neon-rgb),.13) !important;
}

/* Tarjetas: casi sin glow en reposo, sutil al pasar el mouse */
body.home .home-wrapper .home-section .media-card{
  border:1px solid rgba(var(--neon-rgb),.18) !important;
  box-shadow:0 3px 10px rgba(15,23,42,.08) !important;
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease !important;
}
body.home .home-wrapper .home-section .media-card:hover{
  transform:translateY(-3px) !important;
  border-color:rgba(var(--neon-rgb),.62) !important;
  box-shadow:
    0 5px 15px rgba(15,23,42,.10),
    0 0 7px rgba(var(--neon-rgb),.16) !important;
}
body.home .home-wrapper .home-section .media-card__badge{
  background:var(--neon) !important;
  box-shadow:none !important;
}

/* Página interior + sidebar */
body:not(.home) #caja{
  background:transparent !important;
}
body:not(.home) #contenido,
body:not(.home) #marco-post,
body:not(.home) .search-results-page{
  border:1.5px solid rgba(139,92,246,.58) !important;
  box-shadow:
    0 0 8px rgba(139,92,246,.14),
    0 10px 28px rgba(4,8,20,.13) !important;
}

body #sidebar.cdb-sidebar .cdb-sidebar-box{
  background:#fff !important;
  color:#172033 !important;
  border:1px solid rgba(39,183,232,.42) !important;
  box-shadow:0 0 7px rgba(39,183,232,.12),0 6px 18px rgba(4,8,20,.08) !important;
}
body #sidebar.cdb-sidebar .cdb-sidebar-box:nth-child(2n){
  border-color:rgba(232,74,169,.42) !important;
  box-shadow:0 0 7px rgba(232,74,169,.11),0 6px 18px rgba(4,8,20,.08) !important;
}
body #sidebar.cdb-sidebar .cdb-sidebar-heading{
  background:linear-gradient(180deg,#fff,#f8fafc) !important;
  border-bottom:1px solid #e6ebf2 !important;
}
body #sidebar.cdb-sidebar .cdb-sidebar-heading h3{
  color:#172033 !important;
}
body #sidebar.cdb-sidebar .cdb-sidebar-heading > a{
  color:#e84aa9 !important;
}
body #sidebar.cdb-sidebar .cdb-sidebar-item{
  border-bottom-color:#edf0f5 !important;
}
body #sidebar.cdb-sidebar .cdb-sidebar-item-info h4,
body #sidebar.cdb-sidebar .cdb-sidebar-item-info h4 a{
  color:#172033 !important;
}
body #sidebar.cdb-sidebar .cdb-sidebar-meta{
  color:#667085 !important;
}
body #sidebar.cdb-sidebar .cdb-sidebar-categories ul li{
  border-bottom-color:#edf0f5 !important;
  color:#667085 !important;
}
body #sidebar.cdb-sidebar .cdb-sidebar-categories ul li a{
  color:#344054 !important;
}
body #sidebar.cdb-sidebar .cdb-sidebar-categories ul li a:hover{
  color:#e84aa9 !important;
}
body #sidebar.cdb-sidebar .cdb-promo-link > span{
  background:linear-gradient(135deg,#8b5cf6,#e84aa9) !important;
  box-shadow:0 0 6px rgba(232,74,169,.14) !important;
}

/* Módulos de la entrada moderna */
body .cdb-v509-titlebar,
body .cdb-v509-section-anchor,
body .cdb-v509-editor-content,
body .cdb-related-grid,
body .cdb-community,
body #marco-post .post,
body #marco-post .comentarios{
  border-color:rgba(139,92,246,.32) !important;
}
body .cdb-v509-tabs a.is-active,
body .cdb-v509-tabs a:hover{
  border-color:rgba(232,74,169,.42) !important;
  box-shadow:0 0 6px rgba(232,74,169,.10) !important;
}

/* Archivo y buscador */
body .search-result-card,
body .cdb-archive-card{
  border-color:rgba(39,183,232,.22) !important;
}
body .search-result-card:hover,
body .cdb-archive-card:hover{
  border-color:rgba(39,183,232,.55) !important;
  box-shadow:0 0 7px rgba(39,183,232,.12) !important;
}

/* Footer */
body #footer{
  border:1px solid rgba(139,92,246,.48) !important;
  box-shadow:0 0 8px rgba(139,92,246,.13) !important;
}

/* En móvil reducimos todavía más el resplandor */
@media (max-width:720px){
  body.home #estrenos,
  body.home .home-wrapper .home-section,
  body #cabeza,
  body #menu,
  body #sidebar.cdb-sidebar .cdb-sidebar-box{
    box-shadow:0 0 5px rgba(139,92,246,.12) !important;
  }
  body.home .home-wrapper .home-section{
    padding:7px !important;
  }
}
