/*
 * Theme Name:  APEPCOM Child
 * Theme URI:   https://apepcom.com
 * Description: Tema hijo APEPCOM — rediseño premium agency-tier v3.0
 * Author:      APEPCOM
 * Author URI:  https://apepcom.com
 * Template:    astra
 * Version:     3.0.0
 * Text Domain: apepcom-child
 */

/* ═══════════════════════════════════════════════════
   DESIGN TOKENS — APEPCOM PREMIUM
═══════════════════════════════════════════════════ */
:root {
  /* Paleta calibrada */
  --r:        #C8102E;
  --r-dk:     #8C0B1F;
  --r-xdk:    #5A0714;
  --r-lt:     #E8304A;
  --r-soft:   #FFF0F2;
  --r-mid:    rgba(200,16,46,.12);
  --onyx:     #080E1A;   /* fondo oscuro con tinte azul frío */
  --charcoal: #111827;
  --ink:      #1C2333;
  --white:    #FFFFFF;
  --cream:    #FAFBFC;
  --silver:   #F1F4F8;
  --mist:     #E8ECF2;
  --stone:    #94A3B8;
  --slate:    #64748B;
  --dusk:     #334155;
  --night:    #1E293B;

  /* Tipografía */
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Sombras con tinte — no black puro */
  --sh-xs:  0 1px 2px rgba(12,20,38,.03), 0 2px 8px rgba(12,20,38,.05);
  --sh-sm:  0 1px 3px rgba(12,20,38,.04), 0 6px 20px rgba(12,20,38,.08);
  --sh-md:  0 4px 8px rgba(12,20,38,.04), 0 16px 40px rgba(12,20,38,.12);
  --sh-lg:  0 8px 16px rgba(12,20,38,.06), 0 32px 64px rgba(12,20,38,.14);
  --sh-red: 0 4px 24px rgba(200,16,46,.32), 0 1px 4px rgba(200,16,46,.18);

  /* Radios */
  --r-xs:   .375rem;
  --r-sm:   .625rem;
  --r-md:   1rem;
  --r-lg:   1.5rem;
  --r-xl:   2rem;
  --r-2xl:  2.5rem;
  --r-pill: 9999px;

  /* Curvas de animación */
  --snap:   cubic-bezier(.32,.72,0,1);
  --spring: cubic-bezier(.34,1.56,.64,1);
  --out:    cubic-bezier(.22,1,.36,1);
  --in:     cubic-bezier(.4,0,1,1);
}

/* ═══════════════════════════════════════════════════
   RESET BASE
═══════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font) !important;
  color: var(--night) !important;
  background: var(--white) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { transition: color .18s var(--out), opacity .18s; }
img { display: block; max-width: 100%; }
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font) !important;
  font-weight: 800 !important;
  letter-spacing: -.03em;
  line-height: 1.12;
  color: var(--onyx) !important;
}
p { line-height: 1.75; }
::selection { background: rgba(200,16,46,.15); color: var(--r-dk); }

/* Grain overlay — rompe la planitud digital */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* ═══════════════════════════════════════════════════
   FIX CRÍTICO — OCULTAR TÍTULO DE PÁGINA
═══════════════════════════════════════════════════ */
.ast-page-title-bar,
.page-title-bar,
.ast-page-header-wrap,
.ast-breadcrumbs-wrapper,
.astra-breadcrumbs,
body.page .entry-header,
body.page .entry-header .entry-title,
body.front-page .entry-header,
.page-header { display: none !important; }

/* ═══════════════════════════════════════════════════
   HEADER — Floating Island Nav
   Filosofía: nav como objeto físico flotante, no
   banda pegada al borde. Glassmorphism real.
═══════════════════════════════════════════════════ */
.site-header,
#masthead,
.ast-primary-header-bar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 500 !important;
  height: 72px !important;
  background: rgba(255,255,255,.88) !important;
  backdrop-filter: blur(20px) saturate(1.8) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.8) !important;
  border-bottom: 1px solid rgba(0,0,0,.06) !important;
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 4px 24px rgba(12,20,38,.06) !important;
  transition: box-shadow .4s var(--out), background .4s var(--out) !important;
}
.site-header.apepcom-scrolled,
#masthead.apepcom-scrolled {
  box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 8px 32px rgba(12,20,38,.10) !important;
}

/* Header inner alignment */
.ast-primary-header-bar .ast-container,
.ast-primary-header-bar .main-header-container,
.ast-header-custom-item {
  height: 72px !important;
  display: flex !important;
  align-items: center !important;
}

