/* ========================================
   birreta.css — Tema oscuro La Birreta ("cambio de mundo")
   ======================================== */

body.theme-birreta {
    background-color: var(--birreta-bg);
    color: var(--birreta-text);
}

body.theme-birreta header {
    background: rgba(26, 21, 18, 0.72);
    border-bottom-color: rgba(200, 121, 65, 0.16);
}

body.theme-birreta header.is-scrolled { background: rgba(26, 21, 18, 0.9); }

body.theme-birreta .logo-line1 { color: var(--birreta-text); }
body.theme-birreta .logo-line2 { color: var(--birreta-accent); }
body.theme-birreta .nav-link-item { color: var(--birreta-text); }
body.theme-birreta .nav-link-item:hover,
body.theme-birreta .nav-link-item.active { color: var(--birreta-accent); }
body.theme-birreta .nav-link-item::after { background: var(--birreta-primary); }
body.theme-birreta .mobile-menu-toggle span { background: var(--birreta-text); }

body.theme-birreta h1,
body.theme-birreta h2,
body.theme-birreta h3 { color: var(--birreta-text); }

body.theme-birreta footer {
    background: linear-gradient(180deg, #14100D 0%, #0E0B09 100%);
    color: var(--birreta-text-muted);
}

body.theme-birreta .footer-section a { color: var(--birreta-text-muted); }
body.theme-birreta .footer-section a:hover { color: var(--birreta-accent); }
body.theme-birreta .footer-eslogan { color: var(--birreta-accent); }
body.theme-birreta ::selection { background: var(--birreta-primary); color: var(--birreta-bg); }

/* ---------- Hero Birreta ---------- */
.birreta-hero {
    position: relative;
    min-height: calc(100vh - var(--nav-h));
    min-height: calc(100svh - var(--nav-h));
    display: grid;
    place-items: center;
    text-align: center;
    overflow: hidden;
    padding: var(--spacing-2xl) var(--gutter);
    background:
        radial-gradient(60% 55% at 50% 8%, rgba(232, 176, 75, 0.16), transparent 70%),
        var(--birreta-gradient-dark);
}

.birreta-hero-content { position: relative; z-index: 2; max-width: 720px; }

.birreta-logo {
    width: clamp(140px, 30vw, 210px);
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius-full);
    margin: 0 auto var(--spacing-md);
    border: 3px solid rgba(232, 176, 75, 0.5);
    box-shadow: var(--birreta-shadow-glow);
    animation: birreta-glow 4s ease-in-out infinite;
}

.birreta-hero h1 {
    font-size: var(--text-hero);
    font-weight: 900;
    color: var(--birreta-text);
}

.birreta-hero .tagline {
    font-family: var(--heading-font);
    font-style: italic;
    font-size: var(--text-lead);
    color: var(--birreta-accent);
    margin-block: 0.5rem 1rem;
}

.birreta-hero .birreta-description {
    color: var(--birreta-text-muted);
    max-width: 52ch;
    margin: 0 auto var(--spacing-lg);
}

/* burbujas ascendentes sutiles */
.birreta-bubbles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.birreta-bubbles span {
    position: absolute;
    bottom: -40px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(232, 176, 75, 0.22);
    animation: bubble-rise 14s linear infinite;
}

.birreta-bubbles span:nth-child(1) { left: 8%; animation-duration: 15s; }
.birreta-bubbles span:nth-child(2) { left: 22%; width: 6px; height: 6px; animation-duration: 11s; animation-delay: 2s; }
.birreta-bubbles span:nth-child(3) { left: 37%; width: 14px; height: 14px; animation-duration: 19s; animation-delay: 5s; }
.birreta-bubbles span:nth-child(4) { left: 52%; animation-duration: 13s; animation-delay: 1s; }
.birreta-bubbles span:nth-child(5) { left: 65%; width: 7px; height: 7px; animation-duration: 16s; animation-delay: 7s; }
.birreta-bubbles span:nth-child(6) { left: 78%; width: 12px; height: 12px; animation-duration: 12s; animation-delay: 3s; }
.birreta-bubbles span:nth-child(7) { left: 90%; animation-duration: 18s; animation-delay: 6s; }
.birreta-bubbles span:nth-child(8) { left: 45%; width: 5px; height: 5px; animation-duration: 10s; animation-delay: 9s; }

