/* ==========================================================================
   SISTEMA DE DISEÑO - JORNADA DE COACHING ONTOLÓGICO SOLIDARIO
   Inspirado en la estética de alta conversión con Glassmorphism y Paleta OKLCH
   ========================================================================== */

:root {
  /* Paleta Base y Acentos */
  --aqua: #2dd4bf;
  --teal: #14b8a6;
  --cobalt: #2563eb;
  --deep: #0f172a;
  --night: #0b1120;
  --snow: #ffffff;
  --snow-muted: rgba(255, 255, 255, 0.85);
  --snow-subtle: rgba(255, 255, 255, 0.65);
  --snow-border: rgba(255, 255, 255, 0.16);
  --snow-border-hover: rgba(255, 255, 255, 0.3);

  --mint: #86efac;
  --mint-glow: rgba(134, 239, 172, 0.25);
  --magenta: #e11d48;
  --magenta-hover: #f43f5e;
  --magenta-glow: rgba(225, 29, 72, 0.4);
  --emerald: #10b981;
  --emerald-hover: #059669;

  /* Gradiente de Marca */
  --gradient-brand: linear-gradient(180deg, #0d9488 0%, #0891b2 14%, #2563eb 45%, #1e1b4b 80%, #090d16 100%);
  --surface-glass: rgba(15, 23, 42, 0.55);
  --surface-glass-light: rgba(255, 255, 255, 0.08);
  --surface-card: rgba(17, 24, 39, 0.65);

  /* Sombras y Efectos */
  --shadow-bubble: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
  --shadow-glow: 0 0 25px rgba(225, 29, 72, 0.35);

  /* Tipografías */
  --font-sans: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-display: 'Fraunces', Georgia, serif;

  /* Radios */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Transición */
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset y base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--gradient-brand);
  color: var(--snow);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Fondo dinámico de partículas/burbujas */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-particle {
  position: absolute;
  bottom: -120px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  animation: particleRise linear infinite;
}

@keyframes particleRise {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }
  15% {
    opacity: 0.8;
  }
  85% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-120vh) rotate(360deg);
    opacity: 0;
  }
}

/* Floating animation */
.float-gentle {
  animation: floatGentle 5s ease-in-out infinite;
}

.float-slow {
  animation: floatGentle 7s ease-in-out infinite;
}

@keyframes floatGentle {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Layout container */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

.container-narrow {
  max-width: 840px;
}

/* Header & Navbar */
.site-header {
  padding-top: 2rem;
  position: relative;
  z-index: 10;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  background: rgba(255, 255, 255, 0.94);
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-full);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
}

.brand-badge img.logo-ecoa {
  height: 40px;
  width: auto;
}

.brand-badge .divider {
  width: 1px;
  height: 28px;
  background: rgba(15, 23, 42, 0.2);
}

.brand-badge img.logo-estacion {
  height: 32px;
  width: auto;
}

.event-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--mint);
  display: inline-block;
}

/* Hero Section */
.hero-section {
  padding: 4rem 0 5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.25fr 0.95fr;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
}

.kicker {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--mint);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--snow);
  letter-spacing: -0.02em;
}

.hero-title .highlight-mint {
  color: var(--mint);
  display: inline;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--snow-muted);
  margin-top: 1.5rem;
  max-width: 540px;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.25rem;
}

/* Tarjeta destacada de fecha y valor (Hero Aside Card) */
.ticket-card {
  background: var(--surface-glass);
  border: 1px solid var(--snow-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-bubble);
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

.ticket-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(134, 239, 172, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.ticket-card-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  margin-top: 0.5rem;
  color: var(--snow);
}

.event-details-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 1.75rem 0;
}

.event-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.event-detail-icon {
  font-size: 1.35rem;
  color: var(--mint);
  line-height: 1.2;
}

.event-detail-label {
  font-weight: 600;
  font-size: 1rem;
  color: var(--snow);
}

.event-detail-sub {
  font-size: 0.88rem;
  color: var(--snow-subtle);
}

.ticket-pricing-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-top: 1px solid var(--snow-border);
  padding-top: 1.25rem;
  margin-top: 1rem;
}

.ticket-price-label {
  font-size: 0.88rem;
  color: var(--snow-subtle);
}

