/* ============================================
   Servicell Arauca — Estilos
   ============================================ */

:root {
  /* Paleta — basada en el logo real de Servicell Arauca */
  --green-brand: #2ecc71;      /* verde vibrante del logo (decorativo) */
  --green-dark: #15803d;       /* verde CTA/texto con contraste WCAG */
  --green-darker: #14532d;     /* verde profundo (fondos oscuros) */
  --green-light: #86efac;
  --green-soft: #e6f7ed;
  --blue: #1976d2;
  --blue-dark: #0d47a1;
  --black: #212121;
  --gray-700: #424242;
  --gray-500: #757575;
  --gray-300: #e0e0e0;
  --gray-100: #f5f5f5;
  --white: #ffffff;
  --wa-green: #25d366;

  /* Tipografía */
  --font-sans: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-head: 'Poppins', var(--font-sans);

  /* Layout */
  --container-max: 1200px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Reset mínimo */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg, iframe { max-width: 100%; display: block; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  margin: 0 0 .5em;
  color: var(--black);
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--green-dark); text-decoration: none; }
a:hover { color: var(--green-darker); }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.muted { color: var(--gray-500); }
.accent { color: var(--green-dark); }

.eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-dark);
  background: var(--green-soft);
  padding: .35rem .75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

/* ============ Botones ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: .55rem 1rem; font-size: .9rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--green-dark);
  color: var(--white);
}
.btn-primary:hover { background: var(--green-darker); color: var(--white); }

.btn-secondary {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}
.btn-secondary:hover { background: var(--blue); color: var(--white); }

.btn-blue {
  background: var(--blue);
  color: var(--white);
}
.btn-blue:hover { background: var(--blue-dark); color: var(--white); }

.btn-outline {
  background: transparent;
  color: var(--green-dark);
  border: 2px solid var(--green-dark);
}
.btn-outline:hover { background: var(--green-dark); color: var(--white); }

.btn-wa {
  background: var(--wa-green);
  color: var(--white);
}
.btn-wa:hover { background: #1ebe57; color: var(--white); }
.btn-wa .i { width: 1.1rem; height: 1.1rem; }

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--gray-300);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--black);
}
.brand:hover { color: var(--black); }
.brand-logo {
  height: 40px;
  width: auto;
  display: block;
}
.footer-logo {
  height: 52px;
  margin-bottom: .75rem;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.primary-nav a {
  color: var(--gray-700);
  font-weight: 500;
  font-size: .95rem;
}
.primary-nav a:hover { color: var(--green-dark); }
.primary-nav a.btn-wa { color: var(--white); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 8px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--black);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 10vw, 7rem) 0 clamp(4rem, 10vw, 6rem);
  background-color: var(--green-darker);
  background-image:
    linear-gradient(135deg, rgba(20, 83, 45, 0.92) 0%, rgba(10, 40, 22, 0.88) 55%, rgba(0, 0, 0, 0.72) 100%),
    url('../imagenes/header.jpg');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  color: var(--white);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 720px);
  gap: 3rem;
  align-items: center;
  position: relative;
}
.hero-text h1 { color: var(--white); }
.hero-text .accent { color: var(--green-brand); }
.hero-text .lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 56ch;
}
.hero .eyebrow {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  backdrop-filter: blur(6px);
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin: 1.75rem 0;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1.5rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: .95rem;
  font-weight: 500;
}

.btn-light {
  background: var(--white);
  color: var(--green-darker);
}
.btn-light:hover { background: rgba(255, 255, 255, 0.9); color: var(--green-darker); }

/* ============ Secciones ============ */
.section {
  padding: clamp(3rem, 7vw, 5rem) 0;
}
.section-alt { background: var(--green-soft); }
.section-dark {
  background: linear-gradient(135deg, var(--green-darker), var(--green-dark));
  color: var(--white);
}
.section-dark h2, .section-dark h3, .section-dark p { color: var(--white); }
.section-dark .eyebrow {
  background: rgba(255,255,255,.15);
  color: var(--white);
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.5rem;
}
.section-head p { color: var(--gray-700); font-size: 1.05rem; }
.section-head-light p { color: rgba(255,255,255,.85); }

