/* ── Reset & Base ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --primary:   #e1762e;
  --primary-h: #c4621f;
  --success:   #16a34a;
  --warning:   #d97706;
  --danger:    #dc2626;
  --text:      #1e293b;
  --muted:     #64748b;
  --border:    #e2e8f0;
  --bg:        #f8fafc;
  --card-bg:   #ffffff;
  --radius:    8px;
  --shadow:    0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
}
body { font-family: 'Inter', sans-serif; color: var(--text); background: var(--bg); line-height: 1.5; }
/* Avatar DiceBear: la imagen llena el círculo del contenedor .avatar */
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Container ───────────────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn { display: inline-block; padding: 10px 20px; border-radius: var(--radius); font-weight: 500; font-size: 14px; cursor: pointer; border: 2px solid transparent; transition: all .15s; text-decoration: none; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-h); border-color: var(--primary-h); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; text-align: center; }

/* ── Alerts ──────────────────────────────────────────────────────── */
.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: 14px; }
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert ul { margin: 6px 0 0 16px; }

/* ── Toasts flotantes (mensajes flash) ───────────────────────────── */
.toast-stack { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 2000;
  display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 14px; min-width: 260px; max-width: 92vw;
  padding: 13px 16px; border-radius: 12px; color: #fff; font-size: 14px; font-weight: 500;
  box-shadow: 0 12px 32px rgba(0,0,0,.24);
  opacity: 0; transform: translateY(18px); transition: opacity .3s ease, transform .3s ease; }
