/* ── VARIABLES ── */
:root {
  --brand-50:   #E1F5EE;
  --brand-100:  #9FE1CB;
  --brand-300:  #4DC49A;
  --brand-500:  #1D9E75;
  --brand-700:  #0F6E56;
  --brand-900:  #04342C;
  --amber-50:   #FAEEDA;
  --amber-400:  #EF9F27;
  --amber-700:  #8A5200;
  --accent-500: #1455AB;
  --text-primary:   #111111;
  --text-secondary: #4A5568;
  --text-muted:     #94A3B8;
  --surface:    #FFFFFF;
  --bg-page:    #F7F6F2;
  --border-soft:   rgba(0,0,0,0.07);
  --border-medium: rgba(0,0,0,0.13);
  --shadow-md:  0 10px 30px rgba(15,23,42,0.08);
  --shadow-lg:  0 20px 50px rgba(15,23,42,0.12);
  --white:  #FFFFFF;
  --container: 1200px;
  --radius-sm: 10px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--text-primary); background: var(--bg-page); line-height: 1.5; }
img { max-width: 100%; display: block; }
a { text-decoration: none; }

/* ── CONTAINER ── */
.s-container { width: min(100% - 32px, var(--container)); margin: 0 auto; }

/* ── TOKENS DE SECCIÓN ── */
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Sora', sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brand-500); margin-bottom: 10px;
}
.section-label::before { content: ''; display: block; width: 18px; height: 2px; background: var(--brand-300); border-radius: 1px; flex-shrink: 0; }

.section-title { font-family: 'Sora', sans-serif; font-size: clamp(26px,3vw,38px); font-weight: 700; line-height: 1.15; letter-spacing: -0.03em; color: var(--text-primary); margin-bottom: 10px; }
.section-title em { font-style: normal; color: var(--brand-500); }

.section-sub { font-size: 15px; color: var(--text-secondary); line-height: 1.7; max-width: 580px; margin-bottom: 40px; }

/* ── HEADER ── */
.header { position: sticky; top: 0; z-index: 1000; background: var(--brand-900); border-bottom: 1px solid rgba(255,255,255,0.06); backdrop-filter: blur(10px); }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo img { height: 42px; width: auto; }
.nav { display: flex; gap: 28px; font-family: 'Rubik', sans-serif; }
.nav a { color: rgba(255,255,255,0.80); font-size: 15px; font-weight: 600; transition: color 0.2s; }
.nav a:hover, .nav a.nav-active { color: var(--brand-100); }
.header-actions { display: flex; gap: 12px; }

/* ── BOTONES ── */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 14px; font-family: 'Inter', sans-serif; font-weight: 700; font-size: 15px; transition: all 0.2s; cursor: pointer; border: none; }
.btn-primary { background: var(--brand-500); color: var(--white); }
.btn-primary:hover { background: var(--brand-700); }
.btn-light { background: var(--white); color: var(--brand-900); }
.btn-light:hover { background: var(--brand-50); color: var(--brand-700); }
.btn-contactar { background: var(--brand-500); border: 1px solid rgba(255,255,255,0.20); color: var(--white); }
.btn-contactar:hover { background: var(--brand-700); }
.btn-renovar { background: transparent; color: var(--brand-100); border: 1px solid rgba(159,225,203,0.35); }
.btn-renovar:hover { background: rgba(29,158,117,0.15); border-color: var(--brand-100); color: var(--white); }

/* ── NAV HAMBURGER ── */
.nav-toggle { display: none; align-items: center; justify-content: center; width: 40px; height: 40px; background: transparent; border: 1px solid rgba(255,255,255,0.20); border-radius: var(--radius-sm); color: var(--white); cursor: pointer; z-index: 1100; flex-shrink: 0; }
.nav-toggle .icon-close { display: none; }
.nav-toggle.active .icon-menu { display: none; }
.nav-toggle.active .icon-close { display: block; }
.nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.50); z-index: 1050; opacity: 0; transition: opacity 0.3s; }
.nav-overlay.active { opacity: 1; }
.nav-drawer-logo { display: none; }
.nav-mobile-actions { display: none; }