/* ============ Servicios ============ */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-light);
}
.card-icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  background: var(--green-soft);
  border-radius: 14px;
  font-size: 1.6rem;
  margin-bottom: 1rem;
}
.card p { color: var(--gray-700); font-size: .95rem; }
.card-cta {
  display: inline-block;
  margin-top: .5rem;
  font-weight: 600;
  color: var(--green-dark);
}
.card-cta:hover { color: var(--green-darker); }

/* ============ Tienda ============ */
.tienda-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.tienda-list {
  margin: 1rem 0 1.5rem;
  display: grid;
  gap: .5rem;
}
.tienda-list li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--gray-700);
}
.tienda-list li::before {
  content: '✓';
  position: absolute;
  left: 0; top: 0;
  color: var(--green-dark);
  font-weight: 700;
}
.tienda-visual .stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  transform: rotate(-3deg);
}
.tile {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  font-size: 3rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  background: var(--white);
  border: 1px solid var(--gray-300);
}
.tile-1 { background: var(--green-soft); }
.tile-2 { background: var(--white); transform: translateY(1rem); }
.tile-3 { background: var(--white); transform: translateY(-1rem); }
.tile-4 { background: var(--green-soft); }

/* ============ Cursos ============ */
.cursos-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.5rem;
  align-items: stretch;
}
.curso-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  padding: 2rem;
  color: var(--white);
}
.curso-card ul {
  display: grid; gap: .5rem;
}
.curso-card ul li {
  position: relative;
  padding-left: 1.5rem;
  color: rgba(255,255,255,.9);
}
.curso-card ul li::before {
  content: '→';
  position: absolute; left: 0;
  color: var(--green-light);
  font-weight: 700;
}
.curso-card-highlight {
  background: var(--white);
  color: var(--black);
  border: 0;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.curso-card-highlight h3,
.curso-card-highlight p { color: var(--black); }
.curso-card-highlight .curso-bullets li { color: var(--gray-700); padding-left: 0; }
.curso-card-highlight .curso-bullets li::before { content: ''; display: none; }
.curso-desc { color: var(--gray-700); }
.pill {
  position: absolute;
  top: 1rem; right: 1rem;
  background: var(--green-dark);
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  padding: .3rem .75rem;
  border-radius: 999px;
  letter-spacing: .06em;
  z-index: 2;
}
.curso-img {
  width: calc(100% + 4rem);
  margin: -2rem -2rem 1.25rem;
  display: block;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  object-fit: cover;
  max-height: 180px;
  object-position: center;
}
.curso-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: .5rem;
}
.curso-ctas .btn { flex: 1 1 auto; }

/* ============ Foro ============ */
.section-foro {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 10% 10%, rgba(46, 204, 113, 0.12), transparent 60%),
    radial-gradient(700px 400px at 95% 90%, rgba(25, 118, 210, 0.10), transparent 60%),
    var(--green-soft);
}
.section-foro::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(46, 204, 113, .04) 0 2px, transparent 2px 24px);
  pointer-events: none;
}
.foro-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
}

