/* ============================================================
   Suerte Loca — design system (mobile-first + desktop)
   Colors and type derived from the approved prototype.
   ============================================================ */

:root {
    /* Greens */
    --green-900: #0a2010;
    --green-700: #1B7C2E;
    --green-500: #2DAA45;
    /* Golds */
    --gold-300: #FFD966;
    --gold-600: #D4960A;
    /* Neutrals */
    --cream: #FBF7EC;
    --paper: #F8F9FA;
    --ink: #142016;
    --muted: #5a6b5f;
    --line: #e4e7e1;
    --white: #ffffff;

    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 6px 24px rgba(10, 32, 16, .10);
    --shadow-lg: 0 14px 40px rgba(10, 32, 16, .16);

    --font-head: 'Baloo 2', system-ui, sans-serif;
    --font-body: 'Nunito', system-ui, sans-serif;

    --container: 1120px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--cream);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: var(--font-head);
    color: var(--green-900);
    line-height: 1.15;
    margin: 0 0 .5em;
}

a { color: var(--green-700); }

img { max-width: 100%; height: auto; display: block; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding-inline: 18px;
}
.container--narrow { max-width: 760px; }

/* ---- Buttons -------------------------------------------------- */
.btn {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 700;
    text-decoration: none;
    border: 0;
    border-radius: 999px;
    padding: 12px 22px;
    cursor: pointer;
    transition: transform .08s ease, box-shadow .2s ease, background .2s ease;
    font-size: 15px;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
    background: linear-gradient(180deg, var(--green-500), var(--green-700));
    color: #fff;
    box-shadow: 0 6px 16px rgba(27, 124, 46, .35);
}
.btn--primary:hover { box-shadow: 0 8px 22px rgba(27, 124, 46, .45); }
.btn--ghost {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, .6);
}
.btn--lg { padding: 15px 30px; font-size: 17px; }
.btn--block { display: block; width: 100%; text-align: center; }

