/* ===== ESTILO CRUNCHYROLL ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --crunchyroll-orange: #F47521;
  --crunchyroll-orange-dark: #D65A0A;
  --crunchyroll-orange-light: #FF8A3D;
  --bg-dark: #0d0d0d;
  --bg-darker: #000000;
  --bg-card: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
  --text-muted: #808080;
  --border-color: #333333;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  overscroll-behavior-x: none;
}

html { 
  overflow-x: hidden; 
  scroll-behavior: smooth;
}

#demo { 
  position: relative; 
  width: 100vw; 
  height: 100vh; 
  margin-bottom: 0;
  background: var(--bg-darker);
  overflow: hidden;
  isolation: isolate;
}
/* ===== HEADER ESTILO CRUNCHYROLL ===== */
.header {
  background: var(--bg-darker);
  padding: 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--crunchyroll-orange);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.5px;
}
.search-bar {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 92, 173, 0.3);
}
.search-bar input {
  background: transparent;
  border: none;
  color: #fff;
  padding: 0.5rem;
  font-size: 1rem;
  width: 300px;
  outline: none;
}
.search-bar input::placeholder {
  color: #b0b0b0;
}
.search-bar button {
  background: linear-gradient(45deg, #ff5cad, #ff8a80);
  border: none;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  margin-left: 0.5rem;
  transition: all 0.3s ease;
}
.search-bar button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 92, 173, 0.3);
}
.user-actions {
  display: flex;
  gap: 1rem;
}
.auth-btn {
  background: linear-gradient(45deg, #ff5cad, #ff8a80);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
}
.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 92, 173, 0.3);
}
.catalog-main { 
  padding-top: 2rem;
  margin-top: 0;
  position: relative; 
  z-index: 1; 
  min-height: 100vh;
  background: transparent;
}
.catalog-main .main-content { 
  margin-top: 0; 
  padding: 2rem;
}
.left-sidebar {
  width: 250px;
  background: rgba(0, 0, 0, 0.3);
  padding: 2rem 1rem;
  border-right: 1px solid rgba(255, 92, 173, 0.2);
}
.sidebar-nav {
  list-style: none;
}
.sidebar-nav li {
  margin-bottom: 1rem;
}
.sidebar-nav a {
  color: #b0b0b0;
  text-decoration: none;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  display: block;
  transition: all 0.3s ease;
}
.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: linear-gradient(45deg, #ff5cad, #ff8a80);
  color: white;
  transform: translateX(5px);
}
.main-content {
  flex: 1;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.1);
}
.section-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  background: linear-gradient(45deg, #ff5cad, #ff8a80);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
}
.anime-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  padding: 1rem 0;
}