/* Mockup del foro */
.foro-mock {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -20px rgba(20, 83, 45, 0.35), var(--shadow-md);
  padding: 0;
  overflow: hidden;
  transform: rotate(-2deg);
  transition: transform .4s ease;
  max-width: 460px;
  margin: 0 auto;
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.foro-mock:hover { transform: rotate(0deg); }
.mock-header {
  display: flex;
  align-items: center;
  gap: .4rem;
  background: var(--gray-100);
  padding: .65rem .85rem;
  border-bottom: 1px solid var(--gray-300);
}
.mock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
}
.mock-dot:nth-child(2) { background: #f59e0b; }
.mock-dot:nth-child(3) { background: #22c55e; }
.mock-url {
  flex: 1;
  text-align: center;
  font-family: ui-monospace, 'Cascadia Code', Menlo, monospace;
  font-size: .72rem;
  color: var(--gray-500);
  background: var(--white);
  padding: .2rem .6rem;
  border-radius: 6px;
  border: 1px solid var(--gray-300);
}
.mock-post {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  padding: .9rem 1rem;
  border-bottom: 1px solid var(--gray-100);
  animation: softFloat 5s ease-in-out infinite;
}
.mock-post:last-child { border-bottom: 0; }
.mock-post-1 { animation-delay: -1s; }
.mock-post-2 { animation-delay: -2.5s; }
.mock-post-3 { animation-delay: -4s; }

.mock-avatar {
  flex: 0 0 38px;
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  font-weight: 700;
  font-size: .8rem;
  font-family: var(--font-head);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.mock-body { min-width: 0; flex: 1; }
.mock-title {
  font-weight: 600;
  color: var(--black);
  font-size: .92rem;
  margin-bottom: .2rem;
  line-height: 1.3;
}
.mock-meta {
  font-size: .75rem;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
}
.mock-badge {
  padding: .12rem .5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .65rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.mock-badge-ok {
  background: var(--green-soft);
  color: var(--green-dark);
  border: 1px solid rgba(21, 128, 61, 0.2);
}

/* Texto foro */
.foro-text .lead {
  color: var(--gray-700);
  font-size: 1.1rem;
  max-width: 50ch;
}
.foro-benefits {
  display: grid;
  gap: 1rem;
  margin: 1.75rem 0 2rem;
}
.foro-benefits li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.foro-benefit-icon {
  flex: 0 0 44px;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  transition: transform .3s ease, background .3s ease;
}
.foro-benefits li:hover .foro-benefit-icon {
  transform: translateY(-3px) rotate(-4deg);
  background: var(--green-brand);
}
.foro-benefits li > div {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.foro-benefits strong {
  color: var(--black);
  font-weight: 600;
  font-size: 1rem;
}
.foro-benefits span {
  color: var(--gray-700);
  font-size: .9rem;
}
.foro-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.btn-lg {
  padding: 1.05rem 2rem;
  font-size: 1.05rem;
}

/* ============ Videos ============ */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.video-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.video-wrap:hover img { transform: scale(1.04); }
.video-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  color: var(--green-dark);
  font-size: 1.5rem;
  border: 0;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform .2s ease, background .2s ease;
}
.video-wrap:hover .video-play {
  transform: scale(1.08);
  background: var(--white);
}
.video-wrap iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.videos-cta { text-align: center; margin-top: 2rem; }

/* ============ Contacto ============ */
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  margin-top: 2rem;
}
.contacto-info {
  display: grid;
  gap: 1.25rem;
}
.info-block {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}
.info-block h3 { margin-bottom: .35rem; font-size: 1rem; }
.info-block p { margin: 0; color: var(--gray-700); }
.social { display: flex; gap: 1rem; flex-wrap: wrap; }
.social a {
  padding: .5rem 1rem;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 600;
  font-size: .9rem;
}
.social a:hover { background: var(--green-dark); color: var(--white); }

.contacto-map {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 420px;
  box-shadow: var(--shadow-sm);
}
.contacto-map iframe {
  width: 100%; height: 100%; min-height: 420px;
  border: 0;
}

/* ============ Footer ============ */
.site-footer {
  background: var(--black);
  color: rgba(255,255,255,.75);
  padding-top: 3rem;
}
.site-footer .brand-text strong,
.site-footer .brand-text small { color: var(--white); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}
.footer-brand .muted { color: rgba(255,255,255,.6); max-width: 40ch; margin-top: 1rem; }
.footer-links h4 {
  color: var(--white);
  font-size: .95rem;
  margin-bottom: .75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.footer-links a {
  display: block;
  color: rgba(255,255,255,.75);
  padding: .25rem 0;
  font-size: .95rem;
}
.footer-links a:hover { color: var(--green-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.25rem 0;
  font-size: .85rem;
  text-align: center;
}
.footer-bottom p { margin: 0; color: rgba(255,255,255,.5); }

/* ============ FAB WhatsApp ============ */
.fab-wa {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--wa-green);
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .45);
  z-index: 99;
  transition: transform .2s ease;
}
.fab-wa:hover { transform: scale(1.08); color: var(--white); }
.fab-wa svg { width: 28px; height: 28px; }

/* ============ Animaciones ============ */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger: demora incremental para cada hijo */
.grid-cards .card,
.videos-grid .video-wrap,
.stats-inner .stat,
.cursos-grid .curso-card { transition-delay: 0s; }
.grid-cards .card:nth-child(1) { transition-delay: .05s; }
.grid-cards .card:nth-child(2) { transition-delay: .15s; }
.grid-cards .card:nth-child(3) { transition-delay: .25s; }
.grid-cards .card:nth-child(4) { transition-delay: .35s; }
.grid-cards .card:nth-child(5) { transition-delay: .45s; }
.grid-cards .card:nth-child(6) { transition-delay: .55s; }
.videos-grid .video-wrap:nth-child(1) { transition-delay: .1s; }
.videos-grid .video-wrap:nth-child(2) { transition-delay: .25s; }
.videos-grid .video-wrap:nth-child(3) { transition-delay: .4s; }
.stats-inner .stat:nth-child(1) { transition-delay: .05s; }
.stats-inner .stat:nth-child(2) { transition-delay: .15s; }
.stats-inner .stat:nth-child(3) { transition-delay: .25s; }
.stats-inner .stat:nth-child(4) { transition-delay: .35s; }

/* Keyframes */
@keyframes pulseRing {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); }
  80%  { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
@keyframes softFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@keyframes blobDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(20px, -15px) scale(1.05); }
  66%      { transform: translate(-15px, 10px) scale(.98); }
}
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(21, 128, 61, .35), var(--shadow-md); }
  50%      { box-shadow: 0 0 0 8px rgba(21, 128, 61, 0), var(--shadow-lg); }
}
@keyframes iconBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-6px) scale(1.08); }
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
@keyframes slideRight {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes countUp {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.18); }
  100% { transform: scale(1); }
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--green-brand), var(--blue));
  z-index: 200;
  box-shadow: 0 0 10px rgba(46, 204, 113, .5);
  transition: width .1s linear;
}