/* FIX LOGO DUPLICADO — oculta el texto, deja solo la imagen */
.ast-site-identity .site-title,
.ast-site-identity .site-description,
.site-branding .site-title,
.site-branding .site-description,
.ast-site-text-wrap { display: none !important; }

/* Logo imagen */
.custom-logo-link img,
.ast-site-logo img,
.ast-logo-svg,
header .custom-logo {
  height: 42px !important;
  width: auto !important;
  max-width: 180px !important;
  object-fit: contain !important;
}

/* ═══════════════════════════════════════════════════
   MENÚ DE NAVEGACIÓN
═══════════════════════════════════════════════════ */
.main-header-menu,
.ast-nav-menu {
  display: flex !important;
  align-items: center !important;
  gap: .125rem !important;
  list-style: none !important;
}

.main-header-menu .menu-item > a,
.ast-nav-menu > li > a,
#ast-hf-menu-1 .menu-link {
  font-family: var(--font) !important;
  font-size: .8rem !important;
  font-weight: 600 !important;
  color: var(--slate) !important;
  padding: .45rem .9rem !important;
  border-radius: var(--r-pill) !important;
  letter-spacing: .005em !important;
  transition: color .18s var(--out), background .18s var(--out) !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}
.main-header-menu .menu-item > a:hover,
.main-header-menu .current-menu-item > a {
  color: var(--r) !important;
  background: var(--r-soft) !important;
}

/* ── BOTÓN SOCIOS — FIX COMPLETO ──
   Problema: overflow:hidden del contenedor cortaba el botón.
   Solución: forzar visible + z-index + pill completo.
═══════════════════════════════════════════════════ */
.main-header-menu li:last-child > a,
.ast-nav-menu > li:last-child > a,
.menu-item-socios > a,
li.socios > a,
li[class*="socios"] > a {
  background: var(--r) !important;
  color: var(--white) !important;
  font-weight: 700 !important;
  font-size: .8rem !important;
  padding: .55rem 1.25rem !important;
  border-radius: var(--r-pill) !important;
  box-shadow: var(--sh-red) !important;
  position: relative !important;
  z-index: 10 !important;
  overflow: visible !important;
  clip-path: none !important;
  transition: background .22s var(--out), transform .15s var(--spring), box-shadow .22s !important;
}
.main-header-menu li:last-child > a:hover {
  background: var(--r-dk) !important;
  color: var(--white) !important;
  transform: translateY(-1px) scale(1.01) !important;
  box-shadow: 0 6px 28px rgba(200,16,46,.44), 0 2px 6px rgba(200,16,46,.22) !important;
}
.main-header-menu li:last-child > a:active {
  transform: scale(.98) !important;
}

/* Compensar header fijo */
.site-content, #content,
body.page .site-content,
body.home .site-content {
  padding-top: 72px !important;
}

/* ═══════════════════════════════════════════════════
   HERO — Rediseño completo
   Vibe: "Soft Structuralism" con acento institucional
   Layout: Editorial Split asimétrico
   Textura: noise + mesh gradient + líneas geométricas
═══════════════════════════════════════════════════ */
.apepcom-hero {
  position: relative;
  min-height: calc(100dvh - 72px);
  display: flex;
  align-items: center;
  overflow: hidden;

  /* Mesh gradient — más sofisticado que un linear plano */
  background:
    radial-gradient(ellipse 80% 60% at 30% 40%, rgba(200,16,46,.22) 0%, transparent 65%),
    radial-gradient(ellipse 50% 70% at 90% 10%, rgba(140,11,31,.35) 0%, transparent 50%),
    radial-gradient(ellipse 60% 80% at 10% 90%, rgba(90,7,20,.40) 0%, transparent 55%),
    linear-gradient(160deg, var(--r-xdk) 0%, var(--r-dk) 35%, var(--r) 70%, #D93050 100%);

  padding: clamp(3rem,7vw,5.5rem) clamp(1.5rem,6vw,5rem);
}

/* Patrón de red tipología APEPCOM */
.apepcom-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .7;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='600' viewBox='0 0 800 600'%3E%3Cg stroke='rgba(255,255,255,0.07)' stroke-width='1' fill='none'%3E%3Cline x1='0' y1='0' x2='800' y2='200'/%3E%3Cline x1='0' y1='200' x2='800' y2='380'/%3E%3Cline x1='0' y1='400' x2='800' y2='560'/%3E%3Cline x1='200' y1='0' x2='0' y2='600'/%3E%3Cline x1='450' y1='0' x2='250' y2='600'/%3E%3Cline x1='700' y1='0' x2='500' y2='600'/%3E%3Ccircle cx='460' cy='110' r='3.5' fill='rgba(255,255,255,0.18)' stroke='none'/%3E%3Ccircle cx='290' cy='310' r='2.5' fill='rgba(255,255,255,0.12)' stroke='none'/%3E%3Ccircle cx='640' cy='280' r='4' fill='rgba(255,255,255,0.10)' stroke='none'/%3E%3Ccircle cx='120' cy='470' r='2' fill='rgba(255,255,255,0.14)' stroke='none'/%3E%3Ccircle cx='730' cy='480' r='3' fill='rgba(255,255,255,0.09)' stroke='none'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
  pointer-events: none;
}

