/*
Theme Name:   Legaly Child
Theme URI:    https://legaly.com
Description:  Tema hijo de Twenty Twenty-Five — Design System Legaly v1.0
Author:       Legaly
Template:     twentytwentyfive
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  legaly-child
*/

/* ═══════════════════════════════════════════════════════════════════════════
   LEGALY — Design System v1.0
   Asistencia Legal Inteligente
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 1. Variables ─────────────────────────────────────────────────────────── */

:root {
  /* Dark (default) */
  --lgl-bg:            #070F1E;
  --lgl-surface:       #0B132B;
  --lgl-cyan:          #00E5FF;
  --lgl-cyan-dim:      #00B4D8;
  --lgl-navy:          #0055A4;
  --lgl-text-1:        #FFFFFF;
  --lgl-text-2:        #E0E1DD;
  --lgl-card-bg:       rgba(255,255,255,0.05);
  --lgl-card-border:   rgba(0,229,255,0.20);
  --lgl-glow:          rgba(0,229,255,0.22);
  --lgl-glow-spread:   rgba(0,229,255,0.08);

  /* Shared */
  --lgl-font:          'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --lgl-radius-sm:     8px;
  --lgl-radius:        12px;
  --lgl-radius-lg:     20px;
  --lgl-radius-pill:   9999px;
  --lgl-ease:          300ms cubic-bezier(0.4,0,0.2,1);
  --lgl-ease-out:      300ms cubic-bezier(0,0,0.2,1);
}

/* Modo claro */
body.lgl-light,
[data-theme="light"] {
  --lgl-bg:            #F8F9FA;
  --lgl-surface:       #FFFFFF;
  --lgl-cyan:          #1D3557;
  --lgl-cyan-dim:      #0077B6;
  --lgl-navy:          #0077B6;
  --lgl-text-1:        #1C2541;
  --lgl-text-2:        #4A5568;
  --lgl-card-bg:       #FFFFFF;
  --lgl-card-border:   #DDE3F0;
  --lgl-glow:          rgba(0,119,182,0.14);
  --lgl-glow-spread:   rgba(0,119,182,0.05);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]):not(body.lgl-dark) {
    --lgl-bg:          #F8F9FA;
    --lgl-surface:     #FFFFFF;
    --lgl-cyan:        #1D3557;
    --lgl-cyan-dim:    #0077B6;
    --lgl-navy:        #0077B6;
    --lgl-text-1:      #1C2541;
    --lgl-text-2:      #4A5568;
    --lgl-card-bg:     #FFFFFF;
    --lgl-card-border: #DDE3F0;
    --lgl-glow:        rgba(0,119,182,0.14);
    --lgl-glow-spread: rgba(0,119,182,0.05);
  }
}


/* ── 2. Base & Reset ─────────────────────────────────────────────────────── */

.lgl-page,
.lgl-section {
  font-family: var(--lgl-font);
  background-color: var(--lgl-bg);
  color: var(--lgl-text-1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--lgl-ease), color var(--lgl-ease);
}

.lgl-page *,
.lgl-section * {
  box-sizing: border-box;
}


/* ── 3. Fondo de circuitos ───────────────────────────────────────────────── */

.lgl-circuit-bg {
  position: relative;
  overflow: hidden;
}

.lgl-circuit-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cg stroke='%2300E5FF' stroke-opacity='.07' stroke-width='.9' fill='none'%3E%3Cpath d='M20 20 L20 100 L100 100'/%3E%3Cpath d='M200 40 L260 40 L260 140 L320 140'/%3E%3Cpath d='M60 200 L60 280 L160 280 L160 320'/%3E%3Cpath d='M140 10 L140 60 L240 60 L240 10'/%3E%3Cpath d='M0 180 L80 180 L80 240 L180 240'/%3E%3Cpath d='M280 200 L280 280 L200 280'/%3E%3C/g%3E%3Cg fill='%2300E5FF' fill-opacity='.17'%3E%3Ccircle cx='20' cy='20' r='2.5'/%3E%3Ccircle cx='100' cy='100' r='2.5'/%3E%3Ccircle cx='200' cy='40' r='2.5'/%3E%3Ccircle cx='260' cy='140' r='2.5'/%3E%3Ccircle cx='60' cy='280' r='2.5'/%3E%3Ccircle cx='160' cy='280' r='2.5'/%3E%3Ccircle cx='140' cy='60' r='2.5'/%3E%3Ccircle cx='240' cy='60' r='2.5'/%3E%3Ccircle cx='80' cy='180' r='2.5'/%3E%3Ccircle cx='180' cy='240' r='2.5'/%3E%3Ccircle cx='280' cy='200' r='2.5'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 320px 320px;
}

