/* LEEDEO STUDIO - Global Stylesheet
Unified & GPU-Accelerated for Main Page & Policy Page
*/


/* --- Configuración de Variables (Variables críticas inyectadas en head.html) --- */
:root {
  --violet-primary: #8b5cf6;
  --violet-light: #c084fc;
  --pink-accent: #f472b6;
  --text-slate: #f1f5f9;
  --text-dim: #94a3b8;
  --transition-smooth: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Utilidades de Borde Redondeado (Fix para Linter) */
.rounded-custom-40 { border-radius: 2.5rem; }
.rounded-custom-32 { border-radius: 2rem; }
.rounded-custom-48 { border-radius: 3rem; }

/* Tarjetas y Contenedores */
/* Las declaraciones @font-face de FontAwesome han sido movidas a head.html para evitar FOUT/FOIT */

/* --- Reseteo y Base --- */
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-slate);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.font-pacifico {
  font-family: 'Pacifico', cursive;
  font-weight: 400;
}

/* --- Componentes Reutilizables --- */
/* --- Componentes Reutilizables --- */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem; /* rounded-3xl */
  transition: var(--transition-smooth);
  overflow: hidden;
}

.glass-card:hover {
  transform: translateY(-8px);
  border-color: var(--violet-light);
  box-shadow: 0 25px 50px -12px rgba(139, 92, 246, 0.3);
  background: rgba(45, 30, 75, 0.8);
}

.static-glass-card {
  background: rgba(45, 30, 75, 0.8);
  backdrop-filter: blur(16px);
  border-radius: 1.5rem;
  border: 1px solid rgba(139, 92, 246, 0.4);
  box-shadow: 0 15px 35px -10px rgba(139, 92, 246, 0.2);
}

.gradient-text {
  background: linear-gradient(135deg, var(--violet-light) 0%, var(--pink-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-right: 0.15em;
  margin-right: -0.1em;
  display: inline-block;
  line-height: 1.2;
}

/* Botones Estándar Leedeo */
.btn-primary, .btn-secondary, .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem; /* rounded-xl */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--violet-primary) 0%, #a855f7 100%);
  color: white;
  box-shadow: 0 10px 20px -5px rgba(124, 58, 237, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -8px rgba(124, 58, 237, 0.6);
  filter: brightness(1.1);
}

.btn-secondary {
  background: rgba(15, 10, 29, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  color: white;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  filter: brightness(1.1);
}



.btn-outline {
  background: transparent;
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #a78bfa;
  font-size: 0.75rem; /* text-xs — es btn de navegación secundaria */
  padding: 0.625rem 1.25rem;
}

.btn-outline:hover {
  background: #8b5cf6;
  border-color: #8b5cf6;
  color: white;
  transform: translateY(-2px);
}

.wa-badge {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: #4ade80;
}

/* --- Efectos de Fondo y Hero --- */
.hero-gradient {
  position: relative;
  background: var(--bg-dark);
  overflow: hidden;
}

/* Fondo específico para main en página de políticas */
main.hero-gradient {
  background: radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.15) 0%, rgba(5, 1, 13, 1) 70%);
}

.hero-bg-anim {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.blob {
  position: absolute;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  animation: move 15s infinite alternate ease-in-out;
  will-change: transform;
  /* Optimización GPU */
}

.blob-1 {
  background: var(--violet-primary);
  top: -10%;
  left: -10%;
}

.blob-2 {
  background: var(--pink-accent);
  bottom: -10%;
  right: -5%;
  animation-duration: 20s;
  animation-delay: -5s;
}

.blob-3 {
  background: #4c1d95;
  top: 20%;
  right: 20%;
  width: 30vw;
  height: 30vw;
  animation-duration: 12s;
  animation-delay: -2s;
}

@keyframes move {
  0% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(10%, 15%) scale(1.15);
  }

  66% {
    transform: translate(-15%, 5%) scale(0.95);
  }

  100% {
    transform: translate(5%, -10%) scale(1.05);
  }
}

/* --- Animaciones de Entrada --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- Marquee de Testimonios --- */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  width: 100%;
  padding: 2rem 0;
}