/* Noise overlay sobre el hero */
.apepcom-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 180px;
  pointer-events: none;
}

.apepcom-hero-inner {
  position: relative;
  z-index: 3;
  max-width: 700px;
}

/* Pill tag del hero */
.apepcom-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.20);
  color: rgba(255,255,255,.88);
  font-family: var(--font);
  font-size: .67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .22em;
  padding: .35rem 1rem;
  border-radius: var(--r-pill);
  margin-bottom: 1.75rem;
  backdrop-filter: blur(8px);
}

/* Título hero — máximo impacto tipográfico */
.apepcom-hero h1,
.apepcom-hero .hero-title {
  font-family: var(--font) !important;
  font-size: clamp(2.6rem, 6vw, 4.5rem) !important;
  font-weight: 900 !important;
  color: var(--white) !important;
  line-height: 1.03 !important;
  letter-spacing: -.04em !important;
  margin-bottom: 1.5rem !important;
  text-wrap: balance;
}

.apepcom-hero .hero-subtitle {
  font-size: clamp(.95rem, 1.6vw, 1.1rem);
  color: rgba(255,255,255,.68);
  line-height: 1.72;
  max-width: 480px;
  margin-bottom: 3rem;
  letter-spacing: .01em;
}

/* Grupo de botones */
.apepcom-hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

/* Botón primario — "Double-Bezel" architecture */
.apepcom-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: var(--white);
  color: var(--r) !important;
  font-family: var(--font);
  font-size: .85rem;
  font-weight: 700;
  padding: .22rem .22rem .22rem 1.5rem;
  border-radius: var(--r-pill);
  border: none;
  box-shadow: 0 4px 20px rgba(0,0,0,.20), 0 1px 4px rgba(0,0,0,.12);
  transition: box-shadow .25s var(--out), transform .18s var(--spring) !important;
  text-decoration: none !important;
  letter-spacing: .01em;
}
.apepcom-btn-primary .btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--r-soft);
  border-radius: 50%;
  font-size: .9rem;
  margin-left: .75rem;
  transition: transform .22s var(--spring), background .18s var(--out);
  flex-shrink: 0;
}
.apepcom-btn-primary:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,.26), 0 2px 6px rgba(0,0,0,.14) !important;
  transform: translateY(-2px) !important;
  color: var(--r-dk) !important;
}
.apepcom-btn-primary:hover .btn-icon {
  transform: translate(2px,-1px) scale(1.08);
  background: rgba(200,16,46,.12);
}
.apepcom-btn-primary:active { transform: scale(.98) !important; }

/* Botón ghost */
.apepcom-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.88) !important;
  font-family: var(--font);
  font-size: .85rem;
  font-weight: 600;
  padding: .825rem 1.625rem;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255,255,255,.18);
  transition: background .22s var(--out), border-color .22s, transform .15s var(--spring) !important;
  text-decoration: none !important;
  backdrop-filter: blur(4px);
}
.apepcom-btn-ghost:hover {
  background: rgba(255,255,255,.15) !important;
  border-color: rgba(255,255,255,.35) !important;
  transform: translateY(-1px) !important;
  color: var(--white) !important;
}

/* Estadísticas en el hero */
.apepcom-hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,.12);
  flex-wrap: wrap;
}
.hero-stat-n {
  font-family: var(--font);
  font-size: clamp(2rem,3.5vw,2.8rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.hero-stat-l {
  font-size: .72rem;
  color: rgba(255,255,255,.55);
  margin-top: .35rem;
  line-height: 1.4;
  letter-spacing: .04em;
}

/* Elemento visual derecho del hero */
.apepcom-hero-visual {
  position: absolute;
  right: clamp(2rem, 6vw, 5rem);
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 2;
}
.hero-orb {
  width: clamp(280px,30vw,420px);
  height: clamp(280px,30vw,420px);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.12) 0%, rgba(255,255,255,.04) 50%, transparent 70%);
  border: 1px solid rgba(255,255,255,.10);
  position: relative;
}
.hero-orb::before {
  content: '';
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.07);
}
.hero-orb::after {
  content: '';
  position: absolute;
  inset: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.05);
}
/* Logo dentro del orb */
.hero-orb-logo {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 55%;
  filter: brightness(0) invert(1);
  opacity: .55;
}