/* ===== FOOTER ESTILO CRUNCHYROLL ===== */
.footer { 
  margin-top: 60px; 
  padding: 40px 0 24px; 
  background: var(--bg-darker); 
  border-top: 1px solid var(--border-color); 
}
.footer .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}
.footer .footer-content { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 40px; 
}
.footer .footer-section h3 { 
  margin: 0 0 16px; 
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer .footer-section p { 
  margin: 0; 
  color: var(--text-secondary); 
  font-size: 14px;
  line-height: 1.6;
}
.footer .footer-section ul { 
  list-style: none; 
  padding: 0; 
  margin: 0; 
}
.footer .footer-section ul li { 
  margin: 8px 0; 
}
.footer .footer-section a { 
  color: var(--text-secondary); 
  text-decoration: none; 
  transition: color 0.2s ease;
  font-size: 14px;
}
.footer .footer-section a:hover { 
  color: var(--crunchyroll-orange); 
}
.footer .social-links { 
  display: grid; 
  grid-template-columns: repeat(2, 1fr); 
  gap: 8px; 
}
@media (min-width:768px){ 
  .footer .social-links { 
    grid-template-columns: repeat(4, 1fr); 
  } 
}
.footer .social-item { 
  display: flex; 
  align-items: center; 
  gap: 8px; 
  background: var(--bg-card); 
  border-radius: 4px; 
  padding: 10px; 
  text-decoration: none; 
  color: var(--text-primary); 
  transition: all 0.2s ease;
  font-size: 13px;
  border: 1px solid var(--border-color);
}
.footer .social-item:hover { 
  background: var(--bg-dark); 
  border-color: var(--crunchyroll-orange);
}
.footer .social-item img { 
  width: 20px; 
  height: 20px; 
  border-radius: 2px; 
  object-fit: cover; 
}
.footer .social-item span { 
  line-height: 1; 
}
.footer .footer-text { 
  text-align: center; 
  margin-top: 32px; 
  color: var(--text-muted); 
  font-size: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}
/* ===== ANIME CARDS ESTILO CRUNCHYROLL ===== */
.anime-card {
  background: rgba(20, 20, 40, 0.85);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  overflow: visible;
  border: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  padding: 3px;
}

.anime-card::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 15px;
  padding: 3px;
  background: linear-gradient(90deg, #00ff72, #00f7ff, #ff0aa7, #ffbe0b, #00ff72);
  background-size: 400% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: borderMove 3s linear infinite;
  z-index: -1;
}

@keyframes borderMove {
  0% { background-position: 0% 0%; }
  100% { background-position: 400% 0%; }
}

.anime-card > * {
  position: relative;
  z-index: 1;
}

.anime-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 40px rgba(131, 56, 236, 0.4),
              0 0 30px rgba(58, 134, 255, 0.3),
              0 0 50px rgba(255, 0, 110, 0.2);
}
.anime-card:hover img {
  transform: scale(1.05);
}