.toast--in  { opacity: 1; transform: translateY(0); }      /* entrada: fade + slide desde abajo */
.toast--out { opacity: 0; transform: translateY(18px); }   /* salida: fade + slide hacia abajo */
.toast--success { background: #16a34a; }
.toast--error   { background: #dc2626; }
.toast span { flex: 1; }
.toast-x { background: none; border: 0; color: rgba(255,255,255,.85); font-size: 20px; line-height: 1; cursor: pointer; padding: 0 2px; }
.toast-x:hover { color: #fff; }

/* Botón en envío AJAX en curso */
.is-loading { opacity: .6; cursor: progress; pointer-events: none; }

/* ── Header ──────────────────────────────────────────────────────── */
.site-header { background: #fff; border-bottom: 1px solid var(--border); padding: 0; position: sticky; top: 0; z-index: 100; }
.site-header .container { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 60px; }
.logo { font-size: 22px; font-weight: 700; color: var(--primary); justify-self: start; }
.site-header nav { display: flex; align-items: center; gap: 16px; }
.site-header .nav-verticals { justify-self: center; }
.site-header .nav-auth { justify-self: end; }
.site-header nav a { color: var(--text); font-size: 14px; font-weight: 500; }

/* ── Footer ──────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); padding: 24px 0; margin-top: 60px; text-align: center; color: var(--muted); font-size: 13px; }

/* ── Hero ────────────────────────────────────────────────────────── */
.hero { background: linear-gradient(135deg, #9e4d1a 0%, #e1762e 100%); color: #fff; padding: 80px 0; text-align: center; }
.hero h1 { font-size: 42px; font-weight: 700; margin-bottom: 16px; }
.hero p  { font-size: 18px; opacity: .85; margin-bottom: 32px; max-width: 520px; margin-left: auto; margin-right: auto; }
.hero .btn-primary { background: #fff; color: var(--primary); border-color: #fff; font-size: 16px; padding: 14px 32px; }
.hero .btn-primary:hover { background: #fde8d5; border-color: #fde8d5; }

/* ── Features ────────────────────────────────────────────────────── */
.features { padding: 64px 0; }
.features h2 { text-align: center; font-size: 28px; margin-bottom: 40px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.feature-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.feature-card h3 { font-size: 16px; margin-bottom: 8px; }
.feature-card p  { color: var(--muted); font-size: 14px; }

/* ── Pricing ─────────────────────────────────────────────────────── */
.pricing { background: var(--bg); padding: 64px 0; }
.pricing h2 { text-align: center; font-size: 28px; margin-bottom: 40px; }
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.plan-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 24px; text-align: center; box-shadow: var(--shadow); }
.plan-card.plan-featured { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary); }
.plan-card h3 { font-size: 20px; margin-bottom: 16px; }
.price-amount { font-size: 36px; font-weight: 700; }
.price-period { color: var(--muted); font-size: 14px; }
.plan-features { list-style: none; margin: 20px 0 24px; text-align: left; }
.plan-features li { padding: 6px 0; font-size: 14px; border-bottom: 1px solid var(--border); }
.plan-features li::before { content: '✓ '; color: var(--success); font-weight: 700; }

/* ── Auth ────────────────────────────────────────────────────────── */
.auth-container { display: flex; justify-content: center; align-items: flex-start; padding: 48px 20px; }
.auth-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; width: 100%; max-width: 420px; box-shadow: var(--shadow); }
.auth-card h2 { font-size: 22px; margin-bottom: 24px; }
.auth-link { text-align: center; margin-top: 20px; font-size: 14px; color: var(--muted); }
.form-label-link { float: right; font-size: 13px; }
.text-center { text-align: center; }
.success-icon { font-size: 48px; color: var(--success); margin-bottom: 16px; }

/* ── Forms ───────────────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; color: var(--text); }
.form-control { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; font-family: inherit; transition: border-color .15s; }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(225,118,46,.15); }

/* ── Resend verification block ───────────────────────────────────── */
.resend-box { border-radius: var(--radius); padding: 16px; margin-top: 4px; }
.resend-box--pending_account { background: #fef3ea; border: 1px solid #fcd4b0; }
.resend-box--post_register   { background: #f8fafc; border: 1px solid var(--border); }
.resend-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.resend-hint  { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.resend-form  { display: flex; gap: 8px; flex-wrap: wrap; }
.resend-input { flex: 1; min-width: 180px; }
.resend-input[readonly] { background: #f1f5f9; color: var(--muted); cursor: default; }
.btn-resend   { background: transparent; border: 1.5px solid var(--primary); color: var(--primary);
                padding: 10px 14px; border-radius: var(--radius); font-size: 13px; font-weight: 600;
                cursor: pointer; white-space: nowrap; transition: all .15s; }
.btn-resend:hover { background: var(--primary); color: #fff; }

/* ── Verticales (landing general) ───────────────────────────────── */
.verticals { padding: 64px 0; background: var(--bg); }
.verticals h2 { text-align: center; font-size: 28px; margin-bottom: 8px; }
.section-sub { text-align: center; color: var(--muted); margin-bottom: 40px; }
.verticals-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.vertical-card {
  display: flex; flex-direction: column; align-items: flex-start;
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 26px 22px; text-decoration: none; color: var(--text);
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  border-top: 4px solid var(--st-color, var(--primary));
  transition: transform .15s, box-shadow .15s;
}
.vertical-card:hover { box-shadow: 0 12px 28px rgba(0,0,0,.12); transform: translateY(-4px); text-decoration: none; color: var(--text); }
.vertical-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--st-color, var(--primary)); color: #fff;
  margin-bottom: 16px;
}
.vertical-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.vertical-card p { color: var(--muted); font-size: 14px; margin-bottom: 16px; flex: 1; }
.vertical-link { color: var(--st-color, var(--primary)); font-weight: 700; font-size: 14px; margin-top: auto; }

/* ── Verticales: secciones alternadas (zigzag) ─────────────────── */
.vfeatures { display: flex; flex-direction: column; gap: 64px; margin-top: 48px; }
.vfeature {
  display: flex; align-items: center; gap: 52px;
  width: 88%; max-width: 940px;
}
/* impar: hugea a la izquierda · par: ilustración a la derecha y hugea a la derecha */
.vfeature:nth-child(odd)  { margin-right: auto; margin-left: 0; }
.vfeature:nth-child(even) { margin-left: auto; margin-right: 0; flex-direction: row-reverse; }

.vfeature-art {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  background: var(--st-color, var(--primary));
  background-image: linear-gradient(135deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,0) 70%);
  border-radius: 26px; padding: 16px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .18);
}
.vfeature-art .vhero-art { width: clamp(190px, 24vw, 270px); filter: drop-shadow(0 8px 20px rgba(0,0,0,.18)); }

.vfeature-text { flex: 1; min-width: 0; }
.vfeature-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: #fff;
  background: var(--st-color, var(--primary)); padding: 5px 13px; border-radius: 20px;
}
.vfeature-text h3 { font-size: 25px; font-weight: 700; line-height: 1.25; margin: 14px 0 8px; }
.vfeature-text > p { color: var(--muted); font-size: 15.5px; margin-bottom: 16px; }
.vfeature-list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 9px; }
.vfeature-list li { display: flex; align-items: center; gap: 9px; font-size: 15px; color: var(--text); }
.vfeature-list li .ic { color: var(--st-color, var(--primary)); flex-shrink: 0; }
.vfeature-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.vfeature-cta .btn-primary { background: var(--st-color, var(--primary)); border-color: var(--st-color, var(--primary)); }
.vfeature-more { color: var(--st-color, var(--primary)); font-weight: 700; font-size: 14px; }

@media (max-width: 820px) {
  .vfeatures { gap: 44px; }
  .vfeature, .vfeature:nth-child(even) {
    flex-direction: column; text-align: center;
    width: 100%; margin: 0 auto; gap: 26px;
  }
  .vfeature-tag { margin: 0 auto; }
  .vfeature-list { justify-content: center; }
  .vfeature-list li { justify-content: center; }
  .vfeature-cta { justify-content: center; }
}

/* ── Landing por vertical ───────────────────────────────────────── */
.vhero { background: var(--st-color, var(--primary)); background-image: linear-gradient(135deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,0) 100%); color: #fff; padding: 72px 0; overflow: hidden; }
.vhero-inner { max-width: 1100px; display: flex; align-items: center; gap: 48px; }
.vhero-text { flex: 1 1 0; max-width: 640px; }
.vhero-art { flex: 0 0 auto; width: clamp(240px, 34vw, 380px); height: auto; filter: drop-shadow(0 12px 30px rgba(0,0,0,.18)); animation: vart-float 6s ease-in-out infinite; overflow: visible; }
.vart-ring  { transform-box: view-box; transform-origin: 160px 140px; animation: vart-spin 28s linear infinite; }
.vart-orb   { transform-box: view-box; animation: vart-drift 7s ease-in-out infinite; }
.vart-orb-b { animation-duration: 9s; animation-delay: -2.5s; }
.vart-spark { transform-box: fill-box; transform-origin: center; animation: vart-twinkle 3.4s ease-in-out infinite; }
@keyframes vart-float   { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes vart-spin    { to { transform: rotate(360deg); } }
@keyframes vart-drift   { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes vart-twinkle { 0%, 100% { opacity: .4; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) {
  .vhero-art, .vart-ring, .vart-orb, .vart-spark { animation: none; }
}
.vhero-tag { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.18); padding: 5px 12px; border-radius: 20px; font-size: 13px; font-weight: 600; margin-bottom: 18px; }
.vhero h1 { font-size: clamp(26px, 4vw, 40px); font-weight: 700; margin-bottom: 14px; line-height: 1.2; }
.vhero p { font-size: 17px; opacity: .9; margin-bottom: 28px; }
.vhero .btn-primary { background: #fff; color: var(--st-color); border-color: #fff; }
.vhero .btn-primary:hover { background: #f1f5f9; border-color: #f1f5f9; }
@media (max-width: 860px) {
  .vhero-inner { flex-direction: column-reverse; text-align: center; gap: 28px; }
  .vhero-text { max-width: 100%; }
  .vhero-tag { justify-content: center; }
  .vhero-art { width: clamp(200px, 64vw, 300px); }
}

.vsection { padding: 56px 0; }
.vsection h2 { text-align: center; font-size: 26px; margin-bottom: 10px; }
.vsteps { padding: 56px 0; background: var(--bg); }
.vsteps h2 { text-align: center; font-size: 26px; margin-bottom: 32px; }

.chips-grid { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 820px; margin: 0 auto; }
.rubro-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--card-bg); border: 1px solid var(--border); border-radius: 24px; padding: 9px 16px; font-size: 14px; font-weight: 500; transition: border-color .15s, transform .15s; }
.rubro-chip:hover { border-color: var(--st-color, var(--primary)); transform: translateY(-2px); }
.rubro-chip .cat-ic { color: var(--st-color, var(--primary)); flex: 0 0 auto; }

.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.step-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; text-align: center; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; margin-bottom: 12px; }
.step-card h4 { font-size: 16px; margin-bottom: 6px; }
.step-card p { color: var(--muted); font-size: 14px; }
.vcta { text-align: center; margin-top: 36px; }

/* ── Nav verticales (header) ───────────────────────────────────── */
.nav-vertical { font-size: 14px; }
@media (max-width: 720px) { .nav-vertical { display: none; } }

/* ── Contexto de vertical en el registro ───────────────────────── */
.register-vertical { display:flex; align-items:center; gap:12px; padding:12px 14px; border-radius:var(--radius); background:#f8fafc; border:1px solid var(--border); border-left:4px solid var(--st-color, var(--primary)); margin-bottom:20px; }
.register-vertical-icon { display:inline-flex; align-items:center; justify-content:center; width:42px; height:42px; border-radius:10px; background:var(--st-color, var(--primary)); color:#fff; flex-shrink:0; }
.register-vertical-label { font-size:14px; font-weight:700; color:var(--text); }
.register-vertical-sub { font-size:12px; color:var(--muted); }