.ticket-price-val {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--snow);
  line-height: 1;
  margin-top: 0.25rem;
}

.ticket-solidario-tag {
  background: rgba(134, 239, 172, 0.15);
  border: 1px solid rgba(134, 239, 172, 0.35);
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Botones y CTAs */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 1.85rem;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--magenta);
  color: var(--snow);
  box-shadow: 0 10px 25px -5px var(--magenta-glow);
}

.btn-primary:hover {
  background: var(--magenta-hover);
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px var(--magenta-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--snow);
  border: 1px solid var(--snow-border);
  backdrop-filter: blur(6px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--snow-border-hover);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: var(--emerald);
  color: var(--snow);
  box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.4);
}

.btn-whatsapp:hover {
  background: var(--emerald-hover);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

.btn-icon {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

/* Secciones Generales */
.section {
  padding: 5rem 0;
  position: relative;
  z-index: 2;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--snow);
  margin-top: 0.75rem;
}

.section-subtitle {
  font-size: 1.12rem;
  color: var(--snow-muted);
  margin-top: 1rem;
}

/* Grillas y Tarjetas de Contenido */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--surface-glass-light);
  border: 1px solid var(--snow-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-bubble);
  backdrop-filter: blur(12px);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--snow-border-hover);
  background: rgba(255, 255, 255, 0.12);
}

.feature-icon-badge {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.25);
  color: var(--mint);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.feature-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--mint);
  margin-bottom: 0.5rem;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--snow);
  margin-bottom: 0.6rem;
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--snow-muted);
  line-height: 1.55;
}

/* Sección Lo Que Te Llevás (Split) */
.split-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .split-card-grid {
    grid-template-columns: 1fr 1.15fr;
  }
}

.card-callout {
  background: var(--surface-glass);
  border: 1px solid var(--snow-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-bubble);
  backdrop-filter: blur(16px);
}

.takeaway-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.takeaway-item {
  display: flex;
  align-items: flex-start;
  gap: 1.15rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--snow-border);
}

.takeaway-item:first-child {
  padding-top: 0;
}

.takeaway-check {
  font-size: 1.35rem;
  color: var(--mint);
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.takeaway-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--snow);
}

.takeaway-desc {
  font-size: 0.92rem;
  color: var(--snow-muted);
  margin-top: 0.25rem;
}

/* Disertantes */
.speakers-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.speaker-card {
  min-width: 280px;
  max-width: 340px;
  flex: 1;
  background: var(--surface-glass-light);
  border: 1px solid var(--snow-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.75rem;
  text-align: center;
  box-shadow: var(--shadow-bubble);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: var(--transition);
}

.speaker-card:hover {
  transform: translateY(-4px);
  border-color: var(--mint);
}

.speaker-avatar {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-full);
  border: 3px solid var(--mint);
  object-fit: cover;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  margin-bottom: 1.25rem;
}

.speaker-role {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--mint);
}

.speaker-name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--snow);
  margin-top: 0.4rem;
}

.speaker-bio {
  font-size: 0.9rem;
  color: var(--snow-muted);
  margin-top: 0.6rem;
  line-height: 1.5;
}

/* ==========================================================================
   FORMULARIO DE CAPTACIÓN DE ALTA CONVERSIÓN
   Datos: Nombre, Apellido, Celular -> Guarda en Airtable + Redirige a WhatsApp
   ========================================================================== */
.form-section {
  padding: 5rem 0 6rem;
  position: relative;
}

.form-wrapper {
  max-width: 680px;
  margin: 0 auto;
  background: var(--surface-card);
  border: 1px solid var(--snow-border);
  border-radius: var(--radius-lg);
  padding: 2.75rem;
  box-shadow: 0 35px 70px -15px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  position: relative;
}

@media (max-width: 640px) {
  .form-wrapper {
    padding: 2rem 1.25rem;
  }
}

.form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.form-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(134, 239, 172, 0.15);
  border: 1px solid rgba(134, 239, 172, 0.3);
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.form-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--snow);
}

