/* LIA SaaS Theme Variables */
:root {
  --bg-main: #0B0A0F;
  --bg-card: rgba(22, 21, 28, 0.6);
  --bg-surface: #1E1D27;
  --text-main: #F4F4F6;
  --text-muted: #A3A3AC;
  --accent-primary: #7C3AED;
  --accent-secondary: #06B6D4;
  --accent-glow: rgba(124, 58, 237, 0.3);
  --border-light: rgba(255, 255, 255, 0.08);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.lia-saas-theme {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

body.lia-saas-theme h1, body.lia-saas-theme h2, body.lia-saas-theme h3, body.lia-saas-theme h4, .lia-brand-name {
  font-family: var(--font-heading);
}

body.lia-saas-theme a {
  text-decoration: none;
  color: inherit;
}

.lia-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.accent-handwritten {
  font-family: 'Emilys Candy', cursive !important;
  font-size: 15px;
  letter-spacing: 0.5px;
}

/* ----------------------- HEADER ----------------------- */
.lia-header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(11, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  padding: 15px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lia-logo-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lia-logo-brand img {
  height: 40px;
}

.lia-brand-name {
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(90deg, #f472b6, #06B6D4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(244, 114, 182, 0.5));
}

.lia-nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
}

.lia-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.lia-nav a:hover {
  color: #fff;
}

/* Botones */
.lia-btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.lia-btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), #4C1D95);
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.lia-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(124, 58, 237, 0.5);
  color: white;
}

.lia-btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  color: #fff;
}

.lia-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.lia-btn-outline {
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
  background: transparent;
}

/* ----------------------- HERO ----------------------- */
.lia-hero {
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
  background: radial-gradient(circle at top center, rgba(124, 58, 237, 0.15) 0%, rgba(11, 10, 15, 1) 70%);
}

.hero-chip {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-secondary);
  margin-bottom: 24px;
}

.hero-title {
  font-size: 64px;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 24px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero-title span {
  background: linear-gradient(90deg, var(--accent-secondary), var(--accent-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: glow-pulse 3s infinite alternate;
  text-shadow: 0 0 10px rgba(124, 58, 237, 0.2);
}

@keyframes glow-pulse {
  0% { text-shadow: 0 0 10px rgba(124, 58, 237, 0.2); }
  100% { text-shadow: 0 0 25px rgba(124, 58, 237, 0.6), 0 0 40px rgba(6, 182, 212, 0.3); }
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 40px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 80px;
}

.hero-mockup {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.hero-mockup img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border-light);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  position: relative;
  z-index: 2;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 80%;
  transform: translate(-50%, -50%);
  background: var(--accent-primary);
  filter: blur(120px);
  opacity: 0.2;
  z-index: 1;
}

/* ----------------------- SECTIONS HEADERS ----------------------- */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ----------------------- CÓMO FUNCIONA / FEATURES ----------------------- */
.lia-features {
  padding: 100px 0;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.bento-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 30px;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  transition: transform 0.3s;
}

.bento-item:hover {
  transform: translateY(-5px);
  border-color: rgba(124, 58, 237, 0.4);
}

.bento-icon {
  font-size: 28px;
  margin-bottom: 20px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s ease;
}

/* Colores Neón Individuales */
.bento-item:nth-child(1) .bento-icon { 
  border-color: #7C3AED; 
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.2); 
}
.bento-item:nth-child(2) .bento-icon { 
  border-color: #06B6D4; 
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.2); 
}
.bento-item:nth-child(3) .bento-icon { 
  border-color: #ff00e1; 
  box-shadow: 0 0 10px rgba(255, 0, 225, 0.2); 
}
.bento-item:nth-child(4) .bento-icon { 
  border-color: #00ff4c; 
  box-shadow: 0 0 10px rgba(0, 255, 76, 0.2); 
}

