
   /* ===============================
      BOTÓN ACTIVO
      =============================== */

   .home-btn[data-type="info"] .btn{
     background: linear-gradient(180deg,#ffffff,#dcdcdc) !important;
     border-color:#ffffff !important;
     color:#000 !important;
     box-shadow:
       0 0 12px rgba(255,255,255,.6),
       inset 0 1px 0 rgba(255,255,255,.8);
   }

   .home-btn[data-type="info"] .btn:hover{
     background: linear-gradient(180deg,#ffffff,#eaeaea) !important;
     color:#000 !important;
   }

/* ========================================================= */
/* ========================================================= */

.info-op-layout{
  align-items:start;
}

.info-nav{
  font-size:13px;
  letter-spacing:.5px;
}

.info-nav a{
  opacity:.7;
}

.info-nav a.active{
  opacity:1;
}
.panel__header{
  margin-bottom:15px;
  border-bottom:1px solid #222a33;
  padding-bottom: 0px;
}

/* =========================================================
   DOCUMENTACIÓN – LAYOUT PROFESIONAL
   ========================================================= */

/* CONTENEDOR GENERAL */
.info-op-full{
  padding:100px 40px;
  background:#0e1318;
}

/* GRID PRINCIPAL */
.info-op-layout{
  display:grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap:0px;
  align-items:start;
  max-width:1600px;
  margin:0 auto;
}

/* =========================================================
   CONTENIDO PRINCIPAL
   ========================================================= */

/* CONTENIDO */
.info-content{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:10px;
}

/* Secciones */

.info-content section{
  scroll-margin-top:120px;
}

.panel{
  background:#161c23;
  border-radius:16px;
  padding:50px;
  box-shadow:0 15px 40px rgba(0,0,0,.4);
}

/* Títulos */

.panel__title{
  font-size:32px;
  margin-bottom:25px;
}

.panel__header h2{
  font-size:24px;
}

/* =========================================================
   HERO
   ========================================================= */

.info-hero__body{
  display:grid;
  grid-template-columns: 380px minmax(0,1fr);
  gap:20px;
  align-items:center;
}
.info-hero__image img{
  width:100%;
  border-radius:14px;
}
.info-hero__text{
  font-size:16px;
  line-height:1.9;
  color:#cfcfcf;
}

.info-Personajes__body{
  display:grid;
  grid-template-columns: 180px minmax(0,1fr);
  gap:0px;
  align-items:center;
}
.info-Personajes__image img{
  border-radius:14px;
  margin: 0 auto;
}
.info-Personajes__text{
  font-size:16px;
  color:#cfcfcf;
}

.info-frutas__body{
  display:grid;
  grid-template-columns: 380px minmax(0,1fr);
  gap:60px;
  align-items:center;
}
.info-frutas__image img{
  width:100%;
  border-radius:14px;
}
.info-frutas__text{
  font-size:16px;
  line-height:1.9;
  color:#cfcfcf;
}


.info-haki__body{
  display:grid;
  grid-template-columns: 380px minmax(0,1fr);
  gap:60px;
  align-items:center;
}
.info-haki__image img{
  width:80%;
  border-radius:14px;
  margin: 0 auto;
}
.info-haki__text{
  font-size:16px;
  color:#cfcfcf;
}


.info-anime__body{
  display:grid;
  grid-template-columns: 380px minmax(0,1fr);
  gap:0px;
  align-items:center;
}
.info-anime__image img{
  width:80%;
  border-radius:14px;
  margin: 0 auto;
}
.info-anime__text{
  font-size:16px;
  color:#cfcfcf;
}

.info-seiyuu__body{
  display:grid;
  grid-template-columns: 380px minmax(0,1fr);
  gap:0px;
  align-items:center;
}
.info-seiyuu__image img{
  width:80%;
  border-radius:14px;
  margin: 0 auto;
}
.info-seiyuu__text{
  font-size:16px;
  color:#cfcfcf;
}
.seiyuu-card.hidden{
  display:none;
}

.seiyuu-controls{
  text-align:center;
  margin-top:40px;
}

.btn-seiyuu{
  background:#3bd16f;
  color:#000;
  border:none;
  padding:12px 28px;
  border-radius:30px;
  font-weight:600;
  cursor:pointer;
  transition:.2s;
}

.btn-seiyuu:hover{
  transform:translateY(-2px);
}

/* Seiyuus: tarjetas más limpias y consistentes */
.seiyuu-grid{
  align-items: start;
}

.seiyuu-card{
  text-align:center;
  padding:16px;
}

.seiyuu-card img{
  width:60%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background:#000;
}

.seiyuu-card p{
  margin:12px 0 0;
  font-weight:700;
  color:#e7eef7;
  font-size:14px;
}

/* Móvil: que no queden gigantes */
@media (max-width: 680px){
  .info-grid-3.seiyuu-grid{
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}
/* =========================================================
   GRID TARJETAS
   ========================================================= */

.info-grid-3{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(200px,1fr));
  gap:25px;
}

.info-card{
  background:#1c232c;
  padding:20px;
  border-radius:12px;
  text-align: center;
}
.info-card img{
   margin: 0 auto;
}

/* =========================================================
   LISTA
   ========================================================= */

.info-list{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:16px;
}

.info-list li{
  background:#1c232c;
  padding:16px 20px;
  border-radius:12px;
}

/* =========================================================
   GUÍA LATERAL
   ========================================================= */

/* SIDEBAR */
.info-sidebar{
  position:sticky;
  top:140px;
}

.info-nav{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding-left:20px;
  border-left:1px solid #2a3440;
}

.info-nav a{
  text-decoration:none;
  font-size:14px;
  color:#8a98a8;
  padding:6px 0;
  transition:.2s;
}

.info-nav a:hover{
  color:#fff;
}

.info-nav a.active{
  color:#fff;
  font-weight:600;
  position:relative;
}

.info-nav a.active::before{
  content:"";
  position:absolute;
  left:-21px;
  top:0;
  height:100%;
  width:3px;
  background:#3bd16f;
  border-radius:3px;
}

/* =========================================================
   ACCORDION
   ========================================================= */

.accordion{
  display:flex;
  flex-direction:column;
  gap:15px;
}

.accordion-item{
  background:#1c232c;
  border-radius:12px;
  overflow:hidden;
}

.accordion-btn{
  width:100%;
  padding:20px;
  background:none;
  border:none;
  text-align:left;
  color:#fff;
  font-weight:600;
  cursor:pointer;
}

.accordion-panel__inner{
  padding: 0px 20px 10px 20px;
  font-size:14px;
  line-height:1.8;
  color:#cfcfcf;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width:1100px){

  .info-op-layout{
    grid-template-columns: 200px minmax(0,1fr);
    gap:40px;
  }

  .info-hero__body{
    grid-template-columns: 1fr;
    gap:40px;
  }
  .info-Personajes__body{
    grid-template-columns: 1fr;
  }
  

}

@media (max-width:800px){

  .info-op-full{
    padding:80px 20px;
  }

  .info-op-layout{
    grid-template-columns:1fr;
    gap:40px;
  }

  .info-sidebar{
    position:relative;
    top:auto;
  }

  .info-nav{
    flex-direction:row;
    flex-wrap:wrap;
    gap:15px;
    border-left:none;
    border-bottom:1px solid #2a3440;
    padding:0 0 15px 0;
      overflow-x:auto;
      white-space:nowrap;
  }

  .info-nav a{
    font-size:13px;
    padding:6px 10px;
  }

}

html{
  scroll-behavior:smooth;
}

.btn-mostrar-mas{
   margin: 20px auto 0;
   display: block;
   padding: 10px 20px;
   border-radius: 8px;
   border: none;
   cursor: pointer;
   background: rgba(255,255,255,0.1);
   backdrop-filter: blur(6px);
   color: white;
   transition: 0.3s;
}

.btn-mostrar-mas:hover{
   background: rgba(255,255,255,0.2);
}


/* =========================================================
   Lista de Anime
   ========================================================= */

.saga-box{
    margin-bottom:30px;
    padding:15px;
    border-radius:12px;
    background: rgba(255,255,255,.03);
    border:1px solid rgba(255,255,255,.1);
}

.saga-title{
    color:#f5d84a;
    margin-bottom:10px;
}

.arco-box{
    margin-bottom:20px;
    padding-left:15px;
}

.arco-title{
    color:#7fdfff;
    margin-bottom:8px;
}

.episodios-list{
    list-style:none;
    padding:0;
    margin:0;
}

.ep-num{
    font-weight:800;
    color:#f5d84a;
}

.badge-especial{
    background:rgba(255, 184, 77, 0.15);
    color:#ffb84d;
    border:1px solid rgba(255, 184, 77, 0.4);
    padding:3px 8px;
    border-radius:20px;
    font-size:11px;
    font-weight:600;
    letter-spacing:.5px;
    
  user-select: none;
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none;    /* Firefox */
  -ms-user-select: none;     /* IE antiguo */
}

.badge-tipo{
    padding:3px 8px;
    border-radius:20px;
    font-size:11px;
    font-weight:600;
    letter-spacing:.5px;
    border:1px solid rgba(255,255,255,.15);
    background:rgba(255,255,255,.05);
    color:#cfd8e3;
    
  user-select: none;
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none;    /* Firefox */
  -ms-user-select: none;     /* IE antiguo */
}

/* COLORES SUAVES, NO CHILLONES */

.tipo-canon .badge-tipo{
    background:rgba(59, 209, 111, 0.12);
    border-color:rgba(59, 209, 111, 0.35);
    color:#3bd16f;
}

.tipo-relleno .badge-tipo{
    background:rgba(231, 76, 60, 0.12);
    border-color:rgba(231, 76, 60, 0.35);
    color:#e74c3c;
}

.tipo-mixto .badge-tipo{
    background:rgba(241, 196, 15, 0.12);
    border-color:rgba(241, 196, 15, 0.35);
    color:#f1c40f;
}

.tipo-anime-canon .badge-tipo{
    background:rgba(155, 89, 182, 0.12);
    border-color:rgba(155, 89, 182, 0.35);
    color:#9b59b6;
}

.tipo-novela .badge-tipo{
    background:rgba(52, 152, 219, 0.12);
    border-color:rgba(52, 152, 219, 0.35);
    color:#3498db;
}

.tipo-veridico .badge-tipo{
    background:rgba(26, 188, 156, 0.12);
    border-color:rgba(26, 188, 156, 0.35);
    color:#1abc9c;
}

.ep-item:hover{
  background:rgba(255,255,255,.06);
  transform:translateX(4px);
}


.saga-box{
  width:100%;
  overflow:hidden;
}

.arco-box{
  width:100%;
}

/* =========================================
   FIX DEFINITIVO DESBORDE LISTA ANIME
   ========================================= */

#info-anime{
  overflow:hidden;
}

#info-anime .panel__body{
  min-width:0;
}

