/* Sección "Crea tu cuenta completamente gratis" (debajo del Concepto de marca).
   Diseño limpio: tarjeta suave, tipografía Sora y un sello GRATIS en la esquina.
   La animación del registro es CSS (no una captura). */

.reg-section {
  --ink: #17301f;
  --verde: #3E9A1A;
  --verde-claro: #58B71B;
  position: relative;
  overflow: hidden;
  padding: 62px 0 40px;
  color: var(--ink);
  background: #F5F2EA; /* mismo beige de la encuesta y del concepto de marca; color plano, sin degradado */
  font-family: 'Sora', system-ui, sans-serif;
}
.reg-wrap { position: relative; }

.reg-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding: 64px 60px;
  border: 1px solid #E1EBD8;
  border-radius: 34px;
  background: #F4F9EF;
  box-shadow: 0 24px 60px rgba(30, 70, 40, .08);
}

/* ── Sello GRATIS (esquina derecha) ───────────────────── */
.reg-stamp {
  position: absolute;
  z-index: 3;
  top: -50px;
  right: 8px;
  width: 148px;
  transform: rotate(8deg);
  transform-origin: 50% 50%;
  animation: regStamp 4.5s ease-in-out infinite;
  filter: drop-shadow(0 12px 18px rgba(170, 115, 8, .38));
  pointer-events: none;
}
.reg-stamp svg { display: block; width: 100%; height: auto; overflow: visible; }
@keyframes regStamp {
  0%, 100% { transform: rotate(8deg) translateY(0); }
  50% { transform: rotate(5deg) translateY(-6px); }
}

/* El Concepto de marca que sigue no necesita su relleno superior grande */
.reg-section + .concept-section { padding-top: 56px; }