/* Efecto Brillo al Hover (Toda la tarjeta activa el neón) */
.bento-item:hover:nth-child(1) .bento-icon { box-shadow: 0 0 20px #7C3AED; background: rgba(124, 58, 237, 0.1); }
.bento-item:hover:nth-child(2) .bento-icon { box-shadow: 0 0 20px #06B6D4; background: rgba(6, 182, 212, 0.1); }
.bento-item:hover:nth-child(3) .bento-icon { box-shadow: 0 0 20px #ff00e1; background: rgba(255, 0, 225, 0.1); }
.bento-item:hover:nth-child(4) .bento-icon { box-shadow: 0 0 20px #00ff4c; background: rgba(0, 255, 76, 0.1); }

.bento-item h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: #fff;
}

.bento-item p {
  color: var(--text-muted);
  font-size: 15px;
}

/* ----------------------- BIBLIOTECA ----------------------- */
.lia-library {
  padding: 80px 0;
  background: var(--bg-main);
  border-top: 1px solid var(--border-light);
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.library-card {
  background: transparent;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.library-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-secondary);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.library-badge-container {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.lib-badge {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 700;
  text-transform: uppercase;
}

.lib-badge.category { background: rgba(255, 255, 255, 0.05); color: var(--text-muted); }
.lib-badge.status { background: rgba(6, 182, 212, 0.1); color: var(--accent-secondary); border: 1px solid rgba(6, 182, 212, 0.2); }

.library-card-img {
  background: rgba(0, 0, 0, 0.4);
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 20px;
}

.library-card-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 0.95;
  transition: all 0.3s ease;
  filter: drop-shadow(0 15px 30px rgba(0,0,0,0.6));
}

.library-card:hover .library-card-img img {
  opacity: 1;
  transform: scale(1.05);
  filter: drop-shadow(0 20px 40px rgba(124, 58, 237, 0.3));
}

.library-card-body {
  padding: 20px;
}

.library-card-body h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.library-card-body p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 20px;
}

.lia-link-btn {
  color: var(--accent-secondary);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.2s;
}

.lia-link-btn:hover {
  color: #fff;
  gap: 12px;
}

/* ----------------------- CASOS DE ÉXITO (Social Proof - High Contrast) ----------------------- */
.lia-social-proof {
  padding: 100px 0;
  background: linear-gradient(180deg, #100f16 0%, var(--bg-main) 100%);
  position: relative;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.proof-card {
  background: rgba(124, 58, 237, 0.03);
  border: 2px solid rgba(124, 58, 237, 0.1);
  padding: 40px;
  border-radius: 24px;
  position: relative;
  transition: all 0.4s ease;
  overflow: hidden;
}

.proof-card:hover {
  background: rgba(124, 58, 237, 0.05);
  border-color: var(--accent-primary);
  transform: scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.proof-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--accent-primary);
  color: #fff;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.proof-metric {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
  background: linear-gradient(90deg, #fff, var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.proof-card h4 {
  font-size: 18px;
  margin-bottom: 15px;
  color: var(--text-main);
}

.proof-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.5;
}

/* ----------------------- CTA FINAL ----------------------- */
.lia-cta-final {
  padding: 120px 0;
  text-align: center;
  background: radial-gradient(circle at center, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
}

.cta-final-box {
  background: var(--bg-surface);
  border: 1px solid var(--accent-primary);
  padding: 60px 40px;
  border-radius: 32px;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 0 50px rgba(124, 58, 237, 0.1);
}

.cta-final-box h2 {
  font-size: 48px;
  margin-bottom: 20px;
}

.cta-final-box p {
  font-size: 20px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

/* ----------------------- VISIÓN ----------------------- */
.lia-vision {
  padding: 100px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  background: rgba(124, 58, 237, 0.02);
}

.vision-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.vision-text h2 {
  font-size: 48px;
  margin-bottom: 20px;
  line-height: 1.2;
}

.vision-desc {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.vision-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}

.v-feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-surface);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
  cursor: pointer;
}

.v-feature:hover {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.v-icon {
  font-size: 24px;
  background: rgba(124, 58, 237, 0.1);
  padding: 10px;
  border-radius: 10px;
}

.v-content strong {
  display: block;
  font-size: 18px;
  color: #fff;
  margin-bottom: 4px;
}

.v-content p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Glass mockup para la sección inmersiva */
.vision-visual .glass-mockup {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(15px);
  overflow: hidden;
  box-shadow: 0 40px 60px rgba(0,0,0,0.4);
}

.glass-header {
  height: 40px;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red { background: #FF5F56; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #27C93F; }

.glass-body {
  padding: 40px;
  text-align: center;
}

.audio-wave {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin: 30px 0;
  height: 40px;
}

.audio-wave span {
  width: 4px;
  background: var(--accent-secondary);
  border-radius: 2px;
  animation: wave 1s ease-in-out infinite alternate;
}

.audio-wave span:nth-child(1) { height: 20%; animation-delay: 0.1s; }
.audio-wave span:nth-child(2) { height: 60%; animation-delay: 0.2s; }
.audio-wave span:nth-child(3) { height: 100%; animation-delay: 0.3s; }
.audio-wave span:nth-child(4) { height: 80%; animation-delay: 0.4s; }
.audio-wave span:nth-child(5) { height: 40%; animation-delay: 0.5s; }
.audio-wave span:nth-child(6) { height: 70%; animation-delay: 0.6s; }

@keyframes wave {
  0% { height: 10%; }
  100% { height: 100%; }
}

.gamification-badge {
  display: inline-block;
  padding: 10px 20px;
  background: rgba(255, 189, 46, 0.1);
  border: 1px solid rgba(255, 189, 46, 0.3);
  border-radius: 30px;
  color: #FFBD2E;
  font-weight: 600;
  margin-bottom: 20px;
}

.small-info {
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.5;
}

/* ----------------------- EL PROYECTO ----------------------- */
.lia-about {
  padding: 100px 0;
}

.about-flex {
  display: flex;
  gap: 60px;
  align-items: center;
}

.about-img-container {
  flex: 1;
  position: relative;
}

.about-img-container img {
  width: 100%;
  border-radius: 20px;
  position: relative;
  z-index: 2;
}

.about-glow {
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background: var(--accent-secondary);
  filter: blur(60px);
  opacity: 0.15;
  z-index: 1;
}

.about-content {
  flex: 1;
}

.about-content h2 {
  font-size: 40px;
  margin-bottom: 24px;
}

.about-content p {
  color: var(--text-muted);
  font-size: 18px;
  margin-bottom: 20px;
}

.about-content p strong {
  color: #fff;
}

.about-actions {
  display: flex;
  gap: 16px;
  margin-top: 40px;
}

/* ----------------------- FOOTER ----------------------- */
.lia-footer {
  background: #000;
  padding: 40px 0;
  border-top: 1px solid var(--border-light);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo img {
  height: 30px;
}

.footer-logo span {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  font-family: var(--font-heading);
}

.footer-copy {
  color: var(--text-muted);
  font-size: 14px;
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  color: var(--text-muted);
  font-size: 13px;
}

.footer-legal a:hover {
  color: #fff;
}

/* Responsive - Mobile First / SaaS Experience */
.lia-burger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.lia-burger-btn span {
  width: 32px;
  height: 3px;
  background: #fff;
  border-radius: 10px;
  transition: all 0.3s linear;
  position: relative;
  transform-origin: 1px;
}

.lia-burger-btn.active span:first-child {
  transform: rotate(45deg);
}

.lia-burger-btn.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(20px);
}

.lia-burger-btn.active span:nth-child(3) {
  transform: rotate(-45deg);
}

@media (max-width: 900px) {
  .vision-layout, .about-flex {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  /* Hamburger Menu */
  .lia-burger-btn {
    display: flex;
  }
  
  .lia-nav-actions .lia-btn {
    display: none; /* Ocultar botón 'Comenzar' junto a nav en móvil */
  }

  .lia-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 20, 0.85);
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: right 0.4s ease-in-out;
    z-index: 1000;
  }

  .lia-nav.active {
    right: 0;
  }

  .lia-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .lia-nav ul li a {
    font-size: 24px;
    font-family: var(--font-heading);
    color: #fff;
    padding: 16px;
    display: block;
  }

  /* Typography Overrides */
  body.lia-saas-theme p {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 16px;
  }
  
  body.lia-saas-theme h2 {
    font-size: 26px;
    line-height: 1.3;
    margin-bottom: 12px;
  }
  
  body.lia-saas-theme h3 {
    font-size: 20px;
    line-height: 1.4;
  }

  /* Hero Mobile */
  .lia-hero {
    padding: 120px 0 60px;
  }

  .hero-title {
    font-size: 36px;
    line-height: 1.25;
  }

  .hero-subtitle {
    font-size: 16px;
    padding: 0 10px;
    line-height: 1.5;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 16px;
    padding: 0 20px;
  }

  .hero-buttons .lia-btn {
    width: 100%;
    min-height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  /* Bento Grid & Cards */
  .bento-grid {
    grid-template-columns: 1fr;
  }
  
  .bento-item {
    box-shadow: none; /* Reducir glows en móvil */
  }

  /* Biblioteca */
  .library-grid {
    grid-template-columns: 1fr;
  }

  .library-card-img img {
    height: auto;
  }

  .lia-link-btn {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 14px 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-top: 10px;
  }

  /* Secciones Spacing */
  .lia-features, .lia-library, .lia-vision, .lia-about {
    padding: 60px 0;
  }

  /* Video LIA-Staylo */
  .demo-container {
    border-radius: 16px !important;
    margin: 20px 0 !important;
  }
  
  video {
    width: 100% !important;
    height: auto !important;
  }

  /* Visión */
  .vision-layout {
    display: flex;
    flex-direction: column;
  }
  
  .vision-text {
    order: 1;
  }
  
  .vision-visual {
    order: 2;
    margin-top: 20px;
  }
  
  .vision-text h2 {
    font-size: 32px;
  }

  /* About */
  .about-flex {
    display: flex;
    flex-direction: column;
  }
  
  .about-img-container {
    order: 1;
  }
  
  .about-content {
    order: 2;
  }
  
  .about-content h2 {
    font-size: 32px;
  }
  
  .about-actions {
    flex-direction: column;
  }
  
  .about-actions .lia-btn {
    width: 100%;
    text-align: center;
  }
}

/* ======================================================== */
/* ESTILOS LEGACY (Modificados para consistencia SaaS) */
/* ======================================================== */

/* Detalle de Libros - Formato SaaS */
body.fondo-libro1, body.fondo-libro2, body.fondo-libro3 {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif !important;
}

.detalle-layout {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.detalle-texto {
  flex: 1;
  text-align: left;
}

.detalle-imagen {
  flex: 0 0 40%;
}

.detalle-texto h1 {
  font-family: 'Outfit', 'Segoe UI', Arial, sans-serif !important;
  font-size: 38px;
  margin-bottom: 20px;
  color: #fff;
  line-height: 1.2;
}

.detalle-texto p {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif !important;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #ccc;
}

.detalle-imagen img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

@media (max-width: 768px) {
  .detalle-layout {
    flex-direction: column !important;
  }
  
  .detalle-texto {
    text-align: center;
    order: 1;
  }
  
  .detalle-imagen {
    order: 2;
  }
  
  .detalle-texto h1 {
    font-size: 28px;
  }
}

.btn-volver {
  padding: 12px 24px;
  background-color: #f39c12;
  color: #000;
  text-decoration: none;
  font-weight: bold;
  border-radius: 30px;
  transition: background 0.3s ease;
  box-shadow: 0 0 10px rgba(255,215,0,0.5);
}

.btn-comprar:hover,
.btn-volver:hover {
  background-color: #e67e22;
  color: #fff;
}

.fondo-libro2 {
  background: url('images/fondo-libro2.png') no-repeat center center fixed;
  background-size: cover;
}

.fondo-libro3 {
  background: url('images/fondo-libro3.png') no-repeat center center fixed;
  background-size: cover;
}

.fondo-libro1 .detalle-layout {
  background: url("images/fondo-libro1.png") center/cover no-repeat;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

.fondo-libro2 .detalle-layout {
  background: url("images/fondo-libro2.png") center/cover no-repeat;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

.fondo-libro3 .detalle-layout {
  background: url("images/fondo-libro3.png") center/cover no-repeat;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
  pointer-events: none;
}

/* Asegúrate que tu contenido esté por encima */
.header-portada,
.portada,
.portada-contenido {
  position: relative;
  z-index: 1;
}

.fondo-kdp {
  background: url("images/servicio-kdp.png") center/cover no-repeat;
  background-size: cover;
  color: white;
}

.fondo-epub {
  background: url("images/servicio-epub.png") center/cover no-repeat;
  background-size: cover;
  color: white;
}

.fondo-maquetacion {
  background: url("images/servicio-maquetacion.png") center/cover no-repeat;
  background-size: cover;
  color: white;
}

.subtexto-portada {
  margin-top: 125px; /* Puedes aumentar este número si aún se superpone */
  font-size: 1.2rem;
  color: #ddd;
  text-shadow: 1px 1px 3px #000;
}

.contenedor-saga {
  position: relative;
  overflow: hidden;
  max-width: 900px;
  margin: 40px auto;
  padding: 30px;
  border-radius: 15px;
  background-color: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.1);
  backdrop-filter: blur(5px);
}

.video-fondo {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.35;
  pointer-events: none;
  border-radius: 15px;
}

.contenido-texto {
  position: relative;
  z-index: 1;
}

.encabezado-imagen {
  text-align: center;
  margin-bottom: 20px;
}

.encabezado-imagen img {
  max-width: 100%;
  height: auto;
  display: inline-block;
}

/* Imagen por defecto */
.img-saga {
  width: 100%;
  height: auto;
  display: block;
}

/* Reemplazar por versión móvil cuando el ancho sea menor a 768px */
@media (max-width: 768px) {
  .img-saga {
    content: url("images/saga-angelo-movil.png");
  }
}

.detalle-texto {
  background: linear-gradient(to right, #1e3c72, #2a5298);
  padding: 30px;
  border-radius: 20px;
  color: white;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

.detalle-texto h1,
.detalle-texto h2,
.detalle-texto p,
.detalle-texto li {
  color: white;
}

.seccion-contacto {
  background: linear-gradient(160deg, #1a1a1a, #0d0d0d);
  padding: 60px 20px;
  text-align: center;
  color: #fff;
}

.seccion-contacto h2 {
  font-size: 42px;
  color: #f39c12;
  margin-bottom: 20px;
  font-family: 'Emilys Candy', cursive;
}

.seccion-contacto p {
  font-size: 18px;
  color: #ccc;
  margin-bottom: 30px;
}

.botones-contacto {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.blog-cta {
  text-align: center;
  padding: 60px 20px;
}

.lia-section {
  background: linear-gradient(160deg, #0d0d0d, #000);
  color: #f0f0f0;
  font-family: 'Emilys Candy', cursive;
  padding: 60px 20px;
  line-height: 1.7;
}

.lia-recuadro {
  background: linear-gradient(160deg, rgba(0, 0, 0, 0.7), rgba(0, 30, 40, 0.6));
  border: 1px solid rgba(0, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
  max-width: 1000px;
  margin: 0 auto;
}

.lia-hero-image {
  width: 100%;
  max-width: 700px;
  border-radius: 12px;
  margin-bottom: 40px;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.lia-content h2, 
.lia-content h3 {
  font-family: 'Emilys Candy', cursive;
}

.lia-content h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #1a8fce;
}

.lia-content h3 {
  margin-top: 2rem;
  font-size: 1.5rem;
  color: #ed881d;
}

.lia-content p,
.lia-content li {
  font-family: Arial, sans-serif;
  color: #ccc;
  font-size: 17px;
  text-align: justify;
}

.lia-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.lia-content li {
  margin-bottom: 0.75rem;
}

.lia-content p {
  margin-bottom: 1.2rem;
  color: #ccc;
  font-size: 17px;
  text-align: justify;
}

.lia-logo-centrado {
  text-align: center;
  margin: 30px 0 10px;
}

.lia-logo {
  max-width: 140px;
  opacity: 0.8;
}

.btn-volver-inicio,
.btn-descarga-app-prox {
  display: inline-block;
  margin: 20px 10px 0;
  padding: 12px 24px;
  background-color: #035fba;
  color: #0a0a0a;
  font-weight: bold;
  border-radius: 30px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  box-shadow: 0 0 10px rgba(204, 125, 5, 0.4);
}

.btn-volver-inicio:hover,
.btn-descarga-app-prox:hover {
  background-color: #f5e29f;
  color: #262525;
}

.home-icon {
  display: inline-block;
  font-size: 1.8rem;
  margin-top: 1.5rem;
  color: #00ffff;
  text-decoration: none;
}

.home-icon:hover {
  color: #ffffff;
}

.btn-volver-inicio {
  display: inline-block;
  margin: 20px 10px 0;
  padding: 12px 24px;
  background-color: #444;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 30px;
  transition: background-color 0.3s ease;
  box-shadow: 0 0 10px rgba(255,255,255,0.2);
}

.btn-volver-inicio:hover {
  background-color: #666;
  color: #ffd700;
}

.lia-hero {
  text-align: center;
  margin-bottom: 3rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  .lia-recuadro {
    padding: 20px;
  }
}

.subtitulo-lia {
  text-align: center;
  color: #ccc;
  font-size: 1.2rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.lia-cta {
  text-align: center;
  font-size: 1.1rem;
  color: #00ff00;
  font-weight: bold;
  margin: 30px 0;
}

.lia-botones {
  text-align: center;
  margin-top: 30px;
}

.lia-botones a {
  display: inline-block;
  margin: 10px 12px;
}

.home-icon-fixed {
  position: fixed;
  bottom: 20px;
  right: 20px;
  font-size: 2.5rem;
  color: #00ffff;
  text-decoration: none;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 10px 14px;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.home-icon-fixed:hover {
  transform: scale(1.1);
  background-color: #008ba3;
  color: #fff;
}

.lia-content a {
  color: #91b2f9; 
  text-decoration: none;
  font-weight: bold;
}

.lia-content a:hover {
  color: #232223; 
  text-decoration: underline;
}

@media (max-width: 600px) {
  .home-icon-fixed {
    bottom: 80px;
    right: 20px;
  }

  .btn-descarga-app-prox {
    margin-bottom: 60px;
  }

  .lia-hero-image {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  header .logo img {
    height: 40px;
  }
}

@media (max-width: 768px) {
  .branding-section {
    margin-top: 120px !important;
  }
}

/* FEATURE FLAG: Focus Apps Mode */
.focus-apps-mode .hide-on-focus-apps {
    display: none !important;
}
.focus-apps-mode .show-on-focus-apps {
    display: block !important;
}
.show-on-focus-apps {
    display: none;
}