@media (max-width:900px) { .apepcom-hero-visual { display: none; } }

/* Scroll cue */
.apepcom-scroll-cue {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: rgba(255,255,255,.4);
  font-size: .65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .2em;
}
.scroll-cue-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,.35), transparent);
  animation: apepScrollCue 2s ease-in-out infinite;
}
@keyframes apepScrollCue {
  0%,100% { transform: scaleY(1); opacity: .4; }
  50%      { transform: scaleY(.6); opacity: .15; }
}

/* ═══════════════════════════════════════════════════
   SECCIONES — SISTEMA DE LAYOUT
═══════════════════════════════════════════════════ */
.apepcom-section {
  padding: clamp(4rem,8vw,7rem) clamp(1.5rem,5vw,4.5rem);
  max-width: 1240px;
  margin: 0 auto;
}
.apepcom-section-full {
  padding: clamp(4rem,8vw,7rem) clamp(1.5rem,5vw,4.5rem);
}
.apepcom-bg-off  { background: var(--cream); border-top: 1px solid var(--silver); border-bottom: 1px solid var(--silver); }
.apepcom-bg-ink  { background: var(--onyx); }

/* Encabezados de sección */
.apepcom-eyebrow {
  font-family: var(--font);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--r);
  display: block;
  margin-bottom: .75rem;
}
.apepcom-h2 {
  font-family: var(--font) !important;
  font-size: clamp(2rem,4vw,3rem) !important;
  font-weight: 800 !important;
  color: var(--onyx) !important;
  letter-spacing: -.035em !important;
  line-height: 1.12 !important;
  margin-bottom: 1rem !important;
  text-wrap: balance;
}
.apepcom-lead {
  font-size: 1.05rem;
  color: var(--slate);
  line-height: 1.78;
  max-width: 560px;
}
.apepcom-rule {
  width: 36px; height: 2.5px;
  background: var(--r);
  border-radius: 2px;
  border: none;
  margin: 1rem 0 2rem;
}

/* ═══════════════════════════════════════════════════
   SCROLL REVEAL — Staggered entry animations
═══════════════════════════════════════════════════ */
.apepcom-reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(2px);
  transition:
    opacity .75s var(--out),
    transform .75s var(--out),
    filter .6s var(--out);
}
.apepcom-reveal.apepcom-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
.apepcom-d1 { transition-delay: .08s; }
.apepcom-d2 { transition-delay: .16s; }
.apepcom-d3 { transition-delay: .24s; }
.apepcom-d4 { transition-delay: .32s; }
.apepcom-d5 { transition-delay: .40s; }

/* ═══════════════════════════════════════════════════
   BARRA DE ESTADÍSTICAS — Flotante
═══════════════════════════════════════════════════ */
.apepcom-stats-bar {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem,5vw,4.5rem);
}
.apepcom-stats-inner {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-md);
  overflow: hidden;
  transform: translateY(-2.5rem);
}
.apepcom-stat-cell {
  padding: 1.75rem 1.5rem;
  text-align: center;
  border-right: 1px solid var(--mist);
  transition: background .22s var(--out);
  cursor: default;
}
.apepcom-stat-cell:last-child { border-right: none; }
.apepcom-stat-cell:hover      { background: var(--r-soft); }
.apepcom-stat-num {
  font-family: var(--font);
  font-size: clamp(2rem,3.5vw,2.75rem);
  font-weight: 900;
  color: var(--r);
  line-height: 1;
  letter-spacing: -.05em;
  font-variant-numeric: tabular-nums;
  display: block;
}
.apepcom-stat-lbl {
  font-size: .72rem;
  color: var(--stone);
  margin-top: .4rem;
  line-height: 1.4;
}

/* ═══════════════════════════════════════════════════
   BENTO GRID — Beneficios
   Rompe la simetría de 3 columnas iguales.
   Layout: featured 2-col + 4 singles ≠ alturas
═══════════════════════════════════════════════════ */
.apepcom-bento {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  grid-template-rows: auto;
  gap: 1rem;
  margin-top: 3rem;
}

/* Card base — Double-Bezel architecture */
.apepcom-ben {
  background: var(--white);
  border-radius: var(--r-xl);
  border: 1px solid var(--mist);
  box-shadow: var(--sh-xs);
  overflow: hidden;
  transition: transform .3s var(--out), box-shadow .3s var(--out), border-color .25s;
  position: relative;
}
.apepcom-ben::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--r), transparent);
  opacity: 0;
  transition: opacity .3s var(--out);
}
.apepcom-ben:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-md), 0 0 0 1px rgba(200,16,46,.08);
  border-color: rgba(200,16,46,.12);
}
.apepcom-ben:hover::before { opacity: 1; }