.marquee-container::before,
.marquee-container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 10;
  pointer-events: none;
}

.marquee-container::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-dark), transparent);
}

.marquee-container::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-dark), transparent);
}

.marquee-content {
  display: flex;
  width: max-content;
  animation: scroll 60s linear infinite;
  will-change: transform;
}

.marquee-content:hover {
  animation-play-state: paused;
}

.testimonial-card {
  width: 380px;
  margin-right: 2rem;
  flex-shrink: 0;
  white-space: normal;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* --- Estilos de Contenido de Posts & Políticas --- */
.policy-content {
  color: var(--text-dim);
  line-height: 1.8;
  font-size: 1.15rem;
  column-count: 1 !important;
}

.policy-content h2,
.policy-content h3 {
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 3.5rem;
  margin-bottom: 2rem;
}

.policy-content h2 {
  font-size: 2.25rem;
  color: var(--violet-light);
}

/* Resetear margen superior si es el primer elemento */
.policy-content section:first-child h2,
.policy-content section:first-child h3,
.policy-content>h2:first-child,
.policy-content>h3:first-child {
  margin-top: 0;
}

.policy-content h3 {
  font-size: 1.75rem;
  position: relative;
  padding-left: 1.5rem;
  border-left: 4px solid var(--violet-primary);
}

.policy-content p {
  margin-bottom: 1.5rem;
}

.policy-content ul {
  list-style: none;
  padding-left: 1rem;
  margin-bottom: 3rem;
}

.policy-content li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.policy-content li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--violet-primary);
  font-weight: 800;
}

.policy-content hr {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  margin: 3rem 0;
}


.policy-content strong {
  color: #fff;
  font-weight: 600;
}

/* --- Estilos para Tablas en el Blog --- */
.policy-content .table-wrapper {
  overflow-x: auto;
  margin-bottom: 3.5rem;
  border-radius: 1.5rem;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4);
}

.policy-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: rgba(26, 17, 48, 0.4);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 1.5rem;
  overflow: hidden;
  font-size: 0.95rem;
  margin-bottom: 0; /* Controlado por el wrapper */
}

.policy-content th {
  background: rgba(139, 92, 246, 0.25);
  color: #ffffff;
  font-weight: 800;
  text-align: left;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(139, 92, 246, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
}

.policy-content td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: #cbd5e1; /* Más claro para mejor lectura */
  vertical-align: middle;
  line-height: 1.5;
  transition: all 0.3s ease;
}

.policy-content tr:last-child td {
  border-bottom: none;
}

.policy-content tr:hover td {
  background: rgba(139, 92, 246, 0.12);
  color: #ffffff;
}

/* Corregir el color de los enlaces dentro de tablas */
.policy-content td a {
  color: var(--violet-light) !important;
  text-decoration: underline !important;
}

/* --- Estilo para links en línea --- */
.policy-content p a,
.policy-content li a {
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  color: var(--violet-light);
  text-decoration: underline;
  text-decoration-color: rgba(192, 132, 252, 0.4);
  text-underline-offset: 4px;
  display: inline;
  font-weight: 600;
  margin: 0;
  transition: all 0.3s ease;
}

.policy-content p a:hover,
.policy-content li a:hover {
  color: #ffffff;
  text-decoration-color: var(--violet-light);
  background: none;
  transform: none;
}

/* Estilo para botones de acción manuales desde Markdown */
.btn-markdown {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #7c3aed;
  /* violet-600 - más integrado con el fondo dark */
  color: #ffffff !important;
  padding: 0.8rem 1.75rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 15px -3px rgba(139, 92, 246, 0.25);
  text-decoration: none !important;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  margin: 1rem 0;
}

.btn-markdown:hover {
  background: var(--violet-primary);
  color: #ffffff !important;
  transform: scale(1.04);
  box-shadow: 0 15px 25px -4px rgba(139, 92, 246, 0.4);
}


/* --- Buscador del Blog --- */
#blog-search {
  font-family: 'Plus Jakarta Sans', sans-serif;
  caret-color: var(--violet-primary);
}

#blog-search::placeholder {
  color: rgba(148, 163, 184, 0.5);
}

#blog-search:focus {
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2), 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}

