/* Bahiense — estilos base mobile-first */

:root {
    --color-bg: #0b1f3a;
    --color-bg-soft: #122e52;
    --color-text: #f3f6fb;
    --color-text-soft: #b9c4d4;
    --color-accent: #ffb84d;
    --color-accent-strong: #ff9d1a;
    --color-card: #ffffff;
    --color-card-text: #1a2236;
    --color-border: rgba(255, 255, 255, 0.08);
    --radius: 14px;
    --max-w: 1100px;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

img { max-width: 100%; height: auto; display: block; }

.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 18px;
}

/* === Breadcrumb === */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    font-size: 0.85rem;
    color: var(--color-text-soft);
    padding: 14px 0 4px;
}
.breadcrumb a { color: var(--color-text-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--color-accent); text-decoration: underline; }
.breadcrumb__current { color: var(--color-text); font-weight: 500; }

.back-link {
    display: inline-block;
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    margin: 6px 0 14px;
}
.back-link:hover { color: var(--color-accent-strong); }

/* === Header === */
.site-header {
    background: rgba(11, 31, 58, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 50;
}
.header-inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 18px;
}
.brand { display: flex; flex-direction: column; line-height: 1; color: var(--color-text); text-decoration: none; }
.brand:hover { text-decoration: none; color: var(--color-text); }
.brand-name {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.brand-tagline {
    font-size: 0.8rem;
    color: var(--color-text-soft);
    margin-top: 4px;
    font-weight: 500;
}

.site-nav {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    align-items: center;
}
.site-nav a {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-text);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}
.site-nav a:hover {
    background: rgba(255, 184, 77, 0.18);
    color: var(--color-accent);
    text-decoration: none;
}
.site-nav a.site-nav__active {
    background: var(--color-accent);
    color: #1a2236;
}

.site-search {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 4px;
    margin-left: 6px;
}
.site-search input {
    background: transparent;
    border: none;
    color: var(--color-text);
    padding: 4px 12px;
    font-size: 0.88rem;
    outline: none;
    width: 130px;
}
.site-search input::placeholder { color: rgba(185, 196, 212, 0.6); }
.site-search button {
    background: transparent;
    border: none;
    color: var(--color-text-soft);
    cursor: pointer;
    padding: 4px 10px;
    font-size: 0.88rem;
}
.site-search button:hover { color: var(--color-accent); }

.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    width: 38px;
    height: 38px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 760px) {
    .header-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; }
    .nav-toggle { display: flex; }
    .site-nav {
        display: none;
        grid-column: 1 / -1;
        flex-direction: column;
        align-items: stretch;
        padding-top: 8px;
    }
    .site-nav.is-open { display: flex; }
    .site-nav a { padding: 10px 14px; text-align: left; }
    .site-search { width: 100%; margin: 6px 0 0; }
    .site-search input { flex: 1; width: auto; }
}

@media (min-width: 761px) {
    .header-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* === Main === */
.site-main { padding: 32px 0 80px; min-height: 60vh; }

/* === Hero === */
.hero { text-align: center; padding: 24px 0 28px; }
.hero h1 {
    font-size: clamp(1.8rem, 5.5vw, 2.8rem);
    line-height: 1.1;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}
.hero-sub {
    font-size: 1.05rem;
    color: var(--color-text-soft);
    max-width: 560px;
    margin: 0 auto 20px;
}
.hero-quick {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}
.quick-pill {
    padding: 9px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid var(--color-border);
}
.quick-pill:hover { background: rgba(255, 184, 77, 0.15); border-color: var(--color-accent); color: var(--color-accent); text-decoration: none; }
.quick-pill--active { background: var(--color-accent); color: #1a2236; border-color: var(--color-accent); }
.quick-pill--active:hover { background: var(--color-accent-strong); color: #1a2236; }

/* === Empty state / placeholder === */
.empty-state {
    background: var(--color-bg-soft);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    margin-top: 32px;
}
.empty-state h2 {
    margin-top: 0;
    font-size: 1.4rem;
    color: var(--color-text);
}
.empty-state p {
    color: var(--color-text-soft);
    margin: 8px auto;
    max-width: 520px;
}
.empty-state__small { font-size: 0.95rem; }

/* === Newsletter form === */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 380px;
    margin: 18px auto 0;
}
.newsletter-form input[type="email"] {
    padding: 12px 16px;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-text);
    font-size: 1rem;
    font-family: inherit;
}
.newsletter-form input[type="email"]::placeholder { color: rgba(185, 196, 212, 0.7); }
.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.1);
}
.newsletter-form button {
    padding: 12px 20px;
    border-radius: 999px;
    border: none;
    background: var(--color-accent);
    color: #1a2236;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    font-family: inherit;
}
.newsletter-form button:hover { background: var(--color-accent-strong); }