#anime-list-container{
  max-height:600px;
  overflow:hidden;
  position:relative;
  transition:max-height .5s ease;
}

#anime-list-container.anime-expanded{
  max-height:5000px; /* suficientemente grande */
}

.episodios-list{
  width:100%;
}


.ep-title{
  flex:1 1 auto;
  min-width:0;
  white-space:normal;      /* permite salto de línea */
  overflow:visible;        /* no recorta */
  text-overflow:unset;     /* quita los ... */
  word-break:break-word;   /* evita desbordes raros */
}

/* =========================================
   COLLAPSE PROFESIONAL
   ========================================= */

#anime-list-container.anime-collapsed::after{
  content:"";
  position:absolute;
  bottom:0;
  left:0;
  width:100%;
  height:120px;
  background:linear-gradient(to bottom, rgba(14,19,24,0) 0%, #161c23 80%);
  pointer-events:none;
}

#anime-list-container.anime-expanded{
  max-height:none;
}

#anime-list-container.anime-expanded::after{
  display:none;
}
/* === FIX REAL DESBORDE HORIZONTAL === */

.info-content{
  min-width:0;
}

.panel{
  min-width:0;
  overflow:hidden;
}

#info-anime .panel__body{
  min-width:0;
  overflow:hidden;
}

.saga-box,
.arco-box,
.episodios-list,
.ep-item{
  max-width:100%;
}

