/* =====================================================
   ROSTI Costa Rica - clon 1:1 de www.rosti.cr
   Paleta extraída del HTML real (Tailwind/shadcn-ui based)
   ===================================================== */

:root {
    /* Colores reales medidos del HTML del sitio */
    --navy: #34526C;
    --navy-deep: #203A54;
    --navy-mid: #35526C;
    --navy-text: #34526C;
    --orange: #E9933C;
    --orange-soft: #F4B97D;
    --turquoise: #A5D2D8;
    --turquoise-deep: #93D0D1;
    --green: #14833E;
    --green-light: #45B97D;
    --foreground: #405366;
    --paper: #FFFFFF;
    --bg-soft: #F4F6F9;
    --bg-page: #FFFFFF;
    --muted: #6B7785;
    --border: #E5E9EE;
    --shadow-sm: 0 2px 8px rgba(32, 58, 84, 0.06);
    --shadow-md: 0 8px 24px rgba(32, 58, 84, 0.10);
    --shadow-lg: 0 18px 48px rgba(32, 58, 84, 0.16);
    --radius: 8px;
    --t: 0.25s ease;
    --font-display: 'Montserrat', 'Open Sans', system-ui, sans-serif;
    --font-body: 'Open Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--foreground);
    background: var(--bg-page);
    line-height: 1.6;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: var(--t); }
a:hover { color: var(--orange); }
h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    color: var(--navy-deep);
    line-height: 1.15;
    font-weight: 800;
}

.container {
    width: 100%;
    max-width: 80rem;   /* max-w-7xl Tailwind = 80rem */
    margin: 0 auto;
    padding: 0 1rem;
}
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* ============== HEADER (replica navbarLogoLink + navbarLink) ============== */
.site-header {
    background: var(--paper);
    border-bottom: 1px solid var(--border);
    color: var(--navy-text);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    align-items: center;
    height: 4rem;
    gap: 1rem;
}

.navbar-logo {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
}
.navbar-logo img {
    height: 3rem;          /* h-12 */
    width: auto;
}

.nav-links {
    display: none;
    list-style: none;
    flex: 1;
    align-items: center;
    gap: 1.25rem;
}
@media (min-width: 1024px) { .nav-links { gap: 1.5rem; } }
@media (min-width: 768px) { .nav-links { display: flex; } }

.nav-links a {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--navy-text);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: var(--t);
}
.nav-links a:hover { color: var(--orange); }
.nav-links a.active { color: var(--orange); }

.nav-cta {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-bag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    color: var(--navy);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--t);
}
.btn-bag:hover { color: var(--orange); background: var(--bg-soft); }
.btn-bag svg { width: 1.5rem; height: 1.5rem; }

.menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 6px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--navy);
    cursor: pointer;
}
@media (min-width: 768px) { .menu-toggle { display: none; } }
.menu-toggle svg { width: 1.25rem; height: 1.25rem; }

/* Menú móvil desplegable */
.mobile-menu {
    display: none;
    background: var(--paper);
    border-top: 1px solid var(--border);
    padding: 0.5rem 1rem;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
    display: block;
    padding: 0.75rem 0;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--navy-text);
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a.active { color: var(--orange); }

/* ============== SLIDER (placeholder simulando carrusel real) ============== */
.slider {
    width: 100%;
    aspect-ratio: 1601 / 550;
    overflow: hidden;
    background: var(--bg-soft);
    position: relative;
}
.slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.white-space {
    height: 80px;
    background: var(--paper);
}

/* ============== APP TITLE (¡COMÉ COMO TE GUSTA!) ============== */
.app-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.875rem, 5vw, 3rem);
    letter-spacing: -0.5px;
    color: var(--navy-deep);
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
}
@media (min-width: 768px) { .app-title { margin-bottom: 2rem; } }

/* ============== GALLERY GRID (categorías de menú) ============== */
.gallery {
    padding: 2.5rem 0;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(5, 1fr); } }

.gallery-item {
    display: flex;
    flex-direction: column;
}
.gallery-item-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    aspect-ratio: 1 / 1;
    background: var(--bg-soft);
    transition: var(--t);
}
.gallery-item:hover .gallery-item-image {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.gallery-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============== SOSTENIBILIDAD ============== */
.sustain {
    background-color: var(--paper);
    padding: 2.5rem 0;
}
.sustain .titulo1 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.625rem, 3.5vw, 2.5rem);
    color: var(--navy-deep);
    text-align: center;
    margin-bottom: 1.5rem;
    letter-spacing: 0.3px;
}
.sustain-body {
    max-width: 56rem;
    margin: 0 auto;
}
.sustain-body p {
    margin-bottom: 1.1rem;
    color: var(--foreground);
    font-size: 1rem;
    line-height: 1.7;
    text-align: justify;
}
.sustain-quote {
    border-left: 4px solid var(--orange);
    padding: 0.5rem 1.25rem;
    margin: 1.4rem 0;
    color: var(--navy-deep);
    font-style: italic;
    background: var(--bg-soft);
    border-radius: 4px;
}
.sustain-quote-author {
    margin-top: 0.5rem;
    color: var(--green);
    font-weight: 700;
    font-style: normal;
    font-size: 0.95rem;
}
.sustain-emblems {
    background-color: var(--turquoise);
    padding: 2rem 0;
    margin-top: 2rem;
    text-align: center;
}
.sustain-emblems p {
    color: var(--navy-deep);
    font-weight: 600;
    max-width: 56rem;
    margin: 0 auto 1rem;
    padding: 0 1rem;
}
.emblem-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1rem;
}
.emblem {
    background: var(--paper);
    border-radius: 9999px;
    padding: 0.5rem 1.25rem;
    color: var(--green);
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.emblem i { color: var(--orange); }

/* ============== PURA VIDA ============== */
.pura-vida {
    background-color: var(--green);
    color: var(--paper);
    padding: 3rem 0;
    text-align: center;
}
.pura-vida .titulo3 {
    font-family: var(--font-display);
    font-weight: 900;
    color: var(--paper);
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.05;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}
.pura-vida p {
    max-width: 48rem;
    margin: 0 auto;
    color: var(--paper);
    font-size: 1rem;
}

/* ============== MOMENTOS ROSTI ============== */
.momentos {
    background-color: var(--turquoise);
    padding: 3rem 0;
    text-align: center;
}
.momentos .titulo2 {
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--navy-deep);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 0.5rem;
}
.momentos .bajada2 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--orange);
    font-size: clamp(1rem, 2.2vw, 1.4rem);
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}
.momentos > .container > p {
    max-width: 56rem;
    margin: 0 auto 2rem;
    color: var(--navy-deep);
    text-align: justify;
}