.apepcom-ben-body { padding: 1.875rem; }
.apepcom-ben-icon {
  width: 46px; height: 46px;
  background: var(--r-soft);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1.125rem;
  transition: background .22s var(--out), transform .22s var(--spring);
}
.apepcom-ben:hover .apepcom-ben-icon {
  background: var(--r);
  transform: scale(1.06) rotate(-3deg);
}
.apepcom-ben-title {
  font-family: var(--font) !important;
  font-size: .92rem !important;
  font-weight: 700 !important;
  color: var(--onyx) !important;
  line-height: 1.35 !important;
  margin-bottom: .5rem !important;
}
.apepcom-ben-desc {
  font-size: .85rem !important;
  color: var(--slate) !important;
  line-height: 1.68 !important;
}
.apepcom-ben-tag {
  display: inline-block;
  background: var(--r-soft);
  color: var(--r);
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: .2rem .65rem;
  border-radius: var(--r-pill);
  margin-top: 1rem;
}

/* Featured card — 2 columnas, fondo oscuro */
.apepcom-ben.featured {
  grid-column: span 2;
  background: var(--onyx);
  border-color: rgba(255,255,255,.06);
}
.apepcom-ben.featured .apepcom-ben-title { color: var(--white) !important; font-size: 1.2rem !important; }
.apepcom-ben.featured .apepcom-ben-desc  { color: rgba(255,255,255,.55) !important; font-size: .9rem !important; }
.apepcom-ben.featured .apepcom-ben-icon  { background: rgba(255,255,255,.08); }
.apepcom-ben.featured:hover .apepcom-ben-icon { background: rgba(200,16,46,.25); }
.apepcom-ben.featured .apepcom-ben-tag   { background: rgba(200,16,46,.22); color: rgba(255,255,255,.85); }

/* Card horizontal — ícono izquierda, texto derecha */
.apepcom-ben.horizontal .apepcom-ben-body {
  display: flex;
  gap: 1.125rem;
  align-items: flex-start;
}
.apepcom-ben.horizontal .apepcom-ben-icon { flex-shrink: 0; margin-bottom: 0; }
.apepcom-ben.horizontal .apepcom-ben-content { flex: 1; }

/* ═══════════════════════════════════════════════════
   PASOS DE INSCRIPCIÓN — Z-Axis Cascade
   Los cards se superponen ligeramente para dar
   sensación de profundidad física.
═══════════════════════════════════════════════════ */
.apepcom-steps-wrap { position: relative; }

.apepcom-steps {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.25rem;
  margin: 2.5rem 0;
}

.apepcom-step {
  background: var(--white);
  border-radius: var(--r-xl);
  border: 1px solid var(--mist);
  box-shadow: var(--sh-sm);
  padding: 2rem 1.875rem;
  position: relative;
  overflow: hidden;
  transition: transform .3s var(--out), box-shadow .3s var(--out);
}
.apepcom-step::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--r);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--snap);
}
.apepcom-step:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }
.apepcom-step:hover::after { transform: scaleX(1); }

/* Número del paso — visual */
.step-badge {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--r-soft);
  border: 1.5px solid rgba(200,16,46,.2);
  color: var(--r);
  font-family: var(--font);
  font-size: .82rem;
  font-weight: 800;
  margin-bottom: 1.125rem;
}
.step-title {
  font-family: var(--font) !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: var(--onyx) !important;
  line-height: 1.3 !important;
  margin-bottom: .625rem !important;
}
.step-body {
  font-size: .875rem !important;
  color: var(--slate) !important;
  line-height: 1.72 !important;
}

/* Info box con separación visual */
.step-box {
  background: var(--cream);
  border: 1px solid var(--silver);
  border-radius: var(--r-lg);
  padding: 1rem 1.125rem;
  margin-top: 1.125rem;
  font-size: .82rem;
  color: var(--dusk);
  line-height: 1.7;
}
.step-box strong {
  display: block;
  font-weight: 700;
  color: var(--night);
  font-size: .8rem;
  margin-bottom: .25rem;
}
.step-account {
  color: var(--r);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
}