.download-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #e74c3c;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 5px 10px;
  font-weight: bold;
  text-decoration: none;
  z-index: 10;
  transition: background-color 0.3s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.download-btn:hover {
  background-color: #c0392b;
  transform: scale(1.1);
}
.anime-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 4px;
  transition: transform 0.3s ease;
  background: var(--bg-card);
}
.anime-info {
  padding: 12px 0 0 0;
}
.anime-info h3 {
  color: var(--text-primary);
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}
.anime-info p {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.4;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}
.anime-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}
.status-badge {
  background: transparent;
  color: var(--text-secondary);
  padding: 0;
  border-radius: 0;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.anime-rating {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 12px;
}
.anime-link {
  display: block;
  text-decoration: none;
  color: inherit;
  width: 100%;
  height: 100%;
}
@media (max-width: 768px) {
  .main-container {
    flex-direction: column;
  }
  .left-sidebar {
    width: 100%;
    padding: 1rem;
  }
  .sidebar-nav {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
  }
  .sidebar-nav li {
    margin-bottom: 0;
    white-space: nowrap;
  }
  .search-bar input {
    width: 200px;
  }
  .user-actions {
    flex-wrap: wrap;
  }
  .anime-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
  }
}
@media (max-width: 480px) {
  .header {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  .search-bar input {
    width: 150px;
  }
  .anime-grid {
    grid-template-columns: 1fr;
  }
}

.card { 
  position: absolute; 
  left: 0; 
  top: 0; 
  background-position: center center; 
  background-size: cover; 
  background-repeat: no-repeat; 
  box-shadow: 6px 6px 10px 2px rgba(0,0,0,0.6); 
  pointer-events: none; 
  z-index: 20;
}
#btn { position: absolute; top: 690px; left: 16px; z-index: 99; }
.card-content { 
  position: absolute; 
  left:0; 
  top:0; 
  color:#FFFFFFDD; 
  padding-left:16px; 
  z-index: 40;
}
.content-title-1,.content-title-2 { font-weight:600; font-size:20px; font-family: "Oswald", sans-serif; color:#fff; -webkit-text-stroke:0.8px rgba(0,0,0,0.4); text-shadow:0 0 4px #ff5cad, 0 2px 10px rgba(0,0,0,0.55); }
.content-start { width:30px; height:5px; border-radius:99px; background-color:#FFFFFFDD; }
/* ===== HERO DETAILS ESTILO CRUNCHYROLL ===== */
.details { 
  z-index:15; 
  position:absolute; 
  top:50%; 
  left:60px; 
  transform: translateY(-50%);
  pointer-events: none; 
  max-width: 600px;
}
.details .place-box { 
  height:32px; 
  overflow:visible; 
  margin-bottom: 8px;
  display:flex;
  align-items:center;
  gap:8px;
}
.details .place-box .text { 
  padding:4px 12px; 
  font-size:12px; 
  position:relative; 
  color:var(--text-primary); 
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700; 
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(244,117,33,0.35);
  border-radius: 999px;
}
 .details .place-box .text {
   text-shadow: 0 1px 2px rgba(0,0,0,0.6);
 }
.details .place-box .text:before { 
  display:none;
}
.details .title-1,.details .title-2 { 
  font-weight:700; 
  font-size:64px; 
  font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; 
  color:var(--text-primary); 
  line-height: 1.1;
  letter-spacing: -1px;
  -webkit-text-stroke: 1.2px rgba(0,0,0,0.85);
  text-shadow: 0 0 2px rgba(0,0,0,0.9), 1px 1px 0 rgba(0,0,0,0.9), -1px -1px 0 rgba(0,0,0,0.9), 0 2px 6px rgba(0,0,0,0.6);
}
.details .title-box-1,.details .title-box-2 { 
  margin-top:4px; 
  height:80px; 
  overflow:hidden; 
}
.details > .desc { 
  margin-top:20px; 
  width:100%; 
  max-width:520px; 
  color:var(--text-secondary); 
  font-size:16px;
  line-height: 1.5;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}
.details > .cta { 
  width:100%; 
  max-width:520px; 
  margin-top:32px; 
  display:flex; 
  align-items:center; 
  pointer-events: auto; 
  gap:12px; 
  flex-wrap:wrap; 
  position: relative;
  z-index: 15;
}
.details > .cta > .bookmark { 
  border:none; 
  background-color:var(--bg-card); 
  width:48px; 
  height:48px; 
  border-radius:50%; 
  color:var(--text-primary); 
  display:grid; 
  place-items:center; 
  cursor: pointer;
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}
.details > .cta > .bookmark:hover {
  background-color: var(--bg-dark);
  border-color: var(--crunchyroll-orange);
}
.details > .cta > .bookmark svg { 
  width:20px; 
  height:20px; 
}
.details > .cta > .discover { 
  border:none; 
  background-color:var(--crunchyroll-orange); 
  min-height:48px; 
  border-radius:4px; 
  color:#fff; 
  padding:12px 28px; 
  font-size:14px; 
  margin-left:0; 
  text-transform:none; 
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  flex:0 0 auto;
  display:flex;
  align-items:center;
  gap:10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
.details > .cta > .discover:hover { 
  background-color:var(--crunchyroll-orange-dark); 
  transform:translateY(-2px);
  box-shadow: 0 4px 12px rgba(244, 117, 33, 0.4);
}
.details > .cta > .discover::before {
  content: "";
  width: 0; 
  height: 0; 
  border-left: 10px solid #fff; 
  border-top: 6px solid transparent; 
  border-bottom: 6px solid transparent; 
}
.details::before {
  content: "";
  position: absolute;
  left: -24px;
  top: -32px;
  width: calc(100% + 48px);
  height: calc(100% + 64px);
  background: linear-gradient(90deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.45) 40%, rgba(0,0,0,0.2) 70%, rgba(0,0,0,0) 100%);
  border-radius: 8px;
  pointer-events: none;
  z-index: -1;
}
.details::before {
  content: "";
  position: absolute;
  left: -24px;
  top: -32px;
  width: calc(100% + 48px);
  height: calc(100% + 64px);
  background: linear-gradient(90deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.45) 40%, rgba(0,0,0,0.2) 70%, rgba(0,0,0,0) 100%);
  border-radius: 8px;
  pointer-events: none;
  z-index: -1;
}
nav { 
  position:fixed; 
  left:0; 
  top:0; 
  right:0; 
  z-index:50; 
  display:flex; 
  align-items:center; 
  justify-content:space-between; 
  padding:0 24px; 
  height: 64px;
  font-weight:500; 
  pointer-events: auto; 
  background:var(--bg-darker); 
  border-bottom:1px solid var(--border-color); 
}
nav .menu-toggle { display:inline-flex; align-items:center; justify-content:center; width:36px; height:36px; border:none; background:transparent; color: var(--text-primary); }
nav .menu-toggle svg { width: 24px; height: 24px; }
nav .nav-links { display:inline-flex; gap:32px; flex-wrap:wrap; }
nav .menu-toggle { position: relative; padding: 6px; border-radius: 6px; }
nav .menu-toggle .bar { display:block; width:24px; height:2px; background: var(--text-primary); margin:4px 0; border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease; }
nav .menu-toggle:hover .bar { background: var(--crunchyroll-orange); }
nav.open .menu-toggle .bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
nav.open .menu-toggle .bar:nth-child(2) { opacity: 0; }
nav.open .menu-toggle .bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
nav .svg-container { 
  width:20px; 
  height:20px; 
  cursor: pointer;
  transition: opacity 0.3s ease;
}
nav .svg-container:hover {
  opacity: 0.7;
}
nav > div { 
  display:inline-flex; 
  align-items:center; 
  text-transform:uppercase; 
  font-size:14px; 
}
nav > div:first-child { 
  gap:10px; 
  cursor: pointer;
  color: var(--crunchyroll-orange);
  font-weight: 700;
  font-size: 1.1rem;
}
nav > div:first-child img {
  height: 24px;
  width: auto;
}
nav > div:last-child { 
  gap:32px; 
  flex-wrap:wrap; 
}
nav > div:last-child > div {
  cursor: pointer;
  transition: color 0.2s ease;
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: none;
  position: relative;
}
nav > div:last-child > a {
  cursor: pointer;
  transition: color 0.2s ease;
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: none;
  position: relative;
  text-decoration: none;
}
nav > div:last-child > div:hover {
  color: var(--text-primary);
}
nav > div:last-child > a:hover {
  color: var(--text-primary);
}
nav > div:last-child > .active { 
  color: var(--text-primary);
  position:relative; 
}
nav > div:last-child > .active:after { 
  bottom:-24px; 
  left:0; 
  right:0; 
  position:absolute; 
  content:""; 
  height:3px; 
  background-color:var(--crunchyroll-orange); 
}
.indicator { 
  position:fixed; 
  left:0; 
  right:0; 
  top:0; 
  height:3px; 
  z-index:60; 
  background-color:var(--crunchyroll-orange); 
}
/* ===== PAGINATION ESTILO CRUNCHYROLL ===== */
.pagination { 
  position:absolute; 
  left:60px; 
  bottom:120px; 
  display:inline-flex; 
  pointer-events: auto; 
  align-items: center;
  gap: 16px;
  z-index: 60;
}
.pagination > .arrow { 
  z-index:60; 
  width:40px; 
  height:40px; 
  border-radius:50%; 
  border:1px solid var(--border-color); 
  background: rgba(0,0,0,0.5);
  display:grid; 
  place-items:center; 
  cursor: pointer;
  transition: all 0.2s ease;
}
.pagination > .arrow:hover {
  background: var(--bg-card);
  border-color: var(--crunchyroll-orange);
}
.pagination > .arrow svg { 
  width:20px; 
  height:20px; 
  stroke-width:2; 
  color:var(--text-primary); 
}
.pagination .progress-sub-container { 
  z-index:60; 
  width:300px; 
  height:40px; 
  display:flex; 
  align-items:center; 
}
.pagination .progress-sub-container .progress-sub-background { 
  width:300px; 
  height:2px; 
  background-color:rgba(255,255,255,0.2); 
}
.pagination .progress-sub-container .progress-sub-background .progress-sub-foreground { 
  height:2px; 
  background-color:var(--crunchyroll-orange); 
}
.pagination .slide-numbers { 
  width:40px; 
  height:40px; 
  overflow:hidden; 
  z-index:60; 
  position:relative; 
  display: flex;
  align-items: center;
  justify-content: center;
}
.pagination .slide-numbers .item { 
  width:40px; 
  height:40px; 
  position:absolute; 
  color:var(--text-primary); 
  top:0; 
  left:0; 
  display:grid; 
  place-items:center; 
  font-size:14px; 
  font-weight:600; 
}
.cover { 
  position:absolute; 
  left:0; 
  top:0; 
  width:100vw; 
  height:100vh; 
  background-color:var(--bg-darker); 
  pointer-events:none; 
  z-index:10; 
}

/* ===== RESPONSIVE DESIGN - MÓVILES ===== */

/* Tablets grandes */
@media (max-width: 1000px){
  nav{ 
    flex-direction:column; 
    align-items:flex-start; 
    gap:12px; 
    padding:16px 24px; 
  }
  nav .nav-links{ 
    width:100%; 
    justify-content:flex-start; 
    gap:12px; 
    row-gap:8px; 
    font-size:12px; 
  }
  nav .nav-links > div{ 
    background:rgba(255,255,255,0.08); 
    padding:4px 10px; 
    border-radius:999px; 
  }
  .anime-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
  }
}

/* Tablets */
@media (max-width: 900px){
  .details{ 
    top:120px; 
    left:24px; 
  }
  .details .title-1,.details .title-2{ 
    font-size:46px; 
  }
  .details > .desc{ 
    width:calc(100vw - 48px); 
    font-size:13px; 
  }
  .details > .cta{ 
    width:calc(100vw - 48px); 
  }
  .pagination .progress-sub-container{ 
    width:320px; 
  }
  #demo { 
    height: 70vh; 
    margin-bottom: 1.5rem; 
  }
}

