/* =====================================================
   LUGAR LATINO – MASTER STYLESHEET
   Clean • Editorial • Non-redundant • Fast
===================================================== */

/* -------------------------
   ROOT VARIABLES
-------------------------- */
:root {
    --accent: #17a2b8;

    --bg-black: #05080f;
    --bg-black-soft: #020617;
    --bg-page: #ffffff;
    --bg-soft: #f8fafc;

    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #cbd5e1;
    --text-white: #ffffff;

    --border-dark: rgba(255,255,255,0.08);
    --border-light: #e5e7eb;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;

    --shadow-sm: 0 4px 10px rgba(0,0,0,0.06);
    --shadow-md: 0 12px 30px rgba(0,0,0,0.08);
}

/* -------------------------
   RESET
-------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont,
                 "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--bg-page);
    color: var(--text-main);
    line-height: 1.65;
}

/* -------------------------
   CONTAINER
-------------------------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* -------------------------
   TYPOGRAPHY
-------------------------- */
h1, h2, h3, h4 {
    color: #0f172a;
    font-weight: 700;
    margin: 0 0 16px 0;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p {
    margin: 0 0 16px 0;
    font-size: 1rem;
}

.lead {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 65ch;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* -------------------------
   HEADER
-------------------------- */
.site-header {
    background: var(--bg-black);
    border-bottom: 1px solid var(--border-dark);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-white);
    font-weight: 600;
    font-size: 1rem;
}

.logo i {
    font-size: 1rem;
    color: var(--accent);
}

.main-nav ul {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text-white);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.3rem;
    cursor: pointer;
}

@media (max-width: 900px) {
    .menu-toggle {
        display: block;
    }

    .main-nav ul {
        position: absolute;
        top: 64px;
        right: 0;
        background: var(--bg-black-soft);
        flex-direction: column;
        width: 220px;
        padding: 20px;
        display: none;
    }

    .main-nav ul.show {
        display: flex;
    }

    .main-nav a {
        padding: 8px 0;
    }
}

/* -------------------------
   SECTIONS
-------------------------- */
.section {
    padding: 64px 0;
}

.section-soft {
    background: var(--bg-soft);
}

/* -------------------------
   CARDS
-------------------------- */
.card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

/* -------------------------
   GRIDS
-------------------------- */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
}

/* -------------------------
   BUTTONS
-------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    background: var(--accent);
    color: #ffffff;
    border: none;
    cursor: pointer;
}

.btn:hover {
    opacity: 0.9;
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

/* -------------------------
   FORMS
-------------------------- */
input,
textarea,
select {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    font-size: 0.95rem;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent);
}

/* -------------------------
   SHARE BAR
-------------------------- */
.share-section {
    background: var(--bg-black-soft);
    border-top: 1px solid var(--border-dark);
}

.share-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    gap: 14px;
}

.share-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.share-buttons {
    display: flex;
    gap: 12px;
}

.share-buttons a {
    color: var(--text-light);
    font-size: 1rem;
}

.share-buttons a:hover {
    color: var(--accent);
}

/* -------------------------
   FOOTER
-------------------------- */
.site-footer {
    background: var(--bg-black);
    border-top: 1px solid var(--border-dark);
}

/* MAIN FOOTER LINKS */
.footer-main {
    display: flex;
    justify-content: center;
    padding: 18px 0;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: #9ca3af;
    font-size: 0.85rem;
    text-decoration: none;
}

.footer-links a:hover {
    color: #ffffff;
}

/* ABSOLUTE BOTTOM LINE */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    text-align: center;
    padding: 12px 0;
    font-size: 0.75rem;
    color: #6b7280;
}

.footer-bottom i {
    color: var(--accent);
    margin-right: 6px;
}

/* -------------------------
   COOKIE BANNER
-------------------------- */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-black-soft);
    color: var(--text-white);
    padding: 12px 16px;
    display: none;
    justify-content: center;
    gap: 16px;
    z-index: 9999;
    font-size: 0.85rem;
}

#cookie-banner button {
    background: var(--accent);
    border: none;
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
}

/* -------------------------
   IMAGES
-------------------------- */
img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}
/* =====================================
   HOME SEARCH BOX – ENHANCED
===================================== */

.search-box {
    max-width: 520px;              /* narrower, more elegant */
    margin: 28px auto 0 auto;
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 999px;
    padding: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
}

.search-box input[type="text"] {
    flex: 1;
    border: none;
    padding: 14px 18px;
    font-size: 0.95rem;
    border-radius: 999px;
    outline: none;
    color: var(--text-main);
}

.search-box input::placeholder {
    color: #9ca3af;
}

.search-box button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: var(--accent);
    color: #ffffff;
    border: none;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
}

.search-box button i {
    font-size: 0.85rem;
}

.search-box button:hover {
    opacity: 0.9;
}

/* MOBILE */
@media (max-width: 600px) {
    .search-box {
        max-width: 100%;
        margin-left: 16px;
        margin-right: 16px;
    }

    .search-box button span {
        display: none;
    }
}