.utm-banner {
  background: var(--accent-500);
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.utm-banner svg {
  width: 13px;
  height: 13px;
  stroke: rgba(255,255,255,0.65);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  flex-shrink: 0;
}
.utm-banner-text {
  font-size: 12px;
  color: rgba(255,255,255,0.80);
  font-weight: 500;
}
.utm-badge {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.28);
  color: var(--white);
  font-family: 'Sora', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: 5px;
  padding: 2px 10px;
}
 
 /* ══════════════════════════════════════════════
   NAV
══════════════════════════════════════════════ */
 
.cita-nav {
  background: var(--brand-900);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
 
.cita-nav-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
 
.cita-logo {
  font-family: 'Sora', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.4px;
}
.cita-logo span { color: var(--brand-500); }
 
.cita-nav-contact {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}
.cita-nav-contact a {
  color: rgba(255,255,255,0.80);
  font-weight: 500;
  transition: color 0.15s;
}
.cita-nav-contact a:hover { color: var(--brand-100); }
.cita-nav-contact svg {
  width: 14px;
  height: 14px;
  stroke: var(--brand-500);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.cita-nav-sep { color: rgba(255,255,255,0.20); }
/* ══════════════════════════════════════════════
   HERO
══════════════════════════════════════════════ */
 
.cita-hero {
  background: var(--brand-900);
  padding: 64px 0 72px;
  position: relative;
  overflow: hidden;
}
 
/* Textura de puntos */
.cita-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}
 
/* Blob decorativo */
.cita-hero-overlay {
  position: absolute;
  top: -120px;
  right: -80px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(29,158,117,0.08);
  filter: blur(60px);
  pointer-events: none;
}
 
/* Grid principal */
.cita-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
 
 
/* ── Columna izquierda ── */
 
.cita-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(29,158,117,0.15);
  border: 1px solid rgba(159,225,203,0.28);
  color: var(--brand-100);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  border-radius: 99px;
  padding: 5px 14px;
  margin-bottom: 22px;
}
 
.cita-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-300);
  position: relative;
  flex-shrink: 0;
  animation: cita-pulse 2.2s ease infinite;
}
.cita-badge-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid var(--brand-300);
  animation: cita-ring 2.2s ease infinite;
}
@keyframes cita-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.6; }
}
@keyframes cita-ring {
  0%   { opacity: 1; transform: scale(1); }
  70%  { opacity: 0; transform: scale(2.2); }
  100% { opacity: 0; }
}
 
.cita-h1 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.04em;
  color: var(--white);
  margin-bottom: 18px;
}
.cita-h1 em {
  font-style: normal;
  color: var(--brand-100);
}
 
.cita-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.60);
  line-height: 1.75;
  max-width: 420px;
  margin-bottom: 32px;
}
 
/* Trust list */
.cita-trust {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}
.cita-trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.72);
}
.cita-trust-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(29,158,117,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cita-trust-icon svg {
  width: 15px;
  height: 15px;
  stroke: var(--brand-100);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
 
/* Agentes */
.cita-agents {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.cita-avatars {
  display: flex;
  flex-shrink: 0;
}
.cita-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--brand-900);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sora', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--white);
  margin-left: -10px;
}
.cita-avatar:first-child { margin-left: 0; }
 
.cita-agents-text {
  font-size: 13px;
  color: rgba(255,255,255,0.50);
  line-height: 1.5;
}
.cita-agents-text strong {
  color: var(--white);
  font-weight: 600;
}
 
 
/* ── Columna derecha: formulario ── */
 
.cita-form-card {
  background: var(--white);
  border-radius: 22px;
  padding: 32px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.28);
}
 
.cita-form-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-soft);
}
.cita-form-title {
  font-family: 'Sora', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.cita-form-sub {
  font-size: 12px;
  color: var(--text-muted);
}
 
/* Grid 2 col */
.cita-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
 
/* Field */
.cita-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
}
.cita-field:last-of-type { margin-bottom: 0; }
 
.cita-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 5px;
}
.cita-optional {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
}
 
.cita-input {
  height: 42px;
  border: 1px solid var(--border-medium);
  border-radius: 11px;
  padding: 0 14px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-page);
  width: 100%;
  transition: border-color 0.2s, background 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.cita-input::placeholder { color: var(--text-muted); }