/* Móviles grandes */
@media (max-width: 768px){
  .catalog-main .main-content{ 
    padding:1.5rem 1rem 3rem; 
  }
  .footer {
    padding: 20px 0;
  }
  .footer .container {
    padding: 0 12px;
  }
  .footer .footer-content{ 
    grid-template-columns:1fr; 
    gap: 20px;
  }
  .footer .footer-section h3 {
    font-size: 1rem;
  }
  .footer .footer-section p {
    font-size: 0.85rem;
  }
  .footer .social-links{ 
    grid-template-columns:repeat(2,1fr); 
    gap: 8px;
  }
  .footer .social-item {
    padding: 8px;
    font-size: 0.8rem;
  }
  .footer .social-item img {
    width: 20px;
    height: 20px;
  }
  .footer .footer-text {
    font-size: 0.8rem;
    margin-top: 16px;
  }
  .anime-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
  }
  .anime-card img {
    height: 180px;
  }
  .anime-info {
    padding: 1rem;
  }
  .anime-info h3 {
    font-size: 1rem;
  }
  .anime-info p {
    font-size: 0.85rem;
  }
  .section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
}

/* Móviles medianos */
@media (max-width: 600px){
  nav{ 
    padding:0 16px; 
    flex-wrap: wrap;
    height: 56px;
  }
  nav > div:first-child {
    font-size: 14px;
  }
  nav > div:first-child img {
    height: 20px;
  }
  nav .menu-toggle { display:inline-flex; align-items:center; justify-content:center; }
  nav .nav-links { display:none; }
  nav.open .nav-links { 
    display:flex; 
    position:fixed; 
    top:56px; 
    left:0; 
    right:0; 
    width:100%; 
    background:var(--bg-darker); 
    border-top:1px solid var(--border-color); 
    padding:12px 16px; 
    gap:12px; 
    flex-direction:column; 
    align-items:stretch; 
    max-height: calc(100vh - 56px);
    overflow-y: auto; 
    z-index:1000; 
    overflow-x: hidden;
  }
  nav.open .nav-links > div { display:block; width:100%; background:rgba(255,255,255,0.08); padding:10px 12px; border-radius:8px; }
  nav.open .nav-links > a { display:block; width:100%; background:rgba(255,255,255,0.08); padding:10px 12px; border-radius:8px; text-decoration:none; color: var(--text-primary); }
  .details{ 
    top: 80px; 
    bottom: auto; 
    left:16px; 
    transform: none;
    max-width: calc(100vw - 32px);
  }
  .details .title-1,.details .title-2{ 
    font-size:36px; 
    line-height: 1.1;
  }
  .details .title-box-1, .details .title-box-2 {
    height: 60px;
  }
  .details .place-box {
    height: 36px;
  }
  .details .place-box .text {
    font-size: 14px;
    padding-top: 12px;
  }
  .details > .desc{ 
    width:calc(100vw - 32px); 
    font-size:12px; 
    margin-top: 12px;
    line-height: 1.4;
  }
  .details > .cta{ 
    width:calc(100vw - 32px); 
    justify-content:flex-start; 
    margin-top: 16px;
    gap: 8px;
  }
  .details > .cta > .discover {
    width: 100%;
    justify-content: center;
  }
  .details::before {
    left: -16px;
    top: -16px;
    width: calc(100% + 32px);
    height: calc(100% + 32px);
    background: linear-gradient(0deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.3) 80%, rgba(0,0,0,0) 100%);
  }
  .details > .cta > .bookmark {
    width: 32px;
    height: 32px;
  }
  .details > .cta > .bookmark svg {
    width: 18px;
    height: 18px;
  }
  .details > .cta > .discover {
    font-size: 11px;
    padding: 6px 16px;
    min-height: 32px;
  }
  .pagination .progress-sub-container{ 
    width:200px; 
    margin-left: 12px;
  }
  .pagination .progress-sub-container .progress-sub-background {
    width: 200px;
  }
  .pagination > .arrow{ 
    width:36px; 
    height:36px; 
  }
  .pagination > .arrow svg {
    width: 18px;
    height: 18px;
  }
  .pagination .slide-numbers{ 
    width:36px; 
    height:36px; 
  }
  .pagination .slide-numbers .item{ 
    font-size:20px; 
    width: 36px;
    height: 36px;
  }
  .catalog-main{ 
    padding-top: 8vh; 
  }
  #demo { 
    height: 60vh; 
    margin-bottom: 1rem; 
  }
  .card-content{ 
    display:none; 
  }
  .details > .cta{ 
    position:relative; 
    z-index:60; 
  }
  .anime-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
  }
  .anime-card img {
    height: 160px;
  }
  .anime-info {
    padding: 0.75rem;
  }
  .anime-info h3 {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
  }
  .anime-info p {
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
  }
  .status-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
  }
  .anime-rating {
    font-size: 0.75rem;
  }
  .pagination { display: none; }
}