/* Precios */
.step-prices {
  display: flex; gap: .75rem; flex-wrap: wrap;
  margin: .875rem 0;
}
.price-pill {
  flex: 1; min-width: 106px;
  border-radius: var(--r-md);
  padding: .75rem 1rem;
}
.price-pill.new { background: var(--r-soft); border: 1px solid rgba(200,16,46,.15); }
.price-pill.old { background: var(--silver); border: 1px solid var(--mist); }
.price-lbl  { font-size: .62rem; color: var(--stone); display: block; margin-bottom: .2rem; }
.price-val  { font-size: 1.4rem; font-weight: 900; line-height: 1; color: var(--r); }
.price-pill.old .price-val { color: var(--dusk); }
.price-note { font-size: .62rem; color: var(--r); font-weight: 600; margin-top: .1rem; }

/* Botones en steps */
.step-btn {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--r); color: var(--white) !important;
  font-family: var(--font); font-size: .82rem; font-weight: 700;
  padding: .625rem 1.25rem;
  border-radius: var(--r-pill);
  margin-top: 1.25rem;
  text-decoration: none !important;
  box-shadow: 0 2px 10px rgba(200,16,46,.25);
  transition: background .2s var(--out), transform .15s var(--spring), box-shadow .2s;
}
.step-btn:hover { background: var(--r-dk); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(200,16,46,.35); }
.step-btn.outline {
  background: transparent; color: var(--dusk) !important;
  border: 1.5px solid var(--mist); box-shadow: none;
}
.step-btn.outline:hover { border-color: var(--r); color: var(--r) !important; background: var(--r-soft); box-shadow: none; }

/* Conector visual entre pasos */
.steps-connector {
  display: flex; align-items: center; justify-content: center;
  gap: 0; margin: .5rem 0 2rem;
}
.steps-connector .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--r);
}
.steps-connector .line {
  flex: 1; max-width: 300px;
  height: 1.5px;
}
.steps-connector .line.full    { background: linear-gradient(90deg,var(--r),rgba(200,16,46,.3)); }
.steps-connector .line.faded   { background: rgba(200,16,46,.15); }
.steps-connector .dot.empty    { background: var(--mist); border: 2px solid rgba(200,16,46,.2); }

/* ═══════════════════════════════════════════════════
   BANNER PADRÓN — Sección oscura atractiva
═══════════════════════════════════════════════════ */
.apepcom-padron {
  background: var(--onyx);
  border-radius: var(--r-xl);
  padding: 2.25rem 2.75rem;
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
  position: relative; overflow: hidden;
  margin-top: 2.5rem;
  border: 1px solid rgba(255,255,255,.05);
}
.apepcom-padron::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 0% 50%, rgba(200,16,46,.16) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 100% 50%, rgba(200,16,46,.08) 0%, transparent 60%);
  pointer-events: none;
}
.apepcom-padron h3 { color: var(--white) !important; font-size: 1.2rem !important; margin-bottom: .4rem !important; }
.apepcom-padron p  { color: rgba(255,255,255,.5) !important; font-size: .875rem !important; line-height: 1.65 !important; max-width: 440px; }
.apepcom-padron .padron-btn {
  display: inline-flex; align-items: center; gap: .6rem;
  border: 1.5px solid rgba(255,255,255,.25);
  color: var(--white) !important;
  font-family: var(--font); font-size: .875rem; font-weight: 700;
  padding: .8rem 1.625rem; border-radius: var(--r-pill);
  white-space: nowrap; position: relative; z-index: 1;
  text-decoration: none !important;
  transition: background .2s var(--out), border-color .2s, transform .15s var(--spring);
}
.apepcom-padron .padron-btn:hover {
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.5);
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════
   FORMULARIO — Contact Form 7
═══════════════════════════════════════════════════ */
.wpcf7-form, .wpcf7 form {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: 2.5rem;
  border: 1px solid var(--mist);
  box-shadow: var(--sh-sm);
}
.wpcf7 label {
  display: block !important;
  font-size: .75rem !important;
  font-weight: 600 !important;
  color: var(--dusk) !important;
  margin-bottom: .35rem !important;
  letter-spacing: .01em !important;
}
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea,
.wpcf7 select,
.wpcf7-form-control {
  width: 100% !important;
  background: var(--cream) !important;
  border: 1.5px solid var(--silver) !important;
  border-radius: var(--r-md) !important;
  padding: .8rem 1.05rem !important;
  font-family: var(--font) !important;
  font-size: .9rem !important;
  color: var(--night) !important;
  transition: border-color .2s var(--out), box-shadow .2s, background .2s !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}
