:root {
  --bg-dark: #050a14;
  --bg-card: #101828;
  --primary: #fff404;    /* Amarillo Neón */
  --accent: #00f2ea;     /* Cyan Eléctrico */
  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --border-glass: rgba(255, 255, 255, 0.1);
  --glass-bg: rgba(16, 24, 40, 0.75);
  --radius-lg: 24px;
  --radius-md: 16px;
  --container-w: 1100px;
  --font-heading: 'Segoe UI', sans-serif;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: system-ui, -apple-system, sans-serif;
  margin: 0;
  overflow-x: hidden;
}

/* --- UTILS --- */
.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.btn {
  text-decoration: none;
  font-weight: 700;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-primary {
  background: var(--primary);
  color: #000;
}

.btn-glow {
  background: linear-gradient(135deg, var(--primary), #ffbc00);
  color: #000;
  box-shadow: 0 0 20px rgba(255, 244, 4, 0.3);
  width: 100%;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1.1rem;
  padding: 1rem;
}
.btn-glow:hover {
  box-shadow: 0 0 40px rgba(255, 244, 4, 0.5);
  transform: translateY(-2px);
}

/* --- HEADER --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1rem 0;
}

.header-inner.glass-panel {
  max-width: var(--container-w);
  margin: 0 auto;
  background: rgba(5, 10, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: 100px;
  padding: 0.5rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand img { height: 120px; }
.nav.desktop-only { display: flex; gap: 2rem; }
.nav a { color: var(--text-main); text-decoration: none; font-size: 0.95rem; opacity: 0.8; }
.nav a:hover { opacity: 1; color: var(--primary); }

/* --- HERO INMERSIVO --- */
.hero-immersive {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.1);
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(5,10,20,0.3) 0%, rgba(5,10,20,0.9) 80%, var(--bg-dark) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-badges {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.back-pill {
  color: var(--text-main);
  text-decoration: none;
  background: rgba(255,255,255,0.1);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.category-pill {
  background: var(--accent);
  color: #000;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.75rem;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  letter-spacing: 1px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  margin: 0 0 0.5rem 0;
  font-weight: 800;
  text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-weight: 300;
}

/* --- BENTO GRID --- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.bento-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.3s ease;
}

.bento-card:hover { transform: translateY(-5px); background: rgba(255,255,255,0.08); }

.bento-icon { font-size: 2rem; color: var(--primary); }
.bento-card small { display: block; color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; }
.bento-card strong { display: block; font-size: 1.1rem; line-height: 1.2; }
.fee-highlight { color: var(--accent); font-weight: 700; }

/* --- LAYOUT PRINCIPAL --- */
.main-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

@media (max-width: 900px) {
  .main-layout { 
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .sticky-sidebar { 
    position: relative;
    top: auto; 
    width: 100%;
    order: 2;
    margin-bottom: 0;
    margin-top: 2rem;
    height: auto;
  }
  .site-header { padding: 0.5rem 0; }
  .header-inner.glass-panel { 
    border-radius: 0; 
    width: 100%; 
    left: 0; 
    border: none; 
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 0.5rem 1rem;
  }
  .brand img { height: 50px; width: auto; }
  .nav.desktop-only { display: none; }
  .hero-immersive { 
    min-height: auto; 
    padding-top: 100px;
    padding-bottom: 3rem; 
    align-items: center;
  }
  .hero-content { text-align: center; }
  .hero-badges { justify-content: center; }
  .hero-title { font-size: 2.5rem; }
  .bento-grid { grid-template-columns: 1fr 1fr; }
  
  @media (max-width: 480px) {
    .bento-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 2rem; }
  }
}
.nav-cta {
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
}

@media (max-width: 400px) {
  .nav-cta { padding: 0.4rem 0.8rem; font-size: 0.75rem; }
}

/* --- CONTENIDO --- */
.divider { border: 0; height: 1px; background: var(--border-glass); margin: 2rem 0; }
.text-block h2 { color: var(--primary); font-size: 1.8rem; margin-bottom: 1rem; }
.readable-text { font-size: 1.05rem; line-height: 1.7; color: #d1d5db; }

/* Chips / Tags */
.specs-container { display: grid; gap: 2rem; grid-template-columns: 1fr 1fr; }
.spec-group h3 { font-size: 1rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.5rem; margin-top: 0;}
.tags-cloud { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
}

/* --- ACORDEONES --- */
.accordion-wrapper { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }

.styled-details {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.3s;
}

.styled-details:hover { border-color: rgba(255,255,255,0.2); }
.styled-details[open] { border-color: var(--primary); }

.styled-details summary {
  padding: 1.2rem;
  cursor: pointer;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  font-size: 1.1rem;
}
.styled-details summary::-webkit-details-marker { display: none; }
.styled-details summary span { display: flex; align-items: center; gap: 0.8rem; }
.arrow { transition: transform 0.3s; }
.styled-details[open] .arrow { transform: rotate(180deg); color: var(--primary); }

.details-content {
  padding: 0 1.5rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border-glass);
  background: rgba(0,0,0,0.2);
}

.ul-modern { padding-left: 1.2rem; }
.ul-modern li { margin-bottom: 0.5rem; color: #d1d5db; }

/* --- SIDEBAR --- */
.sticky-sidebar { position: sticky; top: 120px; height: fit-content; }

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
}

.sidebar-stat {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 1rem;
}
.sidebar-stat span { color: var(--text-muted); }

.price-display { margin: 1.5rem 0; }
.price-display span { display: block; font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.5rem; }

.fee-block-sidebar .fee-range { color: var(--accent); font-weight: 600; margin-top: 0.5rem; font-size: 0.9rem; }
.fee-block-sidebar ul { list-style: none; padding: 0; margin: 0; }
.fee-block-sidebar li { display: flex; justify-content: space-between; margin-bottom: 0.25rem; font-size: 0.95rem; }

.secure-note { font-size: 0.8rem; color: var(--text-muted); text-align: center; margin-top: 1rem; display: flex; align-items: center; justify-content: center; gap: 0.4rem;}

/* --- GALERIA MASONRY --- */
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.masonry-grid img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    cursor: zoom-in;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
    margin-bottom: 1rem;
}

.masonry-grid img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* ================================================== */
/* LIGHTBOX (MODAL) - NECESARIO PARA QUE FLOTE        */
/* ================================================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9); /* Fondo oscuro */
    z-index: 9999;
    display: none; /* Oculto por defecto */
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.lightbox.active {
    display: flex; /* Se muestra al activarse */
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh; 
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.8;
}

.lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}