/* Móviles pequeños */
@media (max-width: 480px){ 
  .card-content{ 
    display:none; 
  }
  nav {
    padding: 0 12px;
    height: 56px;
  }
  nav > div:first-child {
    font-size: 13px;
  }
  nav > div:last-child {
    font-size: 11px;
    gap: 12px;
  }
  .details{ 
    top: 72px; 
    bottom: auto; 
    left:12px; 
    transform: none;
    max-width: calc(100vw - 24px);
  }
  .details .title-1,.details .title-2{ 
    font-size:32px; 
    line-height: 1;
  }
  .details .title-box-1, .details .title-box-2 {
    height: 50px;
  }
  .details .place-box {
    height: 32px;
  }
  .details .place-box .text {
    font-size: 13px;
    padding-top: 10px;
  }
  .details > .desc{ 
    font-size:11px; 
    margin-top: 10px;
  }
  .details > .cta{ 
    margin-top: 12px;
    gap: 6px;
  }
  .details > .cta > .discover {
    width: 100%;
    justify-content: center;
  }
  .details > .cta > .bookmark {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 2px solid var(--crunchyroll-orange);
  }
  .details::before {
    left: -12px;
    top: -12px;
    width: calc(100% + 24px);
    height: calc(100% + 24px);
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.65) 50%, rgba(0,0,0,0.35) 80%, rgba(0,0,0,0) 100%);
  }
  .details > .cta > .bookmark {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 2px solid var(--crunchyroll-orange);
  }
  .details > .cta > .bookmark svg {
    width: 16px;
    height: 16px;
  }
  .details > .cta > .discover {
    font-size: 10px;
    padding: 5px 12px;
    min-height: 30px;
  }
  .pagination {
    flex-wrap: wrap;
    gap: 12px;
    left: 12px;
    bottom: 80px;
  }
  .pagination .progress-sub-container{ 
    width:120px; 
    margin-left: 0;
  }
  .pagination .progress-sub-container .progress-sub-background {
    width: 160px;
  }
  .pagination > .arrow{ 
    width:32px; 
    height:32px; 
  }
  .pagination > .arrow svg {
    width: 16px;
    height: 16px;
  }
  .pagination .slide-numbers{ 
    width:32px; 
    height:32px; 
  }
  .pagination .slide-numbers .item{ 
    font-size:18px; 
    width: 32px;
    height: 32px;
  }
  #demo { 
    height: 55vh; 
  }
  .catalog-main .main-content {
    padding: 1rem 0.75rem 2rem;
  }
  .section-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }
  .footer {
    padding: 16px 0;
  }
  .footer .container {
    padding: 0 10px;
  }
  .footer .footer-section h3 {
    font-size: 0.95rem;
  }
  .footer .footer-section p {
    font-size: 0.8rem;
  }
  .footer .social-item {
    padding: 6px;
    font-size: 0.75rem;
  }
  .footer .social-item img {
    width: 18px;
    height: 18px;
  }
  .anime-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  .anime-card {
    border-radius: 10px;
  }
  .anime-card img {
    height: 140px;
  }
  .anime-info {
    padding: 0.6rem;
  }
  .anime-info h3 {
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
  }
  .anime-info p {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
  }
  .anime-status {
    margin-top: 0.5rem;
  }
  .status-badge {
    font-size: 0.65rem;
    padding: 0.15rem 0.5rem;
  }
  .anime-rating {
    font-size: 0.7rem;
  }
}