body.lgl-light .lgl-circuit-bg::before,
[data-theme="light"] .lgl-circuit-bg::before {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cg stroke='%230077B6' stroke-opacity='.05' stroke-width='.9' fill='none'%3E%3Cpath d='M20 20 L20 100 L100 100'/%3E%3Cpath d='M200 40 L260 40 L260 140 L320 140'/%3E%3Cpath d='M60 200 L60 280 L160 280 L160 320'/%3E%3Cpath d='M140 10 L140 60 L240 60 L240 10'/%3E%3Cpath d='M0 180 L80 180 L80 240 L180 240'/%3E%3Cpath d='M280 200 L280 280 L200 280'/%3E%3C/g%3E%3Cg fill='%230077B6' fill-opacity='.10'%3E%3Ccircle cx='20' cy='20' r='2.5'/%3E%3Ccircle cx='100' cy='100' r='2.5'/%3E%3Ccircle cx='200' cy='40' r='2.5'/%3E%3Ccircle cx='260' cy='140' r='2.5'/%3E%3Ccircle cx='60' cy='280' r='2.5'/%3E%3Ccircle cx='160' cy='280' r='2.5'/%3E%3Ccircle cx='140' cy='60' r='2.5'/%3E%3Ccircle cx='240' cy='60' r='2.5'/%3E%3Ccircle cx='80' cy='180' r='2.5'/%3E%3Ccircle cx='180' cy='240' r='2.5'/%3E%3Ccircle cx='280' cy='200' r='2.5'/%3E%3C/g%3E%3C/svg%3E");
}

.lgl-circuit-bg > * {
  position: relative;
  z-index: 1;
}


/* ── 4. Tipografía ────────────────────────────────────────────────────────── */

.lgl-display {
  font-family: var(--lgl-font);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--lgl-text-1);
}

.lgl-heading-1 {
  font-family: var(--lgl-font);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--lgl-text-1);
}

.lgl-heading-2 {
  font-family: var(--lgl-font);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--lgl-text-1);
}

.lgl-heading-3 {
  font-family: var(--lgl-font);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  line-height: 1.3;
  color: var(--lgl-text-1);
}

.lgl-body-lg {
  font-family: var(--lgl-font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--lgl-text-2);
}

.lgl-body {
  font-family: var(--lgl-font);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--lgl-text-2);
}

.lgl-accent-text {
  color: var(--lgl-cyan);
}


/* ── 5. Layout ───────────────────────────────────────────────────────────── */

.lgl-container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(24px, 5vw, 72px);
}

.lgl-section {
  padding-block: clamp(48px, 8vw, 96px);
}

.lgl-hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-block: clamp(48px, 8vw, 80px);
}

.lgl-hero-grid {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

@media (max-width: 900px) {
  .lgl-hero-grid {
    grid-template-columns: 1fr;
  }
  .lgl-hero-visual {
    order: -1;
    display: flex;
    justify-content: center;
  }
}


/* ── 6. Navegación ───────────────────────────────────────────────────────── */

.lgl-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background-color: rgba(7, 15, 30, 0.88);
  border-bottom: 1px solid var(--lgl-card-border);
  transition: background-color var(--lgl-ease);
}

body.lgl-light .lgl-nav,
[data-theme="light"] .lgl-nav {
  background-color: rgba(255,255,255,0.92);
}

