/* =========================================================
   public-base.css — Variables, reset, nav, overlay, footer
   Compartido por catalogo.css y detalle.css
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --black:        #111111;
    --white:        #ffffff;
    --bg:           #F4F4F2;
    --text-muted:   #888888;
    --border:       #E5E5E5;
    --accent:       #D93025;
    --radius:       14px;
    --nav-h:        62px;
}

html  { scroll-behavior: smooth; }
body  {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg);
    color: var(--black);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

/* ── NAV ── */
.rasa-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--black);
    padding: 0 clamp(1rem, 5vw, 3.5rem);
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.rasa-brand {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: var(--white);
    text-decoration: none;
    text-transform: uppercase;
}
.rasa-brand span { color: var(--accent); }

.nav-search-btn {
    background: none;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 100px;
    color: rgba(255,255,255,0.8);
    font-family: 'Outfit', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    padding: 7px 16px;
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    white-space: nowrap;
}
.nav-search-btn:hover { border-color: rgba(255,255,255,0.6); color: var(--white); }

.nav-back {
    display: flex;
    align-items: center;
    gap: 7px;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    transition: color 0.2s;
}
.nav-back:hover { color: var(--white); }

/* ── SEARCH OVERLAY ── */
.search-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10,10,10,0.94);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1.25rem;
    padding: 2rem;
}
.search-overlay.active { display: flex; }

.search-overlay__input {
    width: 100%;
    max-width: 620px;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255,255,255,0.25);
    color: var(--white);
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.6rem, 4.5vw, 2.8rem);
    font-weight: 300;
    padding: 0.5rem 0;
    outline: none;
    text-align: center;
    transition: border-color 0.2s;
}
.search-overlay__input:focus { border-bottom-color: rgba(255,255,255,0.6); }
.search-overlay__input::placeholder { color: rgba(255,255,255,0.25); }

.search-overlay__actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.search-overlay__submit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 22px;
    border-radius: 100px;
    border: 1.5px solid rgba(255,255,255,0.35);
    background: transparent;
    color: var(--white);
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.search-overlay__submit:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.7); }

.search-overlay__hint {
    color: rgba(255,255,255,0.3);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.search-overlay__close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    padding: 4px;
}
.search-overlay__close:hover { color: var(--white); }

/* ── FOOTER ── */
.rasa-footer {
    background: var(--black);
    color: rgba(255,255,255,0.4);
    text-align: center;
    padding: 2rem 1rem;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.rasa-footer strong { color: rgba(255,255,255,0.7); }

/* ── UTILITY ── */
.d-none { display: none !important; }