/* Header scroll shadow */
.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-bottom-color: transparent;
}

/* Hero extras */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  animation: blobDrift 12s ease-in-out infinite;
}
.hero::before {
  top: -80px; left: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(46, 204, 113, .45), transparent 70%);
}
.hero::after {
  bottom: -100px; right: -80px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(25, 118, 210, .35), transparent 70%);
  animation-delay: -6s;
}
.hero-text h1 {
  animation: slideRight .9s cubic-bezier(.2,.7,.2,1) .1s both;
}
.hero-text .lead {
  animation: slideRight .9s cubic-bezier(.2,.7,.2,1) .25s both;
}
.hero-ctas {
  animation: slideRight .9s cubic-bezier(.2,.7,.2,1) .4s both;
}
.hero-badges {
  animation: slideRight .9s cubic-bezier(.2,.7,.2,1) .55s both;
}
.hero .accent {
  background: linear-gradient(90deg, #2ecc71, #86efac, #2ecc71);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 4s ease-in-out infinite;
}

/* Botón primario con glow pulsante */
.btn-primary {
  position: relative;
  animation: glowPulse 2.4s ease-in-out infinite;
}

/* FAB WhatsApp con pulse ring */
.fab-wa {
  animation: pulseRing 2s ease-out infinite, softFloat 3s ease-in-out infinite;
}
.fab-wa::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--wa-green);
  opacity: 0;
  animation: pulseRing 2s ease-out infinite;
  pointer-events: none;
}

