/* ==========================================================================
   MINHALOJA - sitio institucional: landing, ingreso, registro y páginas legales
   ========================================================================== */
:root {
  --s-primary: #FFE600;
  --s-dark: #1A2238;
  --s-ink: #1A2238;
  --s-muted: #5A657D;
  --s-bg: #F5F6F8;
  --s-border: #E2E8F0;
  --s-green: #00A650;
  --s-wa: #25D366;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: var(--s-ink); background: var(--s-bg); -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; overflow-x: hidden; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

.s-wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Cabecera */
.s-nav { background: var(--s-dark); color: #FFFFFF; position: sticky; top: 0; z-index: 50; }
.s-nav .s-wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.s-logo { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.25rem; letter-spacing: -0.5px; }
.s-logo i { width: 36px; height: 36px; border-radius: 50%; background: var(--s-primary); color: var(--s-dark); display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 1.1rem; }
.s-nav-links { display: flex; align-items: center; gap: 10px; }
.s-link { padding: 8px 12px; font-weight: 600; font-size: 0.92rem; opacity: 0.9; }
.s-link:hover { opacity: 1; }

.s-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: 9999px; font-weight: 800; font-size: 1rem; background: var(--s-primary); color: var(--s-dark); transition: transform 0.15s, background 0.2s; text-align: center; }
.s-btn:hover { background: #F5DC00; transform: translateY(-2px); }
.s-btn.dark { background: var(--s-dark); color: #FFFFFF; }
.s-btn.dark:hover { background: #25304D; }
.s-btn.ghost { background: transparent; color: #FFFFFF; border: 2px solid rgba(255, 255, 255, 0.5); }
.s-btn.ghost:hover { background: rgba(255, 255, 255, 0.1); }
.s-btn.wa { background: var(--s-wa); color: #0B3D1E; }
.s-btn.sm { padding: 9px 18px; font-size: 0.9rem; }
.s-btn.block { width: 100%; }
.s-btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Hero */
.s-hero { background: var(--s-dark); color: #FFFFFF; padding: 64px 0 76px; background-image: radial-gradient(circle at 85% 20%, rgba(255, 230, 0, 0.16), transparent 45%); }
.s-hero .s-wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
.s-hero h1 { font-size: 3rem; line-height: 1.08; font-weight: 900; letter-spacing: -1.2px; margin-bottom: 18px; }
.s-hero h1 em { font-style: normal; color: var(--s-primary); }
.s-hero p.lead { font-size: 1.15rem; color: #CBD5E1; max-width: 560px; margin-bottom: 26px; }
.s-hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.s-hero .fine { margin-top: 14px; font-size: 0.86rem; color: #94A3B8; }

/* Maqueta del teléfono */
.phone { background: #FFFFFF; color: var(--s-ink); border-radius: 28px; padding: 14px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45); max-width: 320px; margin: 0 auto; border: 6px solid #0F172A; }
.phone .bar { background: var(--s-primary); border-radius: 14px; padding: 10px 12px; font-weight: 800; display: flex; justify-content: space-between; align-items: center; }
.phone .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.phone .card { border: 1px solid var(--s-border); border-radius: 12px; padding: 8px; font-size: 0.72rem; font-weight: 700; }
.phone .card .img { aspect-ratio: 1; border-radius: 8px; margin-bottom: 6px; }
.phone .card b { color: var(--s-green); display: block; font-size: 0.8rem; }
.phone .btn-fake { margin-top: 10px; background: var(--s-dark); color: #FFFFFF; text-align: center; padding: 10px; border-radius: 99px; font-weight: 800; font-size: 0.8rem; }

/* Secciones */
.s-section { padding: 64px 0; }
.s-section.alt { background: #FFFFFF; }
.s-section h2 { font-size: 2rem; font-weight: 900; letter-spacing: -0.8px; text-align: center; margin-bottom: 8px; }
.s-section .sub { text-align: center; color: var(--s-muted); max-width: 640px; margin: 0 auto 36px; font-size: 1.05rem; }
.s-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.s-card { background: #FFFFFF; border: 1px solid var(--s-border); border-radius: 18px; padding: 24px; }
.s-section.alt .s-card { background: var(--s-bg); }
.s-card .ico { width: 48px; height: 48px; border-radius: 14px; background: var(--s-primary); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 14px; }
.s-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.s-card p { color: var(--s-muted); font-size: 0.95rem; }

.s-vs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.s-vs .col { border-radius: 18px; padding: 26px; }
.s-vs .before { background: #FEE2E2; color: #7F1D1D; }
.s-vs .after { background: #DCFCE7; color: #14532D; }
.s-vs h3 { font-size: 1.15rem; margin-bottom: 10px; }
.s-vs ul { list-style: none; display: grid; gap: 8px; }
.s-vs li::before { content: "• "; font-weight: 900; }

.s-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.s-step { text-align: center; padding: 0 8px; }
.s-step::before { counter-increment: step; content: counter(step); display: flex; width: 48px; height: 48px; margin: 0 auto 12px; border-radius: 50%; background: var(--s-dark); color: var(--s-primary); font-weight: 900; font-size: 1.3rem; align-items: center; justify-content: center; }
.s-step h3 { font-size: 1.05rem; margin-bottom: 4px; }
.s-step p { color: var(--s-muted); font-size: 0.92rem; }

.s-cta { background: var(--s-primary); text-align: center; padding: 60px 20px; }
.s-cta h2 { font-size: 2rem; font-weight: 900; margin-bottom: 8px; letter-spacing: -0.8px; }
.s-cta p { margin-bottom: 22px; font-size: 1.05rem; }

.s-footer { background: var(--s-dark); color: #94A3B8; padding: 32px 0; font-size: 0.9rem; }
.s-footer .s-wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.s-footer a { color: #CBD5E1; text-decoration: underline; margin-left: 14px; }
.s-footer a:first-child { margin-left: 0; }

/* Formularios de ingreso y registro */
.a-page { min-height: calc(100vh - 64px); display: flex; align-items: center; justify-content: center; padding: 28px 16px; }
.a-card { width: 100%; max-width: 480px; background: #FFFFFF; border: 1px solid var(--s-border); border-radius: 22px; padding: 30px 28px; box-shadow: 0 12px 40px rgba(26, 34, 56, 0.1); }
.a-card h1 { font-size: 1.6rem; font-weight: 900; letter-spacing: -0.6px; margin-bottom: 4px; }
.a-card .sub { color: var(--s-muted); margin-bottom: 20px; font-size: 0.95rem; }
.a-field { margin-bottom: 14px; }
.a-field label { display: block; font-weight: 700; font-size: 0.85rem; margin-bottom: 5px; }
.a-field input { width: 100%; border: 1.5px solid #CBD5E1; border-radius: 10px; padding: 12px 13px; font: inherit; font-size: 1rem; color: var(--s-ink); background: #FFFFFF; }
.a-field input:focus { outline: none; border-color: var(--s-dark); box-shadow: 0 0 0 3px rgba(26, 34, 56, 0.08); }
.a-field .hint { font-size: 0.8rem; color: var(--s-muted); margin-top: 4px; word-break: break-all; }
.a-field .slug-row { display: flex; align-items: center; border: 1.5px solid #CBD5E1; border-radius: 10px; overflow: hidden; background: #F8FAFC; }
.a-field .slug-row span { padding: 0 0 0 12px; color: var(--s-muted); font-size: 0.9rem; white-space: nowrap; }
.a-field .slug-row input { border: none; border-radius: 0; background: transparent; padding-left: 2px; box-shadow: none; }
.a-error { background: #FEE2E2; color: #991B1B; border-radius: 10px; padding: 10px 12px; font-size: 0.9rem; font-weight: 600; margin-bottom: 14px; }
.a-alt { text-align: center; margin-top: 16px; color: var(--s-muted); font-size: 0.92rem; }
.a-alt a { color: var(--s-dark); font-weight: 800; text-decoration: underline; }
.a-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.a-check { display: flex; gap: 8px; align-items: flex-start; font-size: 0.86rem; color: var(--s-muted); margin-bottom: 16px; }
.a-check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--s-dark); }
.a-check a { text-decoration: underline; font-weight: 700; color: var(--s-dark); }

/* Páginas de texto (legal, 404, tienda no disponible) */
.t-page { max-width: 760px; margin: 0 auto; padding: 40px 20px 70px; }
.t-page h1 { font-size: 2rem; font-weight: 900; letter-spacing: -0.8px; margin-bottom: 6px; }
.t-page h2 { font-size: 1.2rem; margin: 26px 0 6px; }
.t-page p, .t-page li { color: #334155; margin-bottom: 8px; }
.t-page ul { padding-left: 20px; }
.t-page .updated { color: var(--s-muted); font-size: 0.88rem; margin-bottom: 18px; }
.t-center { text-align: center; padding-top: 90px; }
.t-center .big { font-size: 4rem; margin-bottom: 8px; }
.t-center p { max-width: 460px; margin: 0 auto 20px; }

@media (max-width: 860px) {
  .s-hero { padding: 40px 0 52px; }
  .s-hero .s-wrap { grid-template-columns: 1fr; }
  .s-hero h1 { font-size: 2.2rem; }
  .s-grid, .s-vs, .s-steps { grid-template-columns: 1fr; }
  .s-section { padding: 44px 0; }
  .s-section h2, .s-cta h2 { font-size: 1.6rem; }
  .s-link.hide-m { display: none; }
  .a-two { grid-template-columns: 1fr; }
  .a-card { padding: 24px 20px; }
}