/* ============== DINOGIRA ============== */
.dinogira {
    background-color: var(--turquoise);
    padding: 0 0 3rem;
    text-align: center;
}
.dinogira-img {
    max-width: 800px;
    margin: 0 auto 1rem;
    padding: 0 1rem;
}
.dinogira-img img {
    width: 100%;
    height: auto;
}
.dinogira .subtitulo2 {
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--navy-deep);
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}
.dinogira .dino3 {
    max-width: 56rem;
    margin: 0 auto 1rem;
    padding: 0 1rem;
    color: var(--navy-deep);
    text-align: justify;
    font-size: 1rem;
}

/* ============== SERVICIOS (Fiestas / Pet / Reuniones) ============== */
.servicios {
    background: var(--paper);
    padding: 3rem 0;
}
.servicios-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 768px) { .servicios-grid { grid-template-columns: repeat(3, 1fr); } }
.servicio-item {
    text-align: center;
    padding: 0 1rem;
}
.servicio-item img {
    width: 100%;
    max-width: 280px;
    height: auto;
    margin: 0 auto 1rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.servicio-item h3 {
    color: var(--navy-deep);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}
.servicio-item p {
    color: var(--foreground);
    font-size: 0.95rem;
}
.servicio-item a.linkpdf {
    display: inline-block;
    margin-top: 0.75rem;
    color: var(--orange);
    font-weight: 700;
}
.servicio-item a.linkpdf:hover { color: var(--green); }

/* ============== PAGE HEADER ============== */
.page-header {
    background-color: var(--turquoise);
    color: var(--navy-deep);
    padding: 3rem 0 2.5rem;
    text-align: center;
}
.page-header h1 {
    color: var(--navy-deep);
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(1.75rem, 5vw, 3rem);
    letter-spacing: 0.5px;
}
.page-header p {
    color: var(--navy-deep);
    margin-top: 0.5rem;
    font-size: 1rem;
}

/* ============== REGLAMENTOS ============== */
.reglamentos-section {
    background: var(--navy);
    padding: 3rem 0 5rem;
    color: var(--paper);
}
.reglamentos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}
.reglamento-card {
    background: var(--paper);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--t);
}
.reglamento-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.reglamento-card h3 {
    color: var(--orange);
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
    font-weight: 800;
}
.reglamento-card p {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}
.reglamento-card a {
    color: var(--orange);
    font-weight: 700;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.reglamento-card a:hover { color: var(--green); }

/* ============== LOCALES ============== */
.locales-section {
    background: var(--bg-soft);
    padding: 3rem 0;
}
.locales-search {
    background: var(--paper);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin: 0 auto 2rem;
    box-shadow: var(--shadow-sm);
    max-width: 38rem;
}
.locales-search label {
    display: block;
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 0.4rem;
}
.locales-search input {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    color: var(--foreground);
}
.locales-search input:focus { outline: none; border-color: var(--orange); }

.locales-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}
.local-card {
    background: var(--paper);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    border-top: 3px solid var(--orange);
    transition: var(--t);
}
.local-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.local-card h3 {
    color: var(--navy-deep);
    font-size: 1.15rem;
    margin-bottom: 0.7rem;
}
.local-info {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    color: var(--foreground);
}
.local-info i { color: var(--orange); width: 16px; margin-top: 4px; }

/* ============== FOOTER ============== */
.site-footer {
    background-color: var(--navy);
    color: var(--paper);
    padding: 2.5rem 0 1rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}
@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
.footer-col h4 {
    color: var(--paper);
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: 0.3px;
}
.footer-col ul { list-style: none; }
.footer-col li {
    margin-bottom: 0.55rem;
    font-size: 0.9rem;
}
.footer-col a { color: var(--paper); }
.footer-col a:hover { color: var(--orange); }

.footer-brand img {
    height: 3.5rem;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}
.footer-contact-block {
    margin-top: 0.75rem;
    color: var(--paper);
    font-size: 0.9rem;
}
.footer-contact-block strong {
    display: block;
    color: var(--orange);
    font-weight: 700;
    margin-bottom: 0.2rem;
}
.footer-social {
    display: flex;
    gap: 0.6rem;
    margin-top: 1rem;
}
.footer-social a {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: rgba(255,255,255,0.10);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--paper);
    transition: var(--t);
}
.footer-social a:hover { background: var(--orange); transform: translateY(-2px); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 1rem;
    text-align: center;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.7);
}