@media (min-width: 540px) {
    .newsletter-form { flex-direction: row; }
    .newsletter-form input[type="email"] { flex: 1; }
}

/* === Botones === */
.btn-primary {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 999px;
    background: var(--color-accent);
    color: #1a2236;
    font-weight: 700;
    text-decoration: none;
    margin-top: 18px;
}
.btn-primary:hover { background: var(--color-accent-strong); color: #1a2236; text-decoration: none; }

/* === Events list === */
.events-list {
    display: grid;
    gap: 18px;
    margin-top: 24px;
    grid-template-columns: 1fr;
}
@media (min-width: 720px) {
    .events-list { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
    .events-list { grid-template-columns: repeat(3, 1fr); }
}

.event-card {
    background: var(--color-card);
    color: var(--color-card-text);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px -16px rgba(0, 0, 0, 0.4);
}
.event-card--featured {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 2px rgba(255, 184, 77, 0.18);
}
.event-card__img {
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #0c1a2a;
}
.event-card__img img { width: 100%; height: 100%; object-fit: cover; }
.event-card__body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.event-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.82rem;
    color: #5b6478;
    align-items: center;
}
.event-card__date { font-weight: 700; color: #1a2236; }
.event-card__cat {
    background: rgba(11, 31, 58, 0.08);
    padding: 2px 8px;
    border-radius: 6px;
}
.event-card__free {
    background: #d4f5d6;
    color: #1d6a23;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 700;
}
.event-card__price {
    background: rgba(255, 184, 77, 0.18);
    color: #8a5500;
    padding: 2px 8px;
    border-radius: 6px;
}
.event-card__title {
    font-size: 1.1rem;
    line-height: 1.25;
    margin: 4px 0 4px;
    color: #1a2236;
}
.event-card__venue {
    font-size: 0.92rem;
    color: #4a5266;
    margin: 0;
}
.event-card__desc {
    font-size: 0.92rem;
    color: #4a5266;
    margin: 6px 0 0;
    line-height: 1.45;
}
.event-card__actions {
    margin-top: auto;
    padding-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.btn-link {
    color: var(--color-accent-strong);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.92rem;
}
.btn-link:hover { text-decoration: underline; }
.btn-share {
    background: #25d366;
    color: #fff;
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.85rem;
}
.btn-share:hover { background: #1ebe5b; color: #fff; text-decoration: none; }
.event-card__verified {
    margin-left: auto;
    font-size: 0.75rem;
    color: #1d6a23;
    background: #d4f5d6;
    padding: 3px 8px;
    border-radius: 6px;
}

.event-card--grouped { border-color: #c39a4a; box-shadow: 0 0 0 2px rgba(195, 154, 74, 0.15); }
.event-card__siblings {
    margin: 8px 0 0;
    font-size: 0.85rem;
    color: #5b6478;
    background: rgba(255, 184, 77, 0.1);
    padding: 8px 10px;
    border-radius: 8px;
    line-height: 1.4;
}
.event-card__siblings strong { color: #8a5500; font-weight: 700; }

.event-detail__siblings {
    padding: 16px 28px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.event-detail__siblings h2 { font-size: 1rem; margin: 0 0 12px; color: #1a2236; }
.siblings-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr;
}
@media (min-width: 540px) { .siblings-list { grid-template-columns: 1fr 1fr; } }
.siblings-list li {
    display: flex;
    gap: 10px;
    align-items: center;
    background: rgba(11, 31, 58, 0.04);
    padding: 8px;
    border-radius: 8px;
}
.siblings-list__thumb {
    width: 56px; height: 56px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #0c1a2a;
}
.siblings-list__thumb img { width: 100%; height: 100%; object-fit: cover; }
.siblings-list__title {
    color: #1a2236;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.92rem;
    line-height: 1.3;
}
.siblings-list__title:hover { color: var(--color-accent-strong); }
.event-card__title a {
    color: inherit;
    text-decoration: none;
}
.event-card__title a:hover { color: var(--color-accent-strong); }

/* === Event detail page === */
.event-detail {
    background: var(--color-card);
    color: var(--color-card-text);
    border-radius: var(--radius);
    overflow: hidden;
    margin-top: 12px;
}
.event-detail__cover {
    background: #0c1a2a;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 70vh;
}
.event-detail__cover img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    display: block;
}
.event-detail__header { padding: 24px 28px 12px; }
.event-detail__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 0.88rem;
    margin-bottom: 12px;
}
.event-detail__date {
    font-weight: 700;
    color: #1a2236;
    background: rgba(11, 31, 58, 0.08);
    padding: 4px 10px;
    border-radius: 6px;
}
.event-detail__cat {
    background: rgba(11, 31, 58, 0.08);
    padding: 4px 10px;
    border-radius: 6px;
    color: #4a5266;
}
.event-detail__title {
    font-size: clamp(1.5rem, 4.5vw, 2.2rem);
    margin: 6px 0 10px;
    line-height: 1.2;
    color: #1a2236;
}
.event-detail__venue {
    font-size: 1.05rem;
    color: #4a5266;
    margin: 0;
}
.event-detail__body {
    padding: 12px 28px 20px;
    font-size: 1.02rem;
    line-height: 1.65;
    color: #2a3144;
}
.event-detail__actions {
    padding: 12px 28px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.btn-share--lg {
    padding: 12px 22px;
    font-size: 1rem;
}
.btn-link--muted { color: #6b7281; }
.event-detail__sources {
    padding: 16px 28px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.event-detail__sources h2 { font-size: 1rem; margin: 0 0 10px; color: #1a2236; }
.event-detail__sources ul { padding-left: 20px; margin: 0; color: #4a5266; }
.event-detail__sources li { margin-bottom: 4px; font-size: 0.92rem; }
.event-detail__sources li small { color: #8a92a3; }
.event-detail__disclaimer {
    padding: 16px 28px 24px;
    font-size: 0.85rem;
    color: #8a92a3;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin: 0;
}

.related {
    margin-top: 48px;
    color: var(--color-text);
}
.related h2 {
    font-size: 1.4rem;
    margin: 0 0 18px;
}

/* === Bloque fecha/lugar prominente === */
.event-detail__keyblock {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
    margin-top: 18px;
}
@media (min-width: 600px) {
    .event-detail__keyblock { grid-template-columns: 1fr 1fr; }
}
.keyblock__when, .keyblock__where {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(11, 31, 58, 0.05);
    border-radius: 12px;
    border-left: 3px solid var(--color-accent);
}
.keyblock__icon { font-size: 1.4rem; flex-shrink: 0; }
.keyblock__primary { font-weight: 700; color: #1a2236; font-size: 1.02rem; line-height: 1.3; }
.keyblock__secondary { font-size: 0.9rem; color: #5b6478; margin-top: 2px; }
.keyblock__link {
    display: inline-block;
    margin-top: 8px;
    color: var(--color-accent-strong);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
}
.keyblock__link:hover { text-decoration: underline; }

/* === Add to Calendar dropdown === */
.calendar-dropdown {
    position: relative;
    display: inline-block;
}
.calendar-dropdown summary {
    list-style: none;
    cursor: pointer;
}
.calendar-dropdown summary::-webkit-details-marker { display: none; }
.btn-link--strong {
    color: var(--color-accent-strong);
    font-weight: 700;
    background: rgba(255, 184, 77, 0.12);
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 0.92rem;
    border: 1px solid rgba(255, 184, 77, 0.3);
}
.btn-link--strong:hover { background: rgba(255, 184, 77, 0.22); text-decoration: none; }
.calendar-dropdown__menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 6px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
    min-width: 220px;
    overflow: hidden;
    z-index: 10;
}
.calendar-dropdown__menu a {
    display: block;
    padding: 10px 16px;
    color: #1a2236;
    text-decoration: none;
    font-size: 0.92rem;
}
.calendar-dropdown__menu a:hover { background: rgba(11, 31, 58, 0.06); color: var(--color-accent-strong); }

/* === Quality badge === */
.quality-badge {
    font-size: 0.72rem;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 600;
}
.quality-verified { background: #d4f5d6; color: #1d6a23; }
.quality-partial  { background: #fff4d6; color: #8a5500; }

.event-detail__updated {
    margin: 12px 0 0;
    font-size: 0.85rem;
    color: #6b7281;
}

/* === Sticky CTA mobile === */
.sticky-cta {
    display: none;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 100;
    gap: 8px;
    padding: 8px;
    background: rgba(11, 31, 58, 0.95);
    backdrop-filter: blur(8px);
    border-radius: 999px;
    box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.5);
}
.sticky-cta__primary {
    flex: 1;
    text-align: center;
    background: #25d366;
    color: #fff;
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
}
.sticky-cta__primary:hover { background: #1ebe5b; color: #fff; text-decoration: none; }
.sticky-cta__secondary {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    padding: 12px 16px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 1.1rem;
    line-height: 1;
}
@media (max-width: 760px) {
    .sticky-cta { display: flex; }
    body { padding-bottom: 80px; }
}

/* === Search hero form === */
.search-hero-form {
    display: flex;
    gap: 8px;
    max-width: 520px;
    margin: 14px auto 0;
}
.search-hero-form input {
    flex: 1;
    padding: 12px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-text);
    font-size: 1rem;
    font-family: inherit;
}
.search-hero-form input::placeholder { color: rgba(185, 196, 212, 0.6); }
.search-hero-form button {
    padding: 12px 22px;
    border-radius: 999px;
    border: 0;
    background: var(--color-accent);
    color: #1a2236;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}
.search-summary { color: var(--color-text-soft); margin: 18px 0; font-size: 0.95rem; }

/* === Static pages === */
.static-page {
    background: var(--color-card);
    color: var(--color-card-text);
    border-radius: var(--radius);
    padding: 32px 28px;
    margin: 12px 0 32px;
    line-height: 1.65;
    max-width: 760px;
}
.static-page h1 { margin: 0 0 18px; font-size: 1.8rem; color: #1a2236; }
.static-page h2 { margin: 24px 0 10px; font-size: 1.2rem; color: #1a2236; }
.static-page p { margin: 8px 0; color: #2a3144; }
.static-page ul { padding-left: 22px; margin: 10px 0; color: #2a3144; }
.static-page li { margin: 5px 0; }
.static-page a { color: var(--color-accent-strong); }
.static-page a:hover { text-decoration: underline; }

/* === Footer === */
.site-footer {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--color-border);
    padding: 40px 0 16px;
    margin-top: 60px;
    color: var(--color-text-soft);
}
.footer-inner {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
}
@media (min-width: 720px) {
    .footer-inner { grid-template-columns: 1.4fr 1fr 1fr 1.6fr; gap: 32px; }
}
.footer-col h3 {
    color: var(--color-text);
    font-size: 0.95rem;
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin: 5px 0; }
.footer-col a {
    color: var(--color-text-soft);
    text-decoration: none;
    font-size: 0.92rem;
}
.footer-col a:hover { color: var(--color-accent); }
.footer-brand {
    display: block;
    color: var(--color-text);
    font-size: 1.2rem;
    margin-bottom: 4px;
}
.footer-tagline { font-size: 0.92rem; margin: 4px 0 0; }
.footer-newsletter-desc { font-size: 0.88rem; margin: 0 0 10px; }
.newsletter-form--compact { flex-direction: column; max-width: 100%; }
.newsletter-form--compact input { padding: 10px 14px; font-size: 0.92rem; }
.newsletter-form--compact button { padding: 10px 18px; font-size: 0.92rem; }
@media (min-width: 540px) {
    .newsletter-form--compact { flex-direction: row; }
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-bottom small {
    color: rgba(185, 196, 212, 0.6);
    font-size: 0.8rem;
}
@media (min-width: 720px) {
    .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}