.cita-input:focus {
  outline: none;
  border-color: var(--brand-500);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(29,158,117,0.12);
}
 
/* Input con icono */
.cita-input-icon-wrap {
  position: relative;
}
.cita-input-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  stroke: var(--text-muted);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.cita-input--icon {
  padding-left: 36px;
}
 
/* Preferencia de contacto */
.cita-pref-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 2px;
}
.cita-pref-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--border-medium);
  border-radius: 10px;
  padding: 9px 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-page);
  cursor: pointer;
  transition: all 0.2s;
}
.cita-pref-btn svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.cita-pref-btn:hover {
  border-color: var(--brand-300);
  color: var(--brand-700);
  background: var(--brand-50);
}
.cita-pref-btn--active {
  background: var(--brand-50);
  border-color: var(--brand-500);
  color: var(--brand-700);
  font-weight: 600;
}
 
/* Checkbox */
.cita-check-wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--brand-50);
  border: 1px solid rgba(29,158,117,0.22);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 16px 0 18px;
  cursor: pointer;
}
.cita-check-input {
  /* oculto visualmente — accesible */
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.cita-check-box {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--brand-300);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  transition: all 0.15s;
}
.cita-check-box svg {
  width: 10px;
  height: 10px;
  stroke: transparent;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.15s;
}
.cita-check-box--checked {
  background: var(--brand-500);
  border-color: var(--brand-500);
}
.cita-check-box--checked svg {
  stroke: var(--white);
}
/* Focus visible en el input real */
.cita-check-input:focus-visible + .cita-check-box {
  box-shadow: 0 0 0 3px rgba(29,158,117,0.25);
}
 
.cita-check-text {
  font-size: 12px;
  color: var(--brand-700);
  line-height: 1.5;
  font-weight: 500;
}
 
/* CTA */
.cita-cta-btn {
  width: 100%;
  height: 48px;
  background: var(--brand-500);
  color: var(--white);
  border: none;
  border-radius: 14px;
  font-family: 'Sora', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: background 0.2s, transform 0.15s;
}
.cita-cta-btn svg {
  width: 17px;
  height: 17px;
  stroke: var(--white);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cita-cta-btn:hover {
  background: var(--brand-700);
}
.cita-cta-btn:active {
  transform: scale(0.98);
}
 
/* Legal */
.cita-legal {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
  line-height: 1.6;
}
.cita-legal a {
  color: var(--brand-500);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cita-legal a:hover { color: var(--brand-700); }

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .header-actions { display: none; }
  .nav { position: fixed; top: 0; left: 0; height: 100vh; width: 280px; flex-direction: column; align-items: flex-start; gap: 0; background: var(--brand-900); padding: 28px 28px 40px; z-index: 1060; transform: translateX(-100%); transition: transform 0.35s cubic-bezier(0.4,0,0.2,1); overflow-y: auto; border-right: 1px solid rgba(255,255,255,0.08); }
  .nav.active { transform: translateX(0); }
  .nav-overlay { display: block; }
  .nav-drawer-logo { display: block; padding-bottom: 20px; margin-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.08); width: 100%; }
  .nav-drawer-logo img { height: 36px; width: auto; }
  .nav a { width: 100%; padding: 14px 0; font-size: 16px; border-bottom: 1px solid rgba(255,255,255,0.07); }
  .nav-mobile-actions { display: flex; flex-direction: column; gap: 12px; width: 100%; margin-top: 28px; }
  .nav-mobile-actions .btn { width: 100%; justify-content: center; }

}

@media (max-width: 860px) {
  .cita-hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .cita-desc { max-width: 100%; }
  .cita-form-card { max-width: 540px; margin: 0 auto; }
}
 
@media (max-width: 560px) {
  .cita-hero { padding: 48px 0 56px; }
  .cita-h1  { font-size: 28px; }
  .cita-form-card { padding: 24px 20px; }
  .cita-row { grid-template-columns: 1fr; gap: 0; }
  .cita-pref-group { grid-template-columns: 1fr; }
  .utm-banner { gap: 6px; }
  .utm-banner-text { font-size: 11px; }
  .cita-nav-contact { display: none; }
}