/* ==========================================================
   DP Lovers · Dos Pinos — styles.css
   Paleta: verde #009A44 · azul #1FA8E0 · crema #F6F3EC
   ========================================================== */

html, body { margin: 0; padding: 0; background: #F6F3EC; font-family: 'Nunito Sans', sans-serif; color: #0B3D22; }
* { box-sizing: border-box; }
a { color: #009A44; }
a:hover { color: #00AC4E; }
input, select { font-family: 'Nunito Sans', sans-serif; }
input:focus, select:focus { outline: none; border-color: #009A44 !important; }

@keyframes dppop { 0% { transform: scale(0.6); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }

/* ---------- Header ---------- */
.dp-header { position: sticky; top: 0; z-index: 50; background: #FFFFFF; border-bottom: 3px solid #1FA8E0; padding: 0 24px; }
.dp-header-in { max-width: 1160px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; flex-wrap: wrap; padding: 8px 0; }
.dp-logo { display: flex; align-items: center; gap: 10px; }
.dp-logo-text { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 20px; color: #009A44; line-height: 1; }
.dp-logo-text span { display: block; font-size: 11px; font-weight: 700; color: #5A6B85; letter-spacing: 1px; }
.dp-toggle { display: flex; align-items: center; gap: 8px; background: #F6F3EC; border-radius: 999px; padding: 4px; }
.dp-toggle button { border: none; cursor: pointer; font-family: 'Nunito Sans', sans-serif; font-weight: 800; font-size: 12px; padding: 8px 16px; border-radius: 999px; background: transparent; color: #5A6B85; transition: all 0.15s; }
.dp-toggle button:hover { opacity: 0.85; }
.dp-toggle button.on-green { background: #009A44; color: #fff; }
.dp-toggle button.on-blue { background: #1FA8E0; color: #fff; }

/* ---------- Botones ---------- */
.btn-primary { border: none; cursor: pointer; font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 16px; color: #FFFFFF; background: #009A44; border-radius: 999px; padding: 14px 36px; box-shadow: 0 5px 0 #04572A; transition: all 0.15s; }
.btn-primary:hover { background: #00AC4E; transform: translateY(-3px); }
.btn-primary:disabled { cursor: not-allowed; color: #8A93A6; background: #E7E2D6; box-shadow: none; transform: none; }
.btn-blue { border: none; cursor: pointer; font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 18px; color: #FFFFFF; background: #1FA8E0; border-radius: 999px; padding: 16px 40px; box-shadow: 0 6px 0 #147BB0; transition: all 0.15s; }
.btn-blue:hover { background: #3FB8E8; transform: translateY(-3px); }
.btn-ghost { border: 2px solid #E7E2D6; cursor: pointer; font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 15px; color: #5A6B85; background: #FFFFFF; border-radius: 999px; padding: 13px 28px; transition: all 0.15s; }
.btn-ghost:hover { border-color: #009A44; color: #009A44; }

/* ---------- Chips ---------- */
.chip { border-radius: 999px; padding: 10px 18px; font-family: 'Nunito Sans', sans-serif; font-weight: 800; font-size: 13px; cursor: pointer; transition: all 0.15s; }
.chip:hover { transform: translateY(-2px); }
.chip.green { background: #E8F6EE; color: #04572A; border: 2px solid #E8F6EE; }
.chip.green.active { background: #009A44; color: #fff; border-color: #009A44; }
.chip.blue { background: #E4F4FC; color: #147BB0; border: 2px solid #E4F4FC; }
.chip.blue.active { background: #1FA8E0; color: #fff; border-color: #1FA8E0; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(140deg, #0B5A2E, #063D1F); color: #fff; padding: 64px 24px; }
.hero-in { max-width: 1160px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 40px; }
.hero-copy { flex: 1 1 420px; min-width: 280px; }
.hero-kicker { font-size: 13px; font-weight: 800; letter-spacing: 2px; color: #1FA8E0; margin-bottom: 14px; }
.hero-title { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: clamp(32px, 5vw, 54px); line-height: 1.08; margin: 0 0 16px; text-wrap: pretty; }
.hero-sub { font-size: 17px; line-height: 1.5; color: #C6EBD5; margin: 0 0 28px; max-width: 520px; text-wrap: pretty; }
.hero-card-wrap { flex: 0 1 340px; min-width: 280px; }
.hero-card { background: #fff; color: #0B3D22; border-radius: 24px; padding: 28px; box-shadow: 0 8px 0 rgba(0,0,0,0.25); }
.hero-card-top { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.hero-avatar { width: 54px; height: 54px; border-radius: 999px; background: #E4F4FC; display: flex; align-items: center; justify-content: center; font-size: 28px; }
.hero-card-name { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 18px; }
.hero-card-level { font-size: 12px; font-weight: 800; color: #C9A227; }
.hero-card-label { font-size: 12px; font-weight: 800; letter-spacing: 1px; color: #5A6B85; margin-bottom: 6px; }
.hero-card-pct { font-size: 13px; font-weight: 800; color: #009A44; margin-bottom: 18px; }
.hero-perks { display: flex; gap: 10px; }
.hero-perk { flex: 1; text-align: center; border-radius: 14px; padding: 10px 4px; font-size: 22px; }
.hero-perk div { font-size: 10px; font-weight: 800; color: #5A6B85; margin-top: 2px; }
.hero-perk.g { background: #E8F6EE; } .hero-perk.b { background: #E4F4FC; } .hero-perk.y { background: #FDF6E0; }

/* ---------- Beneficios ---------- */
.beneficios { max-width: 1160px; margin: 0 auto; padding: 56px 24px 8px; }
.beneficios-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.benefit { background: #FFFFFF; border-radius: 20px; padding: 26px; transition: all 0.15s; }
.benefit:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,0.08); }
.benefit .emoji { font-size: 36px; }
.benefit h3 { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 19px; margin: 10px 0 6px; }
.benefit p { font-size: 14px; color: #5A6B85; margin: 0; line-height: 1.5; }

/* ---------- Formulario ---------- */
.form-section { max-width: 760px; margin: 0 auto; padding: 48px 24px 96px; }
.aviso-prefill { display: flex; align-items: center; gap: 12px; background: #E4F4FC; border: 2px solid #1FA8E0; border-radius: 14px; padding: 14px 18px; margin-bottom: 24px; font-size: 14px; line-height: 1.45; }
.aviso-prefill .emoji { font-size: 24px; }
.progreso-box { background: #fff; border-radius: 18px; padding: 20px 24px; margin-bottom: 24px; box-shadow: 0 4px 0 #E7E2D6; }
.progreso-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.progreso-label { font-size: 12px; font-weight: 800; letter-spacing: 2px; color: #1FA8E0; }
.progreso-paso { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 15px; }
.progreso-hint { font-size: 13px; color: #5A6B85; }
.bar { height: 14px; background: #E7E2D6; border-radius: 999px; overflow: hidden; }
.bar > div { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #009A44, #1FA8E0); transition: width 0.4s; }
.card { background: #FFFFFF; border-radius: 20px; padding: 32px; box-shadow: 0 4px 0 #E7E2D6; }
.h2 { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 26px; margin: 0 0 4px; }
.sub { font-size: 14px; color: #5A6B85; margin: 0 0 24px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-weight: 800; font-size: 14px; }
.field input, .field select { border: 2px solid #E7E2D6; border-radius: 13px; padding: 12px 14px; font-size: 15px; background: #FFFFFF; color: #0B3D22; width: 100%; min-height: 46px; }
.req { color: #C0392B; }
.hint-box { display: flex; align-items: center; gap: 8px; background: #E8F6EE; border-radius: 12px; padding: 10px 14px; margin-top: 16px; font-size: 13px; color: #04572A; }
.consent-box { background: #F6F3EC; border-radius: 16px; padding: 20px; margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.consent-box label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 13px; line-height: 1.45; }
.consent-box input { width: 18px; height: 18px; accent-color: #009A44; margin-top: 1px; flex-shrink: 0; }
.form-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.form-nav.solo { justify-content: flex-end; }
.group-label { font-weight: 800; font-size: 14px; margin-bottom: 10px; }

/* ---------- Éxito ---------- */
.exito-section { max-width: 720px; margin: 0 auto; padding: 64px 24px 96px; text-align: center; }
.exito-card { background: #fff; border-radius: 24px; padding: 48px 32px; box-shadow: 0 6px 0 #E7E2D6; animation: dppop 0.4s ease-out; }
.exito-emoji { font-size: 64px; line-height: 1; }
.exito-title { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 34px; color: #009A44; margin: 16px 0 8px; }
.exito-sub { font-size: 15px; color: #5A6B85; margin: 0 0 28px; }
.nivel-badge { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; background: #E8F6EE; border: 2px solid #009A44; border-radius: 18px; padding: 20px 36px; }
.nivel-label { font-size: 12px; font-weight: 800; letter-spacing: 2px; color: #1FA8E0; }
.nivel-nombre { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 24px; }
.nivel-desc { font-size: 13px; color: #5A6B85; }
.exito-progreso { margin-top: 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.exito-progreso .bar { width: 100%; max-width: 360px; }
.exito-nota { font-size: 12px; font-weight: 700; color: #8A93A6; }

/* ---------- Footer ---------- */
.dp-footer { background: #04572A; color: #C6EBD5; padding: 40px 24px; }
.dp-footer-in { max-width: 1160px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.dp-footer-brand { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 17px; color: #FFFFFF; }
.dp-footer-notice { background: rgba(31,168,224,0.18); border: 1px solid rgba(31,168,224,0.45); border-radius: 14px; padding: 12px 18px; font-size: 13px; max-width: 480px; line-height: 1.45; }

/* ==========================================================
   MOBILE (≤640px)
   ========================================================== */
@media (max-width: 640px) {
  .dp-header { padding: 0 16px; }
  .dp-header-in { justify-content: center; }
  .dp-toggle { width: 100%; }
  .dp-toggle button { flex: 1; padding: 10px 8px; }

  .hero { padding: 40px 20px 48px; }
  .hero-in { gap: 28px; }
  .hero-sub { font-size: 15px; }
  .hero .btn-blue { width: 100%; font-size: 17px; }
  .hero-card { padding: 22px; }

  .beneficios { padding: 36px 20px 0; }
  .benefit { padding: 22px; }

  .form-section { padding: 32px 16px 72px; }
  .card { padding: 22px 18px; border-radius: 18px; }
  .h2 { font-size: 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .progreso-box { padding: 16px 18px; }

  .chip { padding: 12px 16px; font-size: 13px; }

  .form-nav { flex-direction: column-reverse; }
  .form-nav button { width: 100%; min-height: 48px; }
  .form-nav.solo { flex-direction: column; }

  .exito-section { padding: 40px 16px 72px; }
  .exito-card { padding: 36px 20px; }
  .exito-title { font-size: 28px; }
  .nivel-badge { padding: 18px 24px; width: 100%; }
  .exito-card .btn-primary { width: 100%; }

  .dp-footer-in { justify-content: center; text-align: center; }
  .dp-footer-notice { max-width: 100%; }
}