.lgl-nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-block: 14px;
}

.lgl-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.lgl-logo-icon {
  width: 34px;
  height: 38px;
  border-radius: 7px 7px 14px 14px;
  background: linear-gradient(135deg, #1E3A8A, #1D3557);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 14px rgba(0,229,255,0.45);
  font-size: 17px;
  color: #fff;
  font-weight: 900;
  font-family: var(--lgl-font);
  transition: box-shadow var(--lgl-ease);
}

body.lgl-light .lgl-logo-icon,
[data-theme="light"] .lgl-logo-icon {
  box-shadow: 0 4px 12px rgba(0,119,182,0.20);
}

.lgl-logo-text {
  font-family: var(--lgl-font);
  font-size: 21px;
  font-weight: 700;
  color: var(--lgl-text-1);
  line-height: 1;
}

.lgl-logo-text span {
  color: var(--lgl-cyan);
}

.lgl-nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.lgl-nav-links li a {
  display: block;
  padding: 6px 16px;
  font-family: var(--lgl-font);
  font-size: 14px;
  font-weight: 400;
  color: var(--lgl-text-2);
  text-decoration: none;
  border-radius: var(--lgl-radius-sm);
  transition: color var(--lgl-ease), background-color var(--lgl-ease);
}

.lgl-nav-links li a:hover,
.lgl-nav-links li.current-menu-item a {
  color: var(--lgl-cyan);
  background-color: rgba(0,229,255,0.07);
}

body.lgl-light .lgl-nav-links li a:hover,
[data-theme="light"] .lgl-nav-links li.current-menu-item a {
  background-color: rgba(0,119,182,0.07);
}

.lgl-theme-toggle {
  width: 52px;
  height: 28px;
  border-radius: 14px;
  background: rgba(0,229,255,0.12);
  border: 1.5px solid rgba(0,229,255,0.60);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: all var(--lgl-ease);
}

.lgl-theme-toggle::after {
  content: '🌙';
  position: absolute;
  right: 3px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--lgl-cyan);
  box-shadow: 0 0 8px rgba(0,229,255,0.70);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  transition: all var(--lgl-ease);
}

body.lgl-light .lgl-theme-toggle::after,
[data-theme="light"] .lgl-theme-toggle::after {
  right: auto;
  left: 3px;
  content: '☀️';
  background: var(--lgl-cyan-dim);
  box-shadow: none;
}

@media (max-width: 768px) {
  .lgl-nav-links { display: none; }
}


/* ── 7. Hero ──────────────────────────────────────────────────────────────── */

.lgl-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--lgl-radius-pill);
  background: rgba(0,229,255,0.10);
  border: 1px solid rgba(0,229,255,0.40);
  font-family: var(--lgl-font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--lgl-cyan);
  margin-bottom: 24px;
}

body.lgl-light .lgl-pill-badge,
[data-theme="light"] .lgl-pill-badge {
  background: rgba(0,119,182,0.08);
  border-color: rgba(0,119,182,0.35);
  color: var(--lgl-cyan-dim);
}

.lgl-pill-badge::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lgl-cyan);
  box-shadow: 0 0 6px var(--lgl-cyan);
  animation: lgl-pulse-dot 2s ease-in-out infinite;
}

body.lgl-light .lgl-pill-badge::before,
[data-theme="light"] .lgl-pill-badge::before {
  box-shadow: none;
}

.lgl-hero-title {
  font-family: var(--lgl-font);
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--lgl-text-1);
  margin-bottom: 20px;
}

.lgl-hero-desc {
  font-family: var(--lgl-font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--lgl-text-2);
  max-width: 520px;
  margin-bottom: 32px;
}

.lgl-feature-list {
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lgl-feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--lgl-font);
  font-size: 14px;
  color: var(--lgl-text-2);
}

.lgl-feature-list li::before {
  content: '✓';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0,229,255,0.14);
  color: var(--lgl-cyan);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--lgl-ease);
}

