/* =====================================================================
   Rutik — public site chrome (landing, contacto, privacidad)
   Replaces Bootstrap on public pages: nothing here depends on a CDN.
   ===================================================================== */

:root {
    --rtk-brand: #1565C0;
    --rtk-brand-dark: #0D47A1;
    --rtk-brand-2: #1E88E5;
    --rtk-ink: #0B1B2B;
    --rtk-text: #1F2937;
    --rtk-muted: #4B5563;
    --rtk-line: #E2E8F0;
    --rtk-bg: #F5F7FA;
    --nav-h: 64px;
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--rtk-bg);
    color: var(--rtk-text);
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--rtk-brand); }

:where(a, button, input, summary):focus-visible {
    outline: 3px solid rgba(30, 136, 229, 0.55);
    outline-offset: 2px;
    border-radius: 6px;
}

[hidden] { display: none !important; }

.visually-hidden {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Inline line-icons (replaces the Bootstrap Icons web font) */
.ico-line {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: block;
}

/* ── Shared buttons ─────────────────────────────────────────────────── */
.btn-brand,
.btn-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 13px 24px; border-radius: 12px;
    font-weight: 600; font-size: 0.96rem; text-decoration: none;
    font-family: inherit; cursor: pointer;
    transition: transform 0.15s ease, background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}
.btn-brand {
    background: var(--rtk-brand); color: #fff;
    box-shadow: 0 12px 26px -10px rgba(21, 101, 192, 0.65);
}
.btn-brand:hover { background: var(--rtk-brand-dark); color: #fff; transform: translateY(-2px); }
.btn-brand svg { width: 1.15rem; height: 1.15rem; fill: currentColor; }
.btn-ghost {
    background: rgba(255, 255, 255, 0.72); color: var(--rtk-ink);
    border: 1px solid var(--rtk-line);
}
.btn-ghost:hover { background: #fff; color: var(--rtk-brand); transform: translateY(-2px); }

/* ── Public navbar ──────────────────────────────────────────────────── */
.public-nav {
    background: #fff;
    border-bottom: 1px solid var(--rtk-line);
    position: sticky;
    top: 0;
    z-index: 100;
}
.public-nav .nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-h);
}
.public-nav .nav-brand {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; color: var(--rtk-text);
    font-weight: 700; font-size: 1.15rem;
}
.public-nav .nav-brand img { border-radius: 10px; display: block; }
.public-nav .nav-links {
    display: flex; align-items: center; gap: 8px;
    list-style: none; margin: 0; padding: 0;
}
.public-nav .nav-links a {
    display: block;
    padding: 8px 16px; border-radius: 8px;
    text-decoration: none; color: var(--rtk-muted);
    font-weight: 500; font-size: 0.9rem;
    transition: background 0.15s, color 0.15s;
}
.public-nav .nav-links a:hover { background: #F3F4F6; color: var(--rtk-text); }
.public-nav .nav-links a.btn-login { background: var(--rtk-brand); color: #fff; font-weight: 600; }
.public-nav .nav-links a.btn-login:hover { background: var(--rtk-brand-dark); color: #fff; }

.public-nav .nav-toggle {
    display: none;
    border: none; background: none; cursor: pointer;
    padding: 8px; margin-right: -8px;
    color: var(--rtk-muted); border-radius: 8px;
}
.public-nav .nav-toggle svg { width: 26px; height: 26px; fill: currentColor; }
.public-nav .nav-toggle:hover { color: var(--rtk-ink); }

.public-nav .nav-links-mobile {
    flex-direction: column; align-items: stretch;
    padding: 4px 16px 16px;
    border-top: 1px solid var(--rtk-line);
}
.public-nav .nav-links-mobile a { padding: 12px 14px; }
.public-nav .nav-links-mobile .btn-login { margin-top: 6px; text-align: center; }

@media (max-width: 767.98px) {
    .public-nav .nav-links-desktop { display: none; }
    .public-nav .nav-toggle { display: inline-flex; }
}
@media (min-width: 768px) {
    .public-nav .nav-links-mobile { display: none; }
}

/* ── Footer ─────────────────────────────────────────────────────────── */
.public-footer {
    text-align: center;
    padding: 48px 20px 32px;
    color: #6B7280;
    font-size: 0.85rem;
}

/* ── Contact page ───────────────────────────────────────────────────── */
.contact-section {
    max-width: 640px;
    margin: 0 auto;
    padding: 56px 20px 40px;
    text-align: center;
}
.contact-section h1 {
    font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
    font-size: clamp(1.8rem, 3.4vw, 2.2rem); font-weight: 700;
    letter-spacing: -0.015em; color: var(--rtk-ink);
    margin: 0 0 10px;
}
.contact-section .subtitle {
    color: var(--rtk-muted); font-size: 1.05rem; line-height: 1.6;
    margin: 0 auto 26px; max-width: 46ch;
}
.contact-cta { margin: 0 auto 44px; }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.contact-item {
    display: flex; align-items: center; gap: 16px;
    padding: 20px 24px; background: #fff;
    border: 1px solid var(--rtk-line); border-radius: 14px;
    text-align: left; text-decoration: none; color: inherit;
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
a.contact-item:hover {
    transform: translateY(-2px);
    border-color: rgba(21, 101, 192, 0.3);
    box-shadow: 0 10px 24px -14px rgba(11, 27, 43, 0.4);
}
.contact-item .icon {
    width: 48px; height: 48px; border-radius: 12px; flex: none;
    background: #EFF6FF; color: var(--rtk-brand);
    display: grid; place-items: center;
}
.contact-item .icon svg { width: 22px; height: 22px; }
.contact-item .info strong { display: block; color: var(--rtk-text); font-weight: 600; font-size: 0.95rem; margin-bottom: 2px; }
.contact-item .info span { color: var(--rtk-muted); font-size: 0.9rem; }

/* ── Document page (privacy) ────────────────────────────────────────── */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 20px 24px; }
.doc h1 {
    font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
    font-size: clamp(1.8rem, 3.4vw, 2.2rem); font-weight: 700;
    letter-spacing: -0.015em; color: var(--rtk-ink);
    margin: 0 0 8px;
}
.doc-meta { color: var(--rtk-muted); font-size: 0.9rem; margin: 0 0 8px; }
.doc h3 { font-size: 1.08rem; font-weight: 700; color: var(--rtk-ink); margin: 30px 0 10px; }
.doc p, .doc li { color: #374151; line-height: 1.72; font-size: 0.98rem; }
.doc p { margin: 0 0 12px; }
.doc ul { margin: 0 0 12px; padding-left: 22px; }
.doc li { margin-bottom: 5px; }
.doc hr { border: none; border-top: 1px solid var(--rtk-line); margin: 34px 0 16px; }
.doc-note { color: #6B7280; font-size: 0.85rem; }

/* ── Reduced motion (site-wide) ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}