/* ---- Public header / footer ---------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 20;
    background: var(--green-900);
}
.site-header__inner {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 64px;
}
.brand { display: inline-flex; align-items: center; color: #fff; text-decoration: none; font-family: var(--font-head); }
.site-nav { display: none; gap: 22px; }
.site-nav a { color: #d8ecdb; text-decoration: none; font-weight: 700; font-size: 14px; }
.site-nav a:hover { color: var(--gold-300); }

.site-footer {
    background: var(--green-900);
    color: #9fd2ab;
    padding: 26px 0;
    text-align: center;
    font-size: 13px;
}

/* ---- Hero ----------------------------------------------------- */
.hero {
    background:
        radial-gradient(120% 90% at 100% 0%, rgba(45,170,69,.25), transparent 60%),
        linear-gradient(160deg, var(--green-900), #0d2c17);
    color: #fff;
    padding: 44px 0 52px;
}
.hero__inner { display: grid; gap: 26px; }
.hero h1 { color: #fff; font-size: clamp(30px, 8vw, 52px); font-weight: 800; }
.hero .hl { color: var(--gold-300); }
.hero__lead { color: #cfe6d5; font-size: 16px; max-width: 46ch; }
.badge {
    display: inline-block; background: rgba(255,217,102,.16); color: var(--gold-300);
    border: 1px solid rgba(255,217,102,.4); border-radius: 999px;
    padding: 6px 14px; font-weight: 700; font-size: 13px; margin-bottom: 14px;
}
.hero__art { display: flex; gap: 16px; align-items: center; }
.hero__art img { width: 96px; filter: drop-shadow(0 8px 18px rgba(0,0,0,.35)); }

/* ---- Sections ------------------------------------------------- */
.section { padding: 46px 0; }
.section--alt { background: var(--paper); }
.section__title {
    text-align: center; font-size: clamp(24px, 6vw, 34px);
    font-weight: 800; margin-bottom: 28px;
}

/* ---- Steps ---------------------------------------------------- */
.steps { display: grid; gap: 16px; }
.step {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 20px; box-shadow: var(--shadow);
}
.step__n {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--gold-300); color: var(--green-900);
    font-family: var(--font-head); font-weight: 800; font-size: 18px; margin-bottom: 10px;
}
.step h3 { font-size: 18px; }
.step p { margin: 0; color: var(--muted); }

/* ---- Packages ------------------------------------------------- */
.packages { display: grid; gap: 16px; grid-template-columns: 1fr; }
.pkg {
    position: relative; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); padding: 22px 18px; box-shadow: var(--shadow);
    text-align: center; transition: transform .12s ease, box-shadow .2s ease;
}
.pkg:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.pkg--vip { border-color: var(--gold-600); background: linear-gradient(180deg, #fffdf5, #fff); }
.pkg__disc {
    position: absolute; top: 12px; right: 12px;
    background: var(--green-500); color: #fff; font-weight: 800;
    font-size: 12px; padding: 4px 9px; border-radius: 999px;
}
.pkg__name { font-size: 20px; margin-bottom: 2px; }
.pkg__combos { color: var(--muted); font-size: 13px; margin: 0 0 10px; }
.pkg__price { font-family: var(--font-head); font-weight: 800; font-size: 30px; color: var(--green-700); margin: 0 0 10px; }
.pkg__meta { list-style: none; padding: 0; margin: 0 0 16px; color: var(--muted); font-size: 13px; }
.pkg__meta li { margin: 2px 0; }
.pkg__cta { width: 100%; }

/* ---- FAQ ------------------------------------------------------ */
.faqs { display: grid; gap: 10px; }
.faq {
    background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius-sm); padding: 4px 16px;
}
.faq summary {
    cursor: pointer; list-style: none; padding: 14px 0;
    font-family: var(--font-head); font-weight: 700; color: var(--green-900);
}
.faq summary::-webkit-details-marker { display: none; }
.faq[open] summary { color: var(--green-700); }
.faq__a { padding: 0 0 14px; color: var(--muted); }

/* ---- Auth (admin login) -------------------------------------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth__card {
    width: 100%; max-width: 380px; background: #fff;
    border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 30px 26px;
}
.auth__title { font-size: 22px; text-align: center; margin-bottom: 18px; }

.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; font-weight: 700; font-size: 14px; color: var(--green-900); }
.field input {
    font: inherit; padding: 11px 13px; border: 1.5px solid var(--line);
    border-radius: var(--radius-sm); outline: none;
}
.field input:focus { border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(45,170,69,.15); }

.alert { border-radius: var(--radius-sm); padding: 11px 14px; font-size: 14px; margin-bottom: 14px; }
.alert--error { background: #fde8e8; color: #9b1c1c; border: 1px solid #f5c2c2; }

/* ---- Admin ---------------------------------------------------- */
.admin { background: var(--paper); min-height: 100vh; }
.admin-bar { background: var(--green-900); }
.admin-bar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 58px; }
.admin-bar .brand { color: #fff; }
.admin-main { padding: 30px 0; }
.dash__welcome { color: var(--muted); }
.dash__grid { display: grid; gap: 16px; margin-top: 20px; grid-template-columns: 1fr; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card h2 { font-size: 17px; }
.card__hint { color: var(--muted); margin: 0; font-size: 14px; }

/* ---- Error pages --------------------------------------------- */
.error-page { min-height: 70vh; display: grid; place-content: center; text-align: center; gap: 12px; padding: 40px; }
.error-page h1 { font-size: 64px; color: var(--green-700); margin: 0; }

/* ============================================================
   Desktop breakpoints (the prototype was mobile-only)
   ============================================================ */
@media (min-width: 720px) {
    .site-nav { display: flex; }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .packages { grid-template-columns: repeat(2, 1fr); }
    .dash__grid { grid-template-columns: repeat(3, 1fr); }
    .hero__inner { grid-template-columns: 1.2fr .8fr; align-items: center; }
    .hero__art { justify-content: flex-end; }
    .hero__art img { width: 130px; }
}

@media (min-width: 1000px) {
    .steps { grid-template-columns: repeat(4, 1fr); }
    .packages { grid-template-columns: repeat(4, 1fr); }
    .section { padding: 64px 0; }
    .hero { padding: 72px 0 84px; }
}