/* =============================================
   LEEDEO CLEANER PAGE — Componentes de Diseño
   ============================================= */

/* --- Mockup Frame para capturas de interfaz --- */
.lc-mockup-frame {
  position: relative;
  border-radius: 1.25rem;
  background: #1e1432;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.lc-mockup-titlebar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(15, 10, 29, 0.5);
}
.lc-mockup-dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
}
.lc-mockup-dot--red { background: rgba(239, 68, 68, 0.5); }
.lc-mockup-dot--yellow { background: rgba(245, 158, 11, 0.5); }
.lc-mockup-dot--green { background: rgba(34, 197, 94, 0.5); }
.lc-mockup-label {
  margin-left: 0.75rem;
  font-size: 0.7rem;
  font-family: monospace;
  color: #64748b;
  text-transform: lowercase;
}
.lc-mockup-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.lc-mockup-fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 30%;
  background: linear-gradient(to top, #0f0a1d, transparent);
  pointer-events: none;
  opacity: 0.8;
}

/* --- Feature Card Icon Container --- */
.lc-icon-box {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* --- Code Inline Fix (para DISM/SFC) --- */
.lc-code {
  background: rgba(0, 0, 0, 0.3);
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
  color: #c4b5fd;
  font-size: inherit;
  font-family: monospace;
  vertical-align: baseline;
  line-height: inherit;
}

/* --- CTA Box --- */
.lc-cta-box {
  position: relative;
  border-radius: 2rem;
  padding: 3rem 2.5rem;
  border: 1px solid rgba(139, 92, 246, 0.2);
  box-shadow: 0 25px 50px -12px rgba(139, 92, 246, 0.15);
  overflow: hidden;
}
@media (min-width: 768px) {
  .lc-cta-box { padding: 4rem; }
}
.lc-cta-bg-icon {
  position: absolute;
  right: -2rem;
  bottom: -2rem;
  font-size: 12rem;
  color: rgba(139, 92, 246, 0.05);
  transform: rotate(-12deg);
  pointer-events: none;
}
.lc-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #7c3aed;
  color: #ffffff;
  padding: 1.25rem 2.5rem;
  border-radius: 1rem;
  font-size: 1.125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: all 0.3s ease;
  box-shadow: 0 20px 25px -5px rgba(139, 92, 246, 0.25);
  text-decoration: none;
}
.lc-download-btn:hover {
  background: #6d28d9;
  transform: scale(1.05);
}


/* Ajustes de responsividad */
@media (max-width: 768px) {
  .testimonial-card {
    width: 300px;
  }

  .blob {
    width: 80vw;
    height: 80vw;
  }
}


/* --- Bloques de Código en Posts --- */
.policy-content pre {
  background: rgba(8, 5, 18, 0.85);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-left: 3px solid var(--violet-primary);
  border-radius: 0.75rem;
  padding: 1.5rem 1.75rem;
  margin: 2rem 0 2.5rem;
  overflow-x: auto;
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.5);
  position: relative;
}

.policy-content pre::before {
  content: "GDScript";
  position: absolute;
  top: 0.6rem;
  right: 1rem;
  font-size: 0.6rem;
  font-family: monospace;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(139, 92, 246, 0.5);
}

.policy-content pre code {
  font-family: 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
  font-size: 0.875rem;
  line-height: 1.75;
  color: #e2e8f0;
  background: none;
  padding: 0;
  border: none;
  border-radius: 0;
}

/* Colores de sintaxis básicos (sin librería externa) */
.policy-content pre code .keyword  { color: #c084fc; } /* extends, func, const, var, if */
.policy-content pre code .function { color: #67e8f9; } /* nombres de función */
.policy-content pre code .number   { color: #f9a8d4; } /* literales numéricos */
.policy-content pre code .comment  { color: #4b5563; font-style: italic; }
.policy-content pre code .string   { color: #86efac; }

/* Código inline dentro de párrafos */
.policy-content p code,
.policy-content li code {
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 0.3rem;
  padding: 0.1rem 0.45rem;
  font-family: 'Fira Code', 'Consolas', monospace;
  font-size: 0.85em;
  color: #c4b5fd;
}