body.lgl-light .lgl-feature-list li::before,
[data-theme="light"] .lgl-feature-list li::before {
  background: rgba(0,119,182,0.10);
  color: var(--lgl-cyan-dim);
}

.lgl-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}


/* ── 8. Botones ───────────────────────────────────────────────────────────── */

.lgl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--lgl-radius);
  font-family: var(--lgl-font);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  border: none;
  outline: none;
  transition: all var(--lgl-ease);
  letter-spacing: 0.01em;
}

.lgl-btn-primary {
  background: linear-gradient(135deg, #00E5FF 0%, #00B4D8 45%, #0055A4 100%);
  color: #fff;
  box-shadow:
    0 5px 22px rgba(0,229,255,0.38),
    0 2px 8px rgba(0,0,0,0.3);
}

.lgl-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 32px rgba(0,229,255,0.50),
    0 4px 12px rgba(0,0,0,0.35);
  color: #fff;
  text-decoration: none;
}

body.lgl-light .lgl-btn-primary,
[data-theme="light"] .lgl-btn-primary {
  background: linear-gradient(135deg, #0077B6 0%, #1D3557 100%);
  box-shadow:
    0 5px 18px rgba(0,119,182,0.28),
    0 2px 6px rgba(0,0,0,0.15);
}

body.lgl-light .lgl-btn-primary:hover,
[data-theme="light"] .lgl-btn-primary:hover {
  box-shadow:
    0 8px 28px rgba(0,119,182,0.38),
    0 4px 10px rgba(0,0,0,0.20);
}

.lgl-btn-outline {
  background: transparent;
  color: var(--lgl-text-1);
  border: 1.5px solid rgba(0,229,255,0.45);
}

.lgl-btn-outline:hover {
  background: rgba(0,229,255,0.07);
  border-color: rgba(0,229,255,0.75);
  transform: translateY(-2px);
  color: var(--lgl-text-1);
  text-decoration: none;
}

body.lgl-light .lgl-btn-outline,
[data-theme="light"] .lgl-btn-outline {
  border-color: rgba(0,119,182,0.40);
  color: var(--lgl-text-1);
}

body.lgl-light .lgl-btn-outline:hover,
[data-theme="light"] .lgl-btn-outline:hover {
  background: rgba(0,119,182,0.07);
  border-color: rgba(0,119,182,0.70);
}


/* ── 9. Cards ─────────────────────────────────────────────────────────────── */

.lgl-card {
  background: var(--lgl-card-bg);
  border: 1px solid var(--lgl-card-border);
  border-radius: var(--lgl-radius-lg);
  padding: clamp(20px, 3vw, 32px);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition:
    transform var(--lgl-ease),
    box-shadow var(--lgl-ease),
    border-color var(--lgl-ease);
}

.lgl-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,229,255,0.40);
  box-shadow:
    0 8px 40px var(--lgl-glow),
    0 2px 12px rgba(0,0,0,0.3);
}

body.lgl-light .lgl-card:hover,
[data-theme="light"] .lgl-card:hover {
  box-shadow:
    0 8px 32px rgba(0,119,182,0.12),
    0 2px 8px rgba(0,0,0,0.06);
}

.lgl-card-glow {
  position: relative;
  overflow: hidden;
}

.lgl-card-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--lgl-cyan), transparent);
  opacity: 0;
  transition: opacity var(--lgl-ease);
}

.lgl-card-glow:hover::before {
  opacity: 1;
}

.lgl-service-card {
  text-align: center;
}

.lgl-service-card .lgl-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(0,229,255,0.10);
  border: 1px solid rgba(0,229,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
  transition: all var(--lgl-ease);
}

.lgl-service-card:hover .lgl-icon-wrap {
  background: rgba(0,229,255,0.18);
  box-shadow: 0 0 20px rgba(0,229,255,0.25);
}