.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
  outline: none !important;
  border-color: var(--r) !important;
  background: var(--white) !important;
  box-shadow: 0 0 0 3px rgba(200,16,46,.09) !important;
}
.wpcf7 textarea { min-height: 120px !important; resize: vertical !important; }
.wpcf7 input[type="submit"], .wpcf7-submit {
  background: var(--r) !important;
  color: var(--white) !important;
  font-family: var(--font) !important;
  font-size: .88rem !important;
  font-weight: 700 !important;
  padding: .9rem 2.25rem !important;
  border-radius: var(--r-pill) !important;
  border: none !important;
  cursor: pointer !important;
  width: 100% !important;
  box-shadow: var(--sh-red) !important;
  transition: background .2s var(--out), transform .15s var(--spring) !important;
  margin-top: .5rem !important;
  letter-spacing: .01em !important;
}
.wpcf7-submit:hover { background: var(--r-dk) !important; transform: translateY(-1px) !important; }
.wpcf7-submit:active { transform: scale(.98) !important; }
.wpcf7-not-valid-tip { color: var(--r) !important; font-size: .75rem !important; margin-top: .2rem !important; }
.wpcf7-mail-sent-ok { background: #d1fae5 !important; color: #065f46 !important; border-radius: var(--r-md) !important; padding: .875rem 1.125rem !important; font-size: .875rem !important; border: 1px solid #a7f3d0 !important; }
.wpcf7-validation-errors { background: var(--r-soft) !important; color: var(--r-dk) !important; border-radius: var(--r-md) !important; padding: .875rem 1.125rem !important; border: 1px solid rgba(200,16,46,.2) !important; }
.wpcf7-form-control-wrap { display: block; margin-bottom: .875rem; }
.apepcom-form-grid { display: grid; grid-template-columns:1fr 1fr; gap: 1rem; }
@media (max-width:600px) { .apepcom-form-grid { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════════
   BOTONES GLOBALES — WordPress blocks + Elementor
═══════════════════════════════════════════════════ */
.wp-block-button__link, .ast-button, button[type="submit"], .button {
  font-family: var(--font) !important;
  font-weight: 700 !important;
  border-radius: var(--r-pill) !important;
  transition: background .22s var(--out), transform .15s var(--spring), box-shadow .22s !important;
}
.wp-block-button:not(.is-style-outline) .wp-block-button__link {
  background: var(--r) !important; color: var(--white) !important;
  border: none !important; box-shadow: var(--sh-red) !important;
}
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
  background: var(--r-dk) !important; transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(200,16,46,.44) !important; color: var(--white) !important;
}
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent !important; color: var(--r) !important;
  border: 2px solid var(--r) !important; box-shadow: none !important;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--r) !important; color: var(--white) !important;
}
.elementor-button { font-family: var(--font) !important; font-weight: 700 !important; border-radius: var(--r-pill) !important; }
.elementor-button-primary { background: var(--r) !important; color: var(--white) !important; border-color: var(--r) !important; }
.elementor-button-primary:hover { background: var(--r-dk) !important; transform: translateY(-1px); }

/* ═══════════════════════════════════════════════════
   BLOG
═══════════════════════════════════════════════════ */
.ast-article-post, article.post, .blog .hentry {
  background: var(--white) !important;
  border-radius: var(--r-xl) !important;
  border: 1px solid var(--mist) !important;
  box-shadow: var(--sh-xs) !important;
  overflow: hidden !important;
  transition: transform .3s var(--out), box-shadow .3s, border-color .25s !important;
  margin-bottom: 0 !important;
}
.ast-article-post:hover, article.post:hover {
  transform: translateY(-5px) !important;
  box-shadow: var(--sh-md) !important;
  border-color: rgba(200,16,46,.1) !important;
}
.post-thumbnail img, .ast-blog-featured-section img {
  width: 100% !important; aspect-ratio: 16/9 !important;
  object-fit: cover !important;
  transition: transform .5s var(--out) !important;
}
.ast-article-post:hover .post-thumbnail img { transform: scale(1.04) !important; }
.entry-title a {
  font-family: var(--font) !important; font-weight: 700 !important;
  font-size: 1.05rem !important; color: var(--onyx) !important;
  line-height: 1.4 !important; transition: color .18s !important;
  text-decoration: none !important;
}
.entry-title a:hover { color: var(--r) !important; }
.cat-links a {
  background: var(--r-soft) !important; color: var(--r) !important;
  font-size: .67rem !important; font-weight: 700 !important;
  text-transform: uppercase !important; letter-spacing: .1em !important;
  padding: .2rem .65rem !important; border-radius: var(--r-pill) !important;
  text-decoration: none !important;
}
.cat-links a:hover { background: var(--r) !important; color: var(--white) !important; }
.ast-read-more, a.read-more { color: var(--r) !important; font-weight: 700 !important; font-size: .82rem !important; text-decoration: none !important; }
.ast-read-more::after { content: ' →'; }
.page-numbers.current { background: var(--r) !important; color: var(--white) !important; border-color: var(--r) !important; border-radius: var(--r-pill) !important; }
.single .entry-content p { font-size: 1.025rem !important; line-height: 1.82 !important; color: var(--slate) !important; margin-bottom: 1.5rem !important; max-width: 65ch; }
.single .entry-content h2 { font-size: 1.75rem !important; margin-top: 2.5rem !important; border-bottom: 2px solid var(--r) !important; padding-bottom: .5rem !important; }
.single .entry-content blockquote { border-left: 3px solid var(--r) !important; background: var(--r-soft) !important; padding: 1rem 1.5rem !important; border-radius: 0 var(--r-lg) var(--r-lg) 0 !important; margin: 2rem 0 !important; }