/* ---------- Secciones ---------- */
.birreta-section { padding-block: var(--space-section); }

.birreta-section .eyebrow { color: var(--birreta-primary); }

.birreta-section .section-intro {
    color: var(--birreta-text-muted);
    max-width: 56ch;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: var(--spacing-md);
    margin-block: var(--spacing-xl);
}

.brand-card {
    background: var(--birreta-bg-light);
    border: 1px solid rgba(200, 121, 65, 0.25);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: transform 0.35s var(--animation-spring), box-shadow 0.35s var(--animation-smooth), border-color 0.35s;
}

.brand-card h3 {
    font-size: 1.6rem;
    color: var(--birreta-accent);
    margin-bottom: 0.5rem;
}

.brand-card p { color: var(--birreta-text-muted); }

@media (hover: hover) and (pointer: fine) {
    .brand-card:hover {
        transform: translateY(-6px);
        border-color: var(--birreta-primary);
        box-shadow: var(--birreta-shadow-lg);
    }
}

.brands-showcase {
    border-radius: var(--radius-lg);
    box-shadow: var(--birreta-shadow-md);
    margin-inline: auto;
    max-width: 860px;
    width: 100%;
}

/* servicios en rail */
.service-card {
    background: var(--birreta-bg-light);
    border: 1px solid rgba(200, 121, 65, 0.18);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    transition: transform 0.35s var(--animation-spring), border-color 0.35s, box-shadow 0.35s;
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: rgba(232, 176, 75, 0.12);
    display: grid;
    place-items: center;
    color: var(--birreta-accent);
}

.service-card h3 { font-size: 1.3rem; }
.service-card p { color: var(--birreta-text-muted); font-size: 0.95rem; }

@media (hover: hover) and (pointer: fine) {
    .service-card:hover {
        transform: translateY(-6px);
        border-color: var(--birreta-primary);
        box-shadow: var(--birreta-shadow-lg);
    }
}

body.theme-birreta .rail-btn {
    background: rgba(45, 38, 32, 0.8);
    border-color: rgba(200, 121, 65, 0.3);
    color: var(--birreta-accent);
}

/* banner con parallax */
.birreta-banner {
    overflow: hidden;
    max-height: 70vh;
}

.birreta-banner .photo {
    background: var(--birreta-bg-light);
    height: 100%;
}

.birreta-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
}

/* manifiesto pinned birreta */
.birreta-manifesto {
    background:
        radial-gradient(50% 60% at 50% 40%, rgba(200, 121, 65, 0.14), transparent 75%),
        var(--birreta-gradient-wood);
    color: var(--birreta-text);
    display: grid;
    place-items: center;
    min-height: 60vh;
    padding: var(--space-section) var(--gutter);
    text-align: center;
}

.birreta-manifesto .manifesto-text { color: var(--birreta-text); }
.birreta-manifesto .eyebrow { color: var(--birreta-accent); }

/* CTA final */
.birreta-cta {
    text-align: center;
    padding: var(--space-section) var(--gutter);
    background: var(--birreta-gradient-wood);
}

.birreta-cta h2 { font-size: var(--text-display); margin-bottom: 0.5rem; }
.birreta-cta > p { color: var(--birreta-text-muted); margin-bottom: var(--spacing-lg); }

.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-sm);
}

/* conexión con la marca madre */
.birreta-connection {
    text-align: center;
    padding: var(--spacing-2xl) var(--gutter);
    color: var(--birreta-text-muted);
}

.connection-logo {
    width: 92px;
    height: 92px;
    object-fit: cover;
    border-radius: var(--radius-full);
    margin: var(--spacing-sm) auto;
    border: 2px solid rgba(232, 176, 75, 0.4);
    transition: transform 0.35s var(--animation-spring), box-shadow 0.35s;
}

.birreta-connection a:hover .connection-logo {
    transform: scale(1.08);
    box-shadow: var(--birreta-shadow-glow);
}

.birreta-connection .brand-name {
    font-family: var(--heading-font);
    color: var(--birreta-text);
    font-size: 1.15rem;
}