/* ── Texto ─────────────────────────────────────────────── */
.reg-copy .section-tag { margin-bottom: 4px; }
.reg-title {
  margin: 10px 0 12px;
  font-family: 'Sora', system-ui, sans-serif;
  font-size: clamp(2.2rem, 4.3vw, 3.6rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.04em;
  color: var(--ink);
}
.reg-hl { display: inline; color: var(--verde); }
.reg-sub {
  margin: 0 0 18px;
  font-family: 'Sora', system-ui, sans-serif;
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -.03em;
  color: var(--ink);
}
.reg-sub mark {
  color: inherit;
  background: linear-gradient(180deg, transparent 62%, #FFD88A 62%);
  padding: 0 .08em;
}
.reg-lead {
  max-width: 52ch;
  margin: 0 0 24px;
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  line-height: 1.65;
  color: #566a5b;
}
.reg-lead strong { color: var(--ink); font-weight: 600; }

.reg-steps { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 12px; max-width: 520px; }
.reg-steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border: 1px solid #E1EBD8;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(30, 70, 40, .05);
}
.reg-steps .n {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #E3F2D5;
  font-family: 'Sora', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  color: var(--verde);
}
.reg-steps b { display: block; font-family: 'Sora', sans-serif; font-size: 1rem; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.reg-steps span.d { display: block; margin-top: 1px; font-size: .92rem; line-height: 1.45; color: #6a7c6f; }

.reg-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.reg-btn, .reg-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform .25s, box-shadow .25s, background .25s, color .25s;
}
.reg-btn {
  background: #397655;
  color: #fff;
  border: 1.5px solid #397655;
  box-shadow: 0 10px 24px rgba(57, 118, 85, .24);
}
.reg-btn:hover { background: #2F6548; border-color: #2F6548; transform: translateY(-2px); }
.reg-btn svg { width: 18px; height: 18px; transition: transform .25s; }
.reg-btn:hover svg { transform: translateX(3px); }
.reg-link {
  background: transparent;
  color: #397655;
  border: 1.5px solid rgba(57, 118, 85, .4);
}
.reg-link:hover { background: #fff; border-color: #397655; transform: translateY(-2px); }
.reg-btn:focus-visible, .reg-link:focus-visible { outline: 3px solid #9BD36A; outline-offset: 3px; }
.reg-note {
  width: 100%;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-size: .86rem;
  color: #6a7c6f;
}
.reg-note li { display: inline-flex; align-items: center; gap: 7px; }
.reg-note svg { flex: 0 0 auto; width: 15px; height: 15px; padding: 2.5px; border-radius: 50%; background: #DDEFCB; color: #397655; }

/* ── Animación ─────────────────────────────────────────── */
.reg-demo { position: relative; display: grid; justify-items: center; padding: 18px 0; }
.reg-device {
  position: relative;
  width: min(100%, 430px);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 30px 60px rgba(25, 60, 35, .18), 0 0 0 1px rgba(25, 60, 35, .06);
  z-index: 1;
  animation: regFloat 7s ease-in-out infinite;
}
@keyframes regFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
/* círculo suave detrás de la animación */
.reg-demo::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(100%, 440px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #E1F0D1;
}
.reg-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  background: #E9EEE9;
  border-radius: 22px 22px 0 0;
}
.reg-bar i { width: 10px; height: 10px; border-radius: 50%; background: #c9d3cd; }
.reg-bar i:nth-child(1) { background: #ff6b5e; }
.reg-bar i:nth-child(2) { background: #ffc13d; }
.reg-bar i:nth-child(3) { background: #3fd36b; }
.reg-url {
  margin-left: 10px;
  padding: 4px 14px;
  border-radius: 999px;
  background: #fff;
  font-size: 11.5px;
  color: #5b6b62;
}
.reg-screen { position: relative; height: 372px; overflow: hidden; color: #16301f; }
.reg-s {
  position: absolute;
  inset: 0;
  padding: 22px 26px;
  opacity: 0;
  background: #fff;
}
.reg-logo { margin-bottom: 4px; font-family: 'Sora', sans-serif; font-size: 15px; font-weight: 700; letter-spacing: -.02em; color: #2B9D5B; }
.reg-logo b { color: #16301f; font-weight: 700; }
.reg-s h4 { margin: 0 0 14px; font-family: 'Sora', sans-serif; font-size: 20px; font-weight: 700; letter-spacing: -.03em; color: #0f2418; }
.reg-field { margin-bottom: 11px; }
.reg-field label { display: block; margin-bottom: 4px; font-size: 11.5px; font-weight: 600; color: #6b7c72; }
.reg-input {
  height: 38px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 10px;
  border: 1.5px solid #dde6e0;
  background: #fafcfb;
  font-size: 14px;
  color: #16301f;
}
.reg-type, .reg-dots { display: inline-block; white-space: nowrap; clip-path: inset(0 100% 0 0); }
.reg-dots { letter-spacing: 2px; color: #51615a; }
.reg-cta {
  margin-top: 16px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--verde-claro);
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 8px 18px rgba(62, 154, 26, .32);
}
.reg-cursor {
  position: absolute;
  right: 74px;
  bottom: 40px;
  width: 20px;
  height: 20px;
  opacity: 0;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l15 9-6.5 1.6L9.6 19z' fill='%23111' stroke='%23fff' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.reg-s--ok { display: grid; align-content: center; justify-items: center; text-align: center; gap: 6px; }
.reg-check {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--verde-claro);
  box-shadow: 0 14px 30px rgba(62, 154, 26, .36);
}
.reg-check svg { width: 38px; height: 38px; }
.reg-check path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: regDraw 14s infinite; }
@keyframes regDraw { 0%, 63% { stroke-dashoffset: 30; } 67%, 100% { stroke-dashoffset: 0; } }
.reg-s--ok h4 { margin-bottom: 0; font-size: 22px; }
.reg-s--ok p { margin: 0; font-size: 13.5px; color: #5b6b62; }

.reg-s--pick h4 { font-size: 18px; margin-bottom: 4px; }
.reg-s--pick p.sub { margin: 0 0 12px; font-size: 12.5px; color: #6b7c72; }
.reg-cards { display: grid; gap: 9px; }
.reg-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 13px;
  border: 1.5px solid #e3e9e5;
  background: #fafcfb;
  opacity: 0;
}
.reg-card .th {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #B5E389;
}
.reg-card--2 .th { background: #FFCB85; }
.reg-card--3 .th { background: #A9CDF2; }
.reg-card b { display: block; font-family: 'Sora', sans-serif; font-size: 12.8px; font-weight: 600; letter-spacing: -.01em; color: #16301f; line-height: 1.25; }
.reg-card small { font-size: 11px; color: #7a8a81; }
.reg-badge {
  position: absolute;
  right: 10px;
  top: 50%;
  width: 24px;
  height: 24px;
  margin-top: -12px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #2B9D5B;
  opacity: 0;
}
.reg-badge svg { width: 14px; height: 14px; }
.reg-toast {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 16px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #0f2418;
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
  opacity: 0;
}
.reg-toast span { color: #8fe04a; }

/* Línea de tiempo (14 s): formulario → cuenta creada → elegir prueba gratuita */
.reg-s--form { animation: regForm 14s infinite; }
.reg-s--ok { animation: regOk 14s infinite; }
.reg-s--pick { animation: regPick 14s infinite; }
@keyframes regForm { 0% { opacity: 0; transform: translateY(10px); } 3%, 60% { opacity: 1; transform: none; } 63%, 100% { opacity: 0; transform: translateY(-10px); } }
@keyframes regOk { 0%, 61% { opacity: 0; transform: scale(.94); } 64%, 73% { opacity: 1; transform: scale(1); } 76%, 100% { opacity: 0; transform: scale(1.03); } }
@keyframes regPick { 0%, 74% { opacity: 0; transform: translateY(10px); } 77%, 96% { opacity: 1; transform: none; } 99%, 100% { opacity: 0; } }
.reg-type--1 { animation: regT1 14s steps(11) infinite; }
.reg-type--2 { animation: regT2 14s steps(17) infinite; }
.reg-dots { animation: regT3 14s steps(10) infinite; }
@keyframes regT1 { 0%, 6% { clip-path: inset(0 100% 0 0); } 20%, 100% { clip-path: inset(0 0 0 0); } }
@keyframes regT2 { 0%, 22% { clip-path: inset(0 100% 0 0); } 40%, 100% { clip-path: inset(0 0 0 0); } }
@keyframes regT3 { 0%, 42% { clip-path: inset(0 100% 0 0); } 51%, 100% { clip-path: inset(0 0 0 0); } }
.reg-cta { animation: regPress 14s infinite; }
@keyframes regPress { 0%, 54% { transform: scale(1); filter: none; } 57% { transform: scale(.95); filter: brightness(.92); } 60%, 100% { transform: scale(1); filter: none; } }
.reg-cursor { animation: regCursor 14s infinite; }
@keyframes regCursor {
  0%, 46% { opacity: 0; transform: translate(70px, 60px); }
  49% { opacity: 1; transform: translate(70px, 60px); }
  55% { opacity: 1; transform: translate(0, 0); }
  58%, 60% { opacity: 1; transform: translate(0, 0) scale(.85); }
  62%, 100% { opacity: 0; transform: translate(0, 0); }
}
.reg-card--1 { animation: regCard1 14s infinite; }
.reg-card--2 { animation: regCard2 14s infinite, regSel 14s infinite; }
.reg-card--3 { animation: regCard3 14s infinite; }
@keyframes regCard1 { 0%, 76% { opacity: 0; transform: translateY(12px); } 80%, 100% { opacity: 1; transform: none; } }
@keyframes regCard2 { 0%, 78% { opacity: 0; transform: translateY(12px); } 82%, 100% { opacity: 1; transform: none; } }
@keyframes regCard3 { 0%, 80% { opacity: 0; transform: translateY(12px); } 84%, 100% { opacity: 1; transform: none; } }
@keyframes regSel { 0%, 86% { border-color: #e3e9e5; box-shadow: none; background: #fafcfb; } 89%, 100% { border-color: #58B71B; box-shadow: 0 8px 20px rgba(88, 183, 27, .28); background: #f2faec; } }
.reg-card--2 .reg-badge { animation: regBadge 14s infinite; }
@keyframes regBadge { 0%, 87% { opacity: 0; transform: scale(.3); } 90%, 100% { opacity: 1; transform: scale(1); } }
.reg-toast { animation: regToast 14s infinite; }
@keyframes regToast { 0%, 90% { opacity: 0; transform: translateY(10px); } 93%, 100% { opacity: 1; transform: none; } }

/* Detalles flotantes alrededor */
.reg-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #E1EBD8;
  box-shadow: 0 14px 30px rgba(25, 60, 35, .16);
  font-family: 'Sora', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: #0f2418;
  z-index: 2;
  animation: regBob 6s ease-in-out infinite;
}
.reg-float svg { width: 17px; height: 17px; }
.reg-float--a { left: -6px; top: 52px; }
.reg-float--b { right: -4px; bottom: 58px; animation-delay: -3s; }
@keyframes regBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* Fuera de pantalla la animación se pausa (la activa assets/js/registro-gratis.js) */
.reg-demo.is-paused, .reg-demo.is-paused * { animation-play-state: paused !important; }

/* ── Tablet y celular ──────────────────────────────────── */
@media (max-width: 960px) {
  .reg-section { padding: 70px 0 36px; }
  .reg-grid { grid-template-columns: 1fr; gap: 44px; padding: 44px 32px; }
  .reg-stamp { top: -52px; right: 10px; width: 124px; }
}
@media (max-width: 520px) {
  .reg-section { padding-top: 66px; }
  .reg-section .section-container { padding: 0 16px; }
  .reg-grid { padding: 34px 20px 38px; border-radius: 26px; }
  .reg-stamp { top: -48px; right: 6px; width: 104px; }
  .reg-title { letter-spacing: -.035em; }
  .reg-actions { flex-direction: column; align-items: stretch; }
  .reg-device { width: min(100%, 360px); }
  .reg-screen { height: 356px; }
  .reg-float { font-size: 11.5px; padding: 7px 11px; }
  .reg-float--a { left: 0; top: 40px; }
  .reg-float--b { right: 0; }
}

/* Quien prefiere menos movimiento ve directamente el resultado final, sin animar */
@media (prefers-reduced-motion: reduce) {
  .reg-device, .reg-float, .reg-stamp { animation: none; }
  .reg-s, .reg-card, .reg-badge, .reg-toast, .reg-check path, .reg-cta, .reg-type, .reg-dots, .reg-cursor { animation: none !important; }
  .reg-s--form, .reg-s--ok { opacity: 0; }
  .reg-s--pick { opacity: 1; }
  .reg-card { opacity: 1; }
  .reg-card--2 { border-color: #58B71B; background: #f2faec; box-shadow: 0 8px 20px rgba(88, 183, 27, .28); }
  .reg-badge, .reg-toast { opacity: 1; }
  .reg-type, .reg-dots { clip-path: none; }
}