/* ═══════════════════════════════════════════════════
   WIDGETS / SIDEBAR
═══════════════════════════════════════════════════ */
.widget { background: var(--white) !important; border: 1px solid var(--mist) !important; border-radius: var(--r-xl) !important; padding: 1.625rem !important; box-shadow: var(--sh-xs) !important; margin-bottom: 1.5rem !important; }
.widget-title { font-family: var(--font) !important; font-size: .78rem !important; font-weight: 700 !important; text-transform: uppercase !important; letter-spacing: .16em !important; color: var(--stone) !important; padding-bottom: .75rem !important; border-bottom: 2px solid var(--r) !important; margin-bottom: 1.125rem !important; }

/* ═══════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════ */
.site-footer, #colophon, .ast-small-footer { background: var(--onyx) !important; color: rgba(255,255,255,.45) !important; }
.footer-widget-area { background: var(--onyx) !important; border-top: 1px solid rgba(255,255,255,.06) !important; }
.footer-widget-area .widget { background: transparent !important; border: none !important; box-shadow: none !important; }
.footer-widget-area .widget-title { color: rgba(255,255,255,.25) !important; border-bottom-color: rgba(255,255,255,.08) !important; }
.footer-widget-area a { color: rgba(255,255,255,.5) !important; }
.footer-widget-area a:hover { color: var(--white) !important; }
.ast-small-footer-wrap { border-top: 1px solid rgba(255,255,255,.06) !important; }
.ast-small-footer-wrap, .ast-footer-copyright { color: rgba(255,255,255,.2) !important; font-size: .75rem !important; }
.ast-footer-logo img, .footer-widget-area .custom-logo { filter: brightness(0) invert(1) !important; opacity: .7 !important; }
.apepcom-legal-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.125rem; }
.apepcom-legal-chips span { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: var(--r-pill); padding: .25rem .75rem; font-size: .67rem; color: rgba(255,255,255,.35); }

/* ═══════════════════════════════════════════════════
   CURSOR / SPOTLIGHT — Efecto de spotlight en cards
═══════════════════════════════════════════════════ */
.apepcom-ben,
.apepcom-step {
  --spotlight-x: 50%;
  --spotlight-y: 50%;
}
.apepcom-ben::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    200px circle at var(--spotlight-x) var(--spotlight-y),
    rgba(200,16,46,.05),
    transparent 70%
  );
  opacity: 0;
  transition: opacity .3s var(--out);
  pointer-events: none;
  z-index: 1;
}
.apepcom-ben:hover::after { opacity: 1; }

/* ═══════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════ */
@media (max-width:1024px) {
  .apepcom-bento { grid-template-columns: 1fr 1fr; }
  .apepcom-ben.featured { grid-column: span 2; }
  .apepcom-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width:768px) {
  .site-content, #content { padding-top: 72px !important; }
  .apepcom-hero-stats { gap: 1.75rem; padding-top: 2rem; }
  .apepcom-stats-inner { grid-template-columns: 1fr 1fr; }
  .apepcom-stat-cell:nth-child(2) { border-right: none; }
  .apepcom-stat-cell:nth-child(3) { border-top: 1px solid var(--mist); }
  .apepcom-stat-cell:nth-child(4) { border-top: 1px solid var(--mist); border-right: none; }
  .apepcom-bento { grid-template-columns: 1fr; }
  .apepcom-ben.featured { grid-column: span 1; }
  .apepcom-steps { grid-template-columns: 1fr; }
  .apepcom-padron { flex-direction: column; }
  .step-prices { flex-direction: column; }
  .apepcom-hero-btns { flex-direction: column; align-items: flex-start; }
}
@media (max-width:480px) {
  .apepcom-hero h1 { font-size: 2.2rem !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration:.01ms!important; animation-duration:.01ms!important; }
  .apepcom-reveal { opacity:1; transform:none; filter:none; }
}