.form-subtitle {
  font-size: 1rem;
  color: var(--snow-muted);
  margin-top: 0.5rem;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.form-row-dual {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 580px) {
  .form-row-dual {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  text-align: left;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--snow);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-label .required-mark {
  color: var(--magenta);
}

.input-container {
  position: relative;
}

.form-input {
  width: 100%;
  padding: 0.95rem 1.15rem;
  font-size: 1rem;
  font-family: var(--font-sans);
  color: var(--snow);
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--snow-border);
  border-radius: var(--radius-md);
  outline: none;
  transition: var(--transition);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.form-input:focus {
  border-color: var(--mint);
  box-shadow: 0 0 0 3px var(--mint-glow), 0 0 15px rgba(134, 239, 172, 0.2);
  background: rgba(15, 23, 42, 0.9);
}

.form-input.is-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25);
}

.input-feedback {
  font-size: 0.8rem;
  color: #f87171;
  display: none;
  margin-top: 0.2rem;
}

.input-feedback.is-visible {
  display: block;
}

/* Prefijo de teléfono */
.phone-input-wrap {
  display: flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--snow-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.phone-input-wrap:focus-within {
  border-color: var(--mint);
  box-shadow: 0 0 0 3px var(--mint-glow), 0 0 15px rgba(134, 239, 172, 0.2);
  background: rgba(15, 23, 42, 0.9);
}

.phone-prefix {
  padding: 0.95rem 0.9rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--mint);
  background: rgba(255, 255, 255, 0.05);
  border-right: 1px solid var(--snow-border);
  user-select: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.phone-input-wrap .form-input {
  border: none;
  background: transparent;
  box-shadow: none;
}

.phone-input-wrap .form-input:focus {
  box-shadow: none;
}

/* Honeypot invisible antibot */
.honeypot-field {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  height: 0;
  width: 0;
  z-index: -1;
  pointer-events: none;
}

/* Cloudflare Turnstile contenedor */
.turnstile-container {
  display: flex;
  justify-content: center;
  margin: 0.5rem 0;
  min-height: 65px;
}

/* Mensajes de Estado del Formulario */
.form-status-alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  display: none;
  text-align: center;
  line-height: 1.5;
}

.form-status-alert.alert-error {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fecaca;
  display: block;
}

.form-status-alert.alert-success {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #a7f3d0;
  display: block;
}

/* Estado de Éxito / Redirección */
.form-success-box {
  display: none;
  text-align: center;
  padding: 2.5rem 1rem;
}

.form-success-box.is-active {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.success-icon-wrap {
  width: 76px;
  height: 76px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.2);
  border: 2px solid var(--emerald);
  display: grid;
  place-items: center;
  color: var(--mint);
  font-size: 2.25rem;
  animation: pulseScale 1.8s infinite ease-in-out;
}

@keyframes pulseScale {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 0 14px rgba(16, 185, 129, 0);
  }
}

.success-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--snow);
}

.success-text {
  font-size: 1.05rem;
  color: var(--snow-muted);
  max-width: 480px;
}

/* Preguntas Frecuentes */
.faq-wrap {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--surface-glass);
  border: 1px solid var(--snow-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--snow-border-hover);
}

.faq-question {
  width: 100%;
  padding: 1.35rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: transparent;
  border: none;
  color: var(--snow);
  font-family: var(--font-sans);
  font-size: 1.08rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-arrow {
  font-size: 1.25rem;
  color: var(--mint);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.is-open .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.6rem;
  color: var(--snow-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.faq-item.is-open .faq-answer {
  max-height: 320px;
  padding: 0 1.6rem 1.4rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--snow-border);
  background: rgba(11, 17, 32, 0.85);
  backdrop-filter: blur(12px);
  padding: 2.25rem 0;
  font-size: 0.88rem;
  color: var(--snow-subtle);
  position: relative;
  z-index: 10;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Botón Flotante de WhatsApp */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 99;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: var(--emerald);
  color: var(--snow);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.45);
  transition: var(--transition);
  border: 2px solid rgba(255, 255, 255, 0.25);
}

.floating-whatsapp-btn:hover {
  transform: scale(1.1) translateY(-2px);
  background: var(--emerald-hover);
  box-shadow: 0 16px 36px rgba(16, 185, 129, 0.6);
}

.floating-whatsapp-btn svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}