/* Cards con tilt y glow */
.card {
  transform-style: preserve-3d;
  will-change: transform;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(46, 204, 113, .08) 100%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card:hover .card-icon {
  animation: iconBounce .6s ease;
  background: var(--green-brand);
  color: var(--white);
}
.card-icon {
  transition: background .3s ease, color .3s ease, transform .3s ease;
}

/* Tiles de tienda con animacion flotante */
.tile { animation: softFloat 4s ease-in-out infinite; }
.tile-2 { animation-delay: -1s; }
.tile-3 { animation-delay: -2s; }
.tile-4 { animation-delay: -3s; }

/* Video hover: play button glow */
.video-wrap .video-play {
  animation: softFloat 3s ease-in-out infinite;
}
.video-wrap:hover .video-play {
  background: var(--green-brand);
  color: var(--white);
  box-shadow: 0 0 30px rgba(46, 204, 113, .6), var(--shadow-md);
}

/* Stats band */
.stats-band {
  position: relative;
  background: linear-gradient(135deg, var(--green-darker), var(--green-dark));
  color: var(--white);
  padding: 2.5rem 0;
  overflow: hidden;
}
.stats-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(46, 204, 113, .35), transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(25, 118, 210, .25), transparent 40%);
  animation: blobDrift 14s ease-in-out infinite;
  pointer-events: none;
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
  position: relative;
}
.stat { position: relative; }
.stat-num {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: .25rem;
}
.counter.done { animation: countUp .6s ease; }
.stat-label {
  font-size: .9rem;
  color: rgba(255, 255, 255, .8);
  letter-spacing: .05em;
}

/* Section head decorativo */
.section-head h2 {
  position: relative;
  display: inline-block;
}
.section-head h2::after {
  content: '';
  display: block;
  width: 60px; height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--green-brand), var(--blue));
  margin: .75rem auto 0;
}
.section-dark .section-head h2::after {
  background: linear-gradient(90deg, var(--green-brand), var(--white));
}

/* Brand logo con shimmer en hover */
.brand {
  position: relative;
  overflow: hidden;
}
.brand:hover .brand-logo {
  filter: drop-shadow(0 0 8px rgba(46, 204, 113, .4));
}
.brand-logo { transition: filter .3s ease, transform .3s ease; }
.brand:hover .brand-logo { transform: scale(1.03); }

/* Cursor personalizado en CTAs importantes */
.btn-primary,
.btn-wa,
.fab-wa { cursor: pointer; }

/* Deshabilitar seleccion y drag en todo salvo inputs y párrafos */
body {
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}
input, textarea, [contenteditable="true"] {
  -webkit-user-select: text;
     -moz-user-select: text;
      -ms-user-select: text;
          user-select: text;
}
img {
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: auto;
}

/* Respeto a prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero::before, .hero::after,
  .stats-band::before,
  .tile, .fab-wa { animation: none !important; }
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .tienda-inner { grid-template-columns: 1fr; }
  .cursos-grid { grid-template-columns: 1fr; }
  .contacto-grid { grid-template-columns: 1fr; }
  .foro-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .foro-visual { order: -1; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}
@media (max-width: 480px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .75rem 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-300);
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    transition: transform .25s ease;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }
  .primary-nav.open { transform: translateY(0); }
  .primary-nav a {
    padding: .85rem .25rem;
    border-bottom: 1px solid var(--gray-100);
  }
  .primary-nav a.btn-wa {
    margin-top: .75rem;
    justify-content: center;
  }

  .footer-inner { grid-template-columns: 1fr; text-align: left; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .fab-wa { width: 52px; height: 52px; bottom: 1rem; right: 1rem; }
  .fab-wa svg { width: 24px; height: 24px; }
}

@media (max-width: 480px) {
  .hero-badges { flex-direction: column; gap: .5rem; }
  .section-head { margin-bottom: 1.75rem; }
}