/* Móviles muy pequeños */
@media (max-width: 360px){
  nav {
    padding: 8px 10px;
  }
  nav > div:first-child {
    font-size: 10px;
  }
  nav > div:last-child {
    font-size: 9px;
    gap: 4px;
  }
  .details {
    top: 64px;
    bottom: auto;
    left: 10px;
    transform: none;
  }
  .details > .cta > .discover {
    width: 100%;
    justify-content: center;
  }
  .details::before {
    left: -10px;
    top: -10px;
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0.4) 80%, rgba(0,0,0,0) 100%);
  }
  .details .title-1, .details .title-2 {
    font-size: 24px;
  }
  .details .title-box-1, .details .title-box-2 {
    height: 45px;
  }
  .details > .desc {
    font-size: 10px;
  }
  .pagination .progress-sub-container {
    width: 140px;
  }
  .pagination .progress-sub-container .progress-sub-background {
    width: 140px;
  }
  .pagination > .arrow {
    width: 28px;
    height: 28px;
  }
  .pagination .slide-numbers {
    width: 28px;
    height: 28px;
  }
  .pagination .slide-numbers .item {
    font-size: 16px;
    width: 28px;
    height: 28px;
  }
  #demo {
    height: 50vh;
  }
  .anime-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .anime-card img {
    height: 200px;
  }
  .catalog-main .main-content {
    padding: 0.75rem 0.5rem 1.5rem;
  }
}