/* components.css — Estilos de cada bloque de la landing.
   Orden: 1 Logo · 2 Trust bar · 3 Headline · 4 Formulario · 5 Reseñas · 6 Brand logos · 7 Footer */

/* ────────────────────────────
   1. LOGO
──────────────────────────── */
.logo-bar {
  padding: 28px 0 20px;
  display: flex;
  justify-content: center;
  width: 100%;
}
.logo {
  display: inline-flex;
  text-decoration: none;
}
.logo img {
  height: 38px;
  width: auto;
  display: block;
}

/* ────────────────────────────
   2. TRUST BAR (3 generadores en grilla, estilo "Iniciamos" de Landing fb ads)
──────────────────────────── */
.trust-bar {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 12px;
  margin-bottom: 32px;
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 7px;
  padding: 4px;
}
.trust-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.trust-icon svg {
  width: 21px; height: 21px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.trust-value {
  font-family: var(--fh);
  font-size: 19px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}
.trust-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ────────────────────────────
   3. HEADLINE
──────────────────────────── */
h1 {
  font-family: var(--fh);
  font-size: clamp(26px, 7vw, 38px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-align: center;
  margin-bottom: 14px;
}
h1 em {
  font-style: normal;
  color: var(--accent);
}

/* ────────────────────────────
   4. FORMULARIO
──────────────────────────── */
.form-wrap {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px 20px 20px;
  position: relative;
  overflow: hidden;
  margin-bottom: 32px;
}
.form-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.form-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: clamp(10px, 2.8vw, 13px);
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: clamp(0.03em, 0.5vw, 0.1em);
  margin-bottom: 16px;
  white-space: nowrap;
}
.form-label .arrow-blink {
  flex-shrink: 0;
}

.field { margin-bottom: 10px; }
.field input {
  width: 100%;
  background-color: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 11px;
  padding: 13px 16px;
  color: var(--text);
  font-family: var(--fb);
  font-size: 15px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder { color: rgba(255,255,255,0.22); }
.field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.field input.has-error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.18);
}
.field-error {
  display: block;
  font-size: 13px;
  color: #ef4444;
  margin-top: 6px;
  padding-left: 4px;
  line-height: 1.4;
}

/* Honeypot anti-spam — fuera de pantalla, invisible para usuarios reales */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn {
  width: 100%;
  margin-top: 6px;
  background: var(--cta);
  color: #fff;
  font-family: var(--fh);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: none;
  border-radius: 11px;
  padding: 16px;
  cursor: pointer;
  box-shadow: 0 4px 22px var(--cta-glow);
  transition: background .2s, transform .15s, box-shadow .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn:hover  { background:var(--accent-hover); transform:translateY(-1px); box-shadow:0 8px 28px var(--cta-glow); }
.btn:active { transform:scale(.98); }
.btn .arr   { transition: transform .2s; }
.btn:hover .arr { transform: translateX(4px); }
/* Estado tras enviar el formulario (lo aplica main.js) */
.btn.is-sent {
  background: var(--success);
  box-shadow: 0 4px 22px rgba(0,196,113,0.3);
}

/* ────────────────────────────
   5. RESEÑAS (slider animado, fondo beige estilo "temario")
──────────────────────────── */
.reviews-section {
  /* Ancho completo: rompe la columna .page y ocupa todo el viewport.
     Como .page centra sus hijos, un hijo de 100vw queda centrado en pantalla. */
  width: 100vw;
  background: var(--reviews-bg);
  border-radius: 2.5rem;
  padding: 28px 20px 32px;
  margin-bottom: 36px;
}
.reviews-title {
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--reviews-text);
  text-align: center;
  margin-bottom: 18px;
}
.testimonials-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px;
  max-height: 448px;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
}
.tcol {
  flex: 1;
  min-width: 0;
  max-width: 240px;
}
/* Segunda columna: oculta en móvil (1 columna), visible en ≥600px */
.tcol2 { display: none; }
.tcol-inner {
  --dur: 70s; /* velocidad del scroll; la columna 2 la sobrescribe */
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 10px;
  animation: scroll-up var(--dur) linear infinite;
}
.tcol2 .tcol-inner { --dur: 85s; }
.tcard {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
}
.tcard img {
  width: 100%;
  display: block;
  height: auto;
}

/* ────────────────────────────
   6. BRAND LOGOS (marquee horizontal, replicado de Landing fb ads)
──────────────────────────── */
.brand-logos {
  width: 100%;
  margin-bottom: 36px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.brand-logos-title {
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 18px;
}
.marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  /* fade en ambos bordes */
  mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 25s linear infinite;
}
.marquee-track img {
  height: 30px;
  width: auto;
  margin-right: 44px;
  object-fit: contain;
  opacity: 0.6;
  transition: opacity .3s;
  flex-shrink: 0;
}
.marquee-track img:hover { opacity: 1; }

/* ────────────────────────────
   7. FOOTER
──────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 20px;
  text-align: center;
  width: 100%;
}
.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-bottom: 10px;
}
.footer-links a {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 11px; color: var(--muted); opacity: .5; }

/* ────────────────────────────
   8. RESPONSIVE
   La landing es mobile-first: los estilos de arriba son la base (móvil).
   Estos bloques la adaptan a otros tamaños de pantalla.
──────────────────────────── */

/* — Teléfonos pequeños (≤360px): evita que el contenido quede apretado — */
@media (max-width: 360px) {
  .page              { padding: 0 14px 40px; }
  .logo-bar          { padding: 22px 0 16px; }
  .logo img          { height: 32px; }
  .trust-bar         { gap: 4px; padding: 12px 8px; }
  .trust-icon        { width: 36px; height: 36px; }
  .trust-icon svg    { width: 18px; height: 18px; }
  .trust-value       { font-size: 15px; }
  .trust-label       { font-size: 9px; }
  .form-wrap         { padding: 20px 16px 16px; }
  .marquee-track img { height: 26px; margin-right: 32px; }
  .testimonials-wrap { max-height: 368px; }
}

/* — Tablet y desktop (≥600px): columna más amplia y tipografía mayor — */
@media (min-width: 600px) {
  .page              { max-width: 540px; padding: 0 24px 72px; }
  .logo-bar          { padding: 40px 0 28px; }
  .logo img          { height: 44px; }
  .trust-bar         { padding: 20px 14px; gap: 10px; }
  .trust-icon        { width: 50px; height: 50px; border-radius: 13px; }
  .trust-icon svg    { width: 25px; height: 25px; }
  .trust-value       { font-size: 26px; }
  .trust-label       { font-size: 12px; }
  h1                 { font-size: 42px; }
  .form-wrap         { padding: 28px 26px 24px; }
  .tcol              { max-width: 265px; }
  .tcol2             { display: block; }
  .testimonials-wrap { max-height: 528px; }
  .reviews-section   { border-radius: 3.5rem; padding: 38px 24px 44px; }
  .reviews-title     { font-size: 22px; }
  .marquee-track img { height: 40px; margin-right: 64px; }
}
