/*
 * Wildspotted — estilo de la web pública (portada y páginas públicas).
 * Mismos colores y tipografías que la app (lib/colors.dart, lib/theme.dart).
 */
@font-face { font-family: "Alata"; src: url("/fonts/Alata-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("/fonts/Roboto-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("/fonts/Roboto-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("/fonts/Roboto-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
    --ws-bg: #16263F;
    --ws-surface: #1F3558;
    --ws-surface-alt: #2A4570;
    --ws-surface-high: #34517F;
    --ws-navy: #1D3257;
    --ws-gold: #D4AF37;
    --ws-gold-soft: rgba(212, 175, 55, 0.14);
    --ws-cream: #FBF5E4;
    --ws-muted: #AFC2DE;
    --ws-success: #5CC08E;
    --ws-error: #FF7A6B;
    --ws-radius: 18px;
    --ws-max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--ws-bg);
    color: var(--ws-cream);
    font-family: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--ws-gold); }
img { max-width: 100%; display: block; }
h1, h2, h3, .ws-brand { font-family: "Alata", "Roboto", sans-serif; font-weight: 400; line-height: 1.2; margin: 0; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0; }
.ws-muted { color: var(--ws-muted); }
.ws-gold { color: var(--ws-gold); }

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

/* ── Cabecera ─────────────────────────────────────────────────────────── */
.ws-header {
    position: sticky; top: 0; z-index: 20;
    background: rgba(22, 38, 63, 0.88);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(175, 194, 222, 0.12);
}
.ws-header .ws-container { display: flex; align-items: center; gap: 24px; height: 68px; }
.ws-logo { display: flex; align-items: center; gap: 10px; color: var(--ws-cream); text-decoration: none; }
.ws-logo img { width: 38px; height: 38px; border-radius: 10px; }
.ws-logo span { font-family: "Alata", sans-serif; font-size: 1.35rem; }
.ws-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.ws-nav a { color: var(--ws-muted); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.ws-nav a:hover { color: var(--ws-cream); }
@media (max-width: 760px) { .ws-nav .ws-hide-sm { display: none; } }

/* ── Botones ──────────────────────────────────────────────────────────── */
.ws-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
    font: 500 1rem "Roboto", sans-serif; text-decoration: none; cursor: pointer;
    transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.ws-btn:hover { transform: translateY(-1px); }
.ws-btn-primary { background: var(--ws-gold); color: var(--ws-navy); }
.ws-btn-primary:hover { background: #e0bf52; }
.ws-btn-ghost { background: transparent; color: var(--ws-cream); border-color: rgba(251, 245, 228, 0.3); }
.ws-btn-ghost:hover { border-color: var(--ws-gold); color: var(--ws-gold); }
.ws-btn-sm { padding: 8px 16px; font-size: 0.92rem; }
.ws-btn i { font-size: 1.25em; }

/* Botones de tienda */
.ws-store {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 10px 20px 10px 16px; border-radius: 14px;
    background: #0b1424; color: var(--ws-cream); text-decoration: none;
    border: 1px solid rgba(251, 245, 228, 0.25);
    transition: transform .15s ease, border-color .15s ease;
}
.ws-store:hover { transform: translateY(-1px); border-color: var(--ws-gold); }
.ws-store i { font-size: 1.9rem; line-height: 1; }
.ws-store small { display: block; font-size: 0.72rem; color: var(--ws-muted); line-height: 1.1; }
.ws-store strong { display: block; font-size: 1.1rem; font-weight: 500; line-height: 1.2; }
.ws-stores { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Secciones ────────────────────────────────────────────────────────── */
.ws-section { padding: 88px 0; }
.ws-section-alt { background: linear-gradient(180deg, var(--ws-surface) 0%, var(--ws-bg) 100%); }
.ws-eyebrow { color: var(--ws-gold); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.78rem; margin-bottom: 12px; }
.ws-lead { font-size: 1.15rem; color: var(--ws-muted); max-width: 640px; }
.ws-center { text-align: center; }
.ws-center .ws-lead { margin-left: auto; margin-right: auto; }

/* Tarjetas */
.ws-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-top: 44px; }
.ws-card {
    background: var(--ws-surface); border: 1px solid rgba(175, 194, 222, 0.12);
    border-radius: var(--ws-radius); padding: 26px;
}
.ws-card h3 { margin: 16px 0 8px; }
.ws-card p { color: var(--ws-muted); font-size: 0.98rem; }
.ws-icon {
    width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
    background: var(--ws-gold-soft); color: var(--ws-gold); font-size: 1.6rem;
}

/* Pie */
.ws-footer { border-top: 1px solid rgba(175, 194, 222, 0.12); padding: 40px 0; color: var(--ws-muted); font-size: 0.92rem; }
.ws-footer .ws-container { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.ws-footer a { color: var(--ws-muted); text-decoration: none; }
.ws-footer a:hover { color: var(--ws-cream); }
.ws-footer .ws-copy { margin-left: auto; }

/* Páginas públicas simples (unirse a un safari, legales…) */
.ws-page { padding: 64px 0 80px; }
.ws-panel { background: var(--ws-surface); border-radius: var(--ws-radius); padding: 32px; border: 1px solid rgba(175, 194, 222, 0.12); }
.ws-prose h1 { font-size: 2rem; margin-bottom: 8px; }
.ws-prose h2 { font-size: 1.35rem; margin: 32px 0 10px; color: var(--ws-gold); }
.ws-prose h3 { font-size: 1.1rem; margin: 22px 0 8px; }
.ws-prose p, .ws-prose li { color: var(--ws-cream); opacity: 0.92; margin-bottom: 12px; }
.ws-prose ul { padding-left: 1.2rem; }
.ws-prose table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 0.95rem; }
.ws-prose th, .ws-prose td { border: 1px solid rgba(175, 194, 222, 0.2); padding: 8px 10px; text-align: left; vertical-align: top; }

/* Formularios (valorar safari) */
.ws-field { width: 100%; background: var(--ws-surface-alt); color: var(--ws-cream); border: 1px solid rgba(175, 194, 222, 0.25); border-radius: 12px; padding: 12px 14px; font: 1rem "Roboto", sans-serif; }
.ws-field:focus { outline: 2px solid var(--ws-gold); border-color: transparent; }
.ws-alert { padding: 14px 16px; border-radius: 12px; margin-bottom: 16px; }
.ws-alert-ok { background: rgba(92, 192, 142, 0.15); color: var(--ws-success); }
.ws-alert-error { background: rgba(255, 122, 107, 0.15); color: var(--ws-error); }

@media (max-width: 600px) {
    body { font-size: 16px; }
    .ws-section { padding: 64px 0; }
    .ws-panel { padding: 22px; }
    .ws-footer .ws-copy { margin-left: 0; }
}

/* Textos legales y de ayuda (venían del panel con clases de Bootstrap) */
.ws-prose .text-center { text-align: center; }
.ws-prose .text-muted { color: var(--ws-muted); }
.ws-prose .fw-bold, .ws-prose strong { font-weight: 700; }
.ws-prose h1.mb-4 { margin-bottom: 8px; }
.ws-prose h3.fw-bold { font-family: "Alata", sans-serif; font-weight: 400; font-size: 1.3rem; color: var(--ws-gold); margin: 30px 0 10px; }
.ws-prose h5 { font-family: "Alata", sans-serif; font-weight: 400; font-size: 1.1rem; color: var(--ws-gold); margin: 24px 0 6px; }
.ws-prose hr { border: 0; border-top: 1px solid rgba(175, 194, 222, 0.2); margin: 28px 0; }