body.lgl-light .lgl-service-card .lgl-icon-wrap,
[data-theme="light"] .lgl-service-card .lgl-icon-wrap {
  background: rgba(0,119,182,0.08);
  border-color: rgba(0,119,182,0.20);
}


/* ── 10. Escudo / Logo Visual ────────────────────────────────────────────── */

.lgl-shield-wrap {
  position: relative;
  width: 320px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.lgl-shield-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,229,255,0.18) 0%, transparent 65%);
  animation: lgl-glow-pulse 2.5s ease-in-out infinite;
}

body.lgl-light .lgl-shield-wrap::before,
[data-theme="light"] .lgl-shield-wrap::before {
  background: radial-gradient(circle, rgba(0,119,182,0.10) 0%, transparent 65%);
}

.lgl-shield-img {
  position: relative;
  z-index: 2;
  width: 200px;
  height: auto;
  filter: drop-shadow(0 12px 30px rgba(0,229,255,0.40));
  animation: lgl-float 3s ease-in-out infinite;
}

body.lgl-light .lgl-shield-img,
[data-theme="light"] .lgl-shield-img {
  filter: drop-shadow(0 12px 24px rgba(0,119,182,0.22));
}

.lgl-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1.2px solid rgba(0,229,255,0.30);
  pointer-events: none;
}

.lgl-orbit-1 {
  width: 260px;
  height: 90px;
  animation: lgl-orbit-spin 12s linear infinite;
}

.lgl-orbit-2 {
  width: 300px;
  height: 105px;
  animation: lgl-orbit-spin 18s linear infinite reverse;
  border-color: rgba(0,229,255,0.18);
}

.lgl-orbit::after {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lgl-cyan);
  box-shadow: 0 0 10px var(--lgl-cyan), 0 0 20px rgba(0,229,255,0.5);
}

body.lgl-light .lgl-orbit,
[data-theme="light"] .lgl-orbit {
  border-color: rgba(0,119,182,0.20);
}

body.lgl-light .lgl-orbit::after,
[data-theme="light"] .lgl-orbit::after {
  background: var(--lgl-cyan-dim);
  box-shadow: none;
}


/* ── 11. Estadísticas ─────────────────────────────────────────────────────── */

.lgl-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: clamp(16px, 3vw, 32px);
}

.lgl-stat-card {
  text-align: center;
  padding: 32px 20px;
}

.lgl-stat-number {
  font-family: var(--lgl-font);
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 900;
  background: linear-gradient(135deg, var(--lgl-cyan), var(--lgl-navy));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.lgl-stat-label {
  font-family: var(--lgl-font);
  font-size: 13px;
  color: var(--lgl-text-2);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}


/* ── 12. Divider ─────────────────────────────────────────────────────────── */

.lgl-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--lgl-card-border) 30%,
    rgba(0,229,255,0.35) 50%,
    var(--lgl-card-border) 70%,
    transparent 100%
  );
  border: none;
  margin-block: clamp(32px, 5vw, 64px);
}


/* ── 13. Footer ───────────────────────────────────────────────────────────── */

.lgl-footer {
  background: var(--lgl-surface);
  border-top: 1px solid var(--lgl-card-border);
  padding-block: 24px;
}

.lgl-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.lgl-footer-copy {
  font-family: var(--lgl-font);
  font-size: 13px;
  color: var(--lgl-text-2);
}

.lgl-footer-copy strong {
  color: var(--lgl-cyan);
  font-weight: 600;
}


/* ── 14. Animaciones ─────────────────────────────────────────────────────── */

@keyframes lgl-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

@keyframes lgl-glow-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.06); }
}

@keyframes lgl-orbit-spin {
  from { transform: rotateX(70deg) rotateZ(0deg); }
  to   { transform: rotateX(70deg) rotateZ(360deg); }
}

@keyframes lgl-pulse-dot {
  0%, 100% { transform: scale(1);    opacity: 1; }
  50%       { transform: scale(1.4); opacity: 0.7; }
}

@keyframes lgl-fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.lgl-animate-up {
  animation: lgl-fade-up 0.6s cubic-bezier(0,0,0.2,1) both;
}