.ep-item{
  width:100%;
  display:flex;
  flex-wrap:wrap;    /* IMPORTANTE */
  align-items:center;
  box-sizing:border-box;
  gap:10px;
  width:100%;
  min-width:0;
  transition:.2s ease;
    padding:6px 10px;
    border-radius:8px;
    margin-bottom:5px;
    font-size:14px;
    background: rgba(0,0,0,.4);
}


body{
  overflow-x:hidden;
}
/* ================================
   COLLAPSE MANGA (MISMO QUE ANIME)
   ================================ */

#manga-list-container{
  max-height:600px;
  overflow:hidden;
  position:relative;
  transition:max-height .5s ease;
}

#manga-list-container.anime-collapsed::after{
  content:"";
  position:absolute;
  bottom:0;
  left:0;
  width:100%;
  height:120px;
  background:linear-gradient(to bottom, rgba(14,19,24,0) 0%, #161c23 80%);
  pointer-events:none;
}

#manga-list-container.anime-expanded{
  max-height:none;
}

#manga-list-container.anime-expanded::after{
  display:none;
}
#peliculas-list-container{
  max-height:600px;
  overflow:hidden;
  position:relative;
  transition:max-height .5s ease;
}

#peliculas-list-container.anime-collapsed::after{
  content:"";
  position:absolute;
  bottom:0;
  left:0;
  width:100%;
  height:120px;
  background:linear-gradient(to bottom, rgba(14,19,24,0) 0%, #161c23 80%);
  pointer-events:none;
}

#peliculas-list-container.anime-expanded{
  max-height:none;
}

#peliculas-list-container.anime-expanded::after{
  display:none;
}
/* ================================
   COLLAPSE ESPECIALES
   ================================ */

#especiales-list-container{
  max-height:600px;
  overflow:hidden;
  position:relative;
  transition:max-height .5s ease;
}

#especiales-list-container.anime-collapsed::after{
  content:"";
  position:absolute;
  bottom:0;
  left:0;
  width:100%;
  height:120px;
  background:linear-gradient(to bottom, rgba(14,19,24,0) 0%, #161c23 80%);
  pointer-events:none;
}

#especiales-list-container.anime-expanded{
  max-height:none;
}

#especiales-list-container.anime-expanded::after{
  display:none;
}

.padding-10{
  padding: 10px !important;
}


.general-full {
   padding: 100px 40px;
}
 
.general-layout {
   grid-template-columns: 220px minmax(0, 1fr);
}

@media (max-width: 800px) {
   .general-full {
      padding: 80px 20px;
      grid-template-columns: 1fr;
      gap: 40px;
   }

   .general-layout {
      grid-template-columns: 1fr;
      gap: 40px;
   }
}
   