.lgl-animate-up:nth-child(2) { animation-delay: 0.1s; }
.lgl-animate-up:nth-child(3) { animation-delay: 0.2s; }
.lgl-animate-up:nth-child(4) { animation-delay: 0.3s; }


/* ── 15. WordPress overrides ─────────────────────────────────────────────── */

.lgl-section.lgl-circuit-bg .wp-block-group__inner-container,
.lgl-section.lgl-circuit-bg .wp-block-group {
  max-width: 100%;
  padding: 0;
}

.wp-block-button.lgl-wp-btn-primary .wp-block-button__link {
  background: linear-gradient(135deg, #00E5FF 0%, #00B4D8 45%, #0055A4 100%);
  color: #fff !important;
  border: none;
  border-radius: 12px;
  font-family: var(--lgl-font);
  font-weight: 700;
  padding: 14px 28px;
  box-shadow: 0 5px 22px rgba(0,229,255,0.38);
  transition: all 300ms ease;
}

.wp-block-button.lgl-wp-btn-primary .wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,229,255,0.50);
}

.wp-block-button.lgl-wp-btn-outline .wp-block-button__link {
  background: transparent !important;
  color: #fff !important;
  border: 1.5px solid rgba(0,229,255,0.50) !important;
  border-radius: 12px;
  font-family: var(--lgl-font);
  font-weight: 500;
  padding: 14px 28px;
  transition: all 300ms ease;
}

.wp-block-button.lgl-wp-btn-outline .wp-block-button__link:hover {
  background: rgba(0,229,255,0.07) !important;
  border-color: rgba(0,229,255,0.80) !important;
}

.lgl-section h1,
.lgl-section h2,
.lgl-section h3 {
  font-family: var(--lgl-font);
  color: var(--lgl-text-1);
  letter-spacing: -0.02em;
}

.lgl-section p {
  font-family: var(--lgl-font);
  color: var(--lgl-text-2);
  line-height: 1.75;
}

.lgl-section a {
  color: var(--lgl-cyan);
  text-decoration: none;
  transition: opacity var(--lgl-ease);
}

.lgl-section a:hover {
  opacity: 0.75;
  text-decoration: underline;
}


/* ── 16. Block Editor — overrides ───────────────────────────────────────── */

/* Fondo oscuro en toda la portada */
.home,
.home .wp-site-blocks,
.home .is-root-container {
  background-color: var(--lgl-bg);
}

/* Hero: flex centering */
.wp-block-group.lgl-hero {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
}

/* Hero grid: wp:columns usa flex; lo sobreescribimos con grid */
.wp-block-columns.lgl-hero-grid {
  display: grid !important;
  grid-template-columns: 55fr 45fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  flex-wrap: unset;
}

@media (max-width: 900px) {
  .wp-block-columns.lgl-hero-grid {
    grid-template-columns: 1fr !important;
  }
  .wp-block-columns.lgl-hero-grid .wp-block-column:last-child {
    order: -1;
  }
}

/* Stats section: fondo superficie */
.lgl-stats-section {
  background: var(--lgl-surface) !important;
  border-top: 1px solid var(--lgl-card-border);
  border-bottom: 1px solid var(--lgl-card-border);
  padding-block: clamp(32px, 5vw, 56px) !important;
}

/* Section header centrado */
.lgl-section-header {
  text-align: center;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.lgl-section-header .lgl-heading-1 {
  margin-top: 16px;
}

/* Gradient text en stat numbers dentro de bloques */
.wp-block-heading.lgl-stat-number {
  background: linear-gradient(135deg, var(--lgl-cyan), var(--lgl-navy));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* Footer disclaimer */
.lgl-footer-disclaimer {
  font-size: 12px !important;
  opacity: 0.6;
}

/* Quitar padding extra de WordPress en columnas con cards */
.wp-block-column > .wp-block-group.lgl-card {
  height: 100%;
}

/* CTA section centrada */
.lgl-cta-section {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
}
