/* ============================================================
   BRASAS Y LEÑAS DE ARIS — style.css
   Dark Mode Premium | Mobile-First | Fire & Ember Palette
   ============================================================ */

/* ─── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800;900&family=Inter:wght@300;400;500;600&display=swap');

/* ─── Design Tokens ─────────────────────────────────────────── */
:root {
    /* Fire Palette */
    --fire-orange:    #FF4500;
    --fire-amber:     #FF6B00;
    --fire-gold:      #D4820A;
    --fire-ember:     #FF8C42;
    --fire-glow:      rgba(255, 69, 0, 0.35);

    /* Carbon / Dark */
    --carbon-900:     #0A0A0A;
    --carbon-800:     #111111;
    --carbon-700:     #1A1A1A;
    --carbon-600:     #222222;
    --carbon-500:     #2E2E2E;
    --carbon-400:     #3D3D3D;

    /* Wood / Warm Neutrals */
    --wood-100:       #F5E6D3;
    --wood-200:       #E8C99A;
    --wood-300:       #C8975A;
    --text-primary:   #F0EBE3;
    --text-secondary: #A89880;
    --text-muted:     #6E6055;

    /* UI */
    --border-subtle:  rgba(255, 69, 0, 0.12);
    --border-glow:    rgba(255, 69, 0, 0.4);
    --glass-bg:       rgba(17, 17, 17, 0.85);
    --glass-blur:     saturate(180%) blur(16px);

    /* Radius */
    --radius-sm:   8px;
    --radius-md:   16px;
    --radius-lg:   24px;
    --radius-xl:   40px;
    --radius-full: 9999px;

    /* Spacing */
    --gap-xs:  8px;
    --gap-sm:  16px;
    --gap-md:  24px;
    --gap-lg:  40px;
    --gap-xl:  64px;

    /* Transitions */
    --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
    --ease-fire:  cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration:   0.35s;
}

/* ─── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--carbon-900);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

a { text-decoration: none; color: inherit; }

/* ─── Typography ─────────────────────────────────────────────── */
.font-display {
    font-family: 'Outfit', sans-serif;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    line-height: 1.1;
    font-weight: 800;
}

/* ─── HEADER ─────────────────────────────────────────────────── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-subtle);
    transition: all var(--duration) var(--ease-out);
}

.site-header.scrolled {
    padding: 12px 20px;
    border-bottom-color: var(--border-glow);
    box-shadow: 0 4px 32px rgba(0,0,0,0.6);
}

.logo-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--fire-orange);
    background: var(--carbon-800);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(255, 69, 0, 0.2);
    transition: transform var(--duration) var(--ease-fire), border-color var(--duration);
}

.logo-circle img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    border-radius: 50%;
}

.logo-brand:hover .logo-circle {
    transform: scale(1.08) rotate(5deg);
    border-color: var(--fire-gold);
    box-shadow: 0 0 14px rgba(255, 69, 0, 0.4);
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.logo-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--fire-orange), var(--fire-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.logo-sub {
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.header-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all var(--duration) var(--ease-out);
}

.header-badge.open {
    background: rgba(255,69,0,0.15);
    border: 1px solid rgba(255,69,0,0.4);
    color: var(--fire-ember);
}

.header-badge.closed {
    background: rgba(100,100,100,0.15);
    border: 1px solid rgba(100,100,100,0.3);
    color: var(--text-secondary);
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--fire-orange);
}

.badge-dot.pulse {
    animation: pulse-dot 2s ease-in-out infinite;
}

/* ─── HERO SECTION ───────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 60px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.05);
    transition: transform 8s ease-out;
    will-change: transform;
}

.hero-bg.loaded { transform: scale(1); }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10,10,10,0.3)   0%,
        rgba(10,10,10,0.1)  30%,
        rgba(10,10,10,0.5)  65%,
        rgba(10,10,10,0.97) 100%
    );
}

.hero-fire-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse 80% 40% at 50% 100%,
        rgba(255,69,0,0.18) 0%,
        transparent 70%
    );
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
    max-width: 520px;
    width: 100%;
}

.hero-day-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    background: rgba(255,69,0,0.12);
    border: 1px solid rgba(255,69,0,0.3);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fire-ember);
    margin-bottom: 16px;
    animation: fadeInUp 0.8s var(--ease-out) 0.2s both;
}

.hero-icon { font-size: 0.9rem; }

.hero-title {
    font-size: clamp(2.4rem, 9vw, 4rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.0;
    margin-bottom: 16px;
    animation: fadeInUp 0.8s var(--ease-out) 0.35s both;
}

.hero-title .fire-text {
    background: linear-gradient(135deg, var(--fire-orange) 0%, var(--fire-gold) 60%, var(--fire-amber) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    animation: fire-shimmer 4s ease-in-out infinite;
}

.hero-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.65;
    animation: fadeInUp 0.8s var(--ease-out) 0.5s both;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s var(--ease-out) 0.65s both;
}

/* ─── BUTTONS ─────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: all var(--duration) var(--ease-fire);
    border: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    white-space: nowrap;
}

.btn-fire {
    background: linear-gradient(135deg, var(--fire-orange), var(--fire-amber));
    color: #fff;
    box-shadow: 0 0 20px rgba(255,69,0,0.4), 0 4px 16px rgba(0,0,0,0.3);
}

.btn-fire:hover, .btn-fire:focus-visible {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 32px rgba(255,69,0,0.55), 0 8px 24px rgba(0,0,0,0.4);
}

.btn-fire:active { transform: scale(0.97); }

.btn-ghost {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--text-primary);
}

.btn-ghost:hover, .btn-ghost:focus-visible {
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

/* ─── CLOSED / COUNTDOWN SCREEN ──────────────────────────────── */
.closed-screen {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    text-align: center;
    background:
        radial-gradient(ellipse 60% 50% at 50% 80%, rgba(255,69,0,0.08) 0%, transparent 70%),
        var(--carbon-900);
}

.closed-icon {
    font-size: 4rem;
    margin-bottom: 24px;
    animation: float 3s ease-in-out infinite;
}

.closed-title {
    font-size: clamp(1.8rem, 7vw, 2.8rem);
    margin-bottom: 12px;
    color: var(--text-primary);
}

.closed-sub {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 340px;
}

.countdown-wrapper {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 40px;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.countdown-num {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.5rem, 10vw, 3.5rem);
    font-weight: 900;
    background: linear-gradient(135deg, var(--fire-orange), var(--fire-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    min-width: 2ch;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.countdown-label {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
}

.countdown-sep {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 8vw, 3rem);
    font-weight: 900;
    color: var(--fire-orange);
    align-self: flex-start;
    padding-top: 4px;
    animation: blink 1s step-end infinite;
}

.next-open-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.next-open-time {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--fire-ember);
}

/* ─── SECTION HEADERS ─────────────────────────────────────────── */
.section {
    padding: 64px 0;
}

.section-label {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--fire-orange);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.8rem, 6vw, 2.8rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}

.section-sub {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* ─── WEEK CAROUSEL ───────────────────────────────────────────── */
.week-section {
    padding: 56px 0;
    background: var(--carbon-800);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.week-header {
    padding: 0 24px;
    margin-bottom: 32px;
}

.carousel-track-wrapper {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    -webkit-overflow-scrolling: touch;
}

.carousel-track-wrapper:active { cursor: grabbing; }
.carousel-track-wrapper::-webkit-scrollbar { display: none; }

.carousel-track {
    display: flex;
    gap: 16px;
    padding: 8px 24px 16px;
    width: max-content;
}

.dish-card {
    flex: 0 0 260px;
    background: var(--carbon-700);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    transition: all var(--duration) var(--ease-out);
    position: relative;
}

.dish-card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: var(--border-glow);
    box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 24px rgba(255,69,0,0.12);
}

.dish-card.is-today {
    border-color: rgba(255,69,0,0.45);
    box-shadow: 0 0 0 1px rgba(255,69,0,0.2), inset 0 0 0 1px rgba(255,69,0,0.1);
}

.dish-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.dish-card:hover .dish-card-img { transform: scale(1.06); }

.dish-card-body {
    padding: 16px;
}

.dish-card-day {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--fire-orange);
    margin-bottom: 8px;
}

.dish-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 6px;
    line-height: 1.2;
    color: var(--text-primary);
}

.dish-card-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dish-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dish-card-price {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--fire-gold);
}

.dish-card-time {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 500;
}

.today-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--fire-orange), var(--fire-amber));
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: white;
    box-shadow: 0 4px 12px rgba(255,69,0,0.4);
}

/* ─── INFO SECTION ────────────────────────────────────────────── */
.info-section {
    padding: 64px 24px;
    max-width: 600px;
    margin: 0 auto;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
}

.info-card {
    background: var(--carbon-700);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px 16px;
    text-align: center;
    transition: all var(--duration) var(--ease-out);
}

.info-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-3px);
}

.info-card-icon {
    font-size: 1.8rem;
    margin-bottom: 10px;
    display: block;
}

.info-card-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.info-card-value {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
}

.info-card-value a {
    color: var(--fire-ember);
    transition: color var(--duration);
}

.info-card-value a:hover { color: var(--fire-orange); }

/* ─── MAP ─────────────────────────────────────────────────────── */
.map-container {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    margin-bottom: 32px;
}

.map-container iframe {
    width: 100%;
    height: 220px;
    display: block;
    filter: grayscale(80%) contrast(1.1) invert(0.92) hue-rotate(180deg);
}

/* ─── FOOTER ──────────────────────────────────────────────────── */
.site-footer {
    background: var(--carbon-800);
    border-top: 1px solid var(--border-subtle);
    padding: 32px 24px;
    text-align: center;
}

.footer-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--fire-orange), var(--fire-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.social-links {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--carbon-600);
    border: 1px solid var(--border-subtle);
    font-size: 1.1rem;
    transition: all var(--duration) var(--ease-out);
    color: var(--text-secondary);
}

.social-link:hover {
    background: rgba(255,69,0,0.15);
    border-color: var(--border-glow);
    color: var(--fire-ember);
    transform: translateY(-3px);
}

/* ─── WHATSAPP FAB ────────────────────────────────────────────── */
.whatsapp-fab {
    position: fixed;
    bottom: 24px;
    right: 20px;
    z-index: 200;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: var(--radius-full);
    background: #25D366;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 8px 28px rgba(37,211,102,0.4), 0 4px 12px rgba(0,0,0,0.3);
    transition: all var(--duration) var(--ease-fire);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    animation: fab-appear 0.8s var(--ease-fire) 1.2s both;
}

.whatsapp-fab:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 12px 36px rgba(37,211,102,0.5), 0 6px 16px rgba(0,0,0,0.35);
}

.whatsapp-fab:active { transform: scale(0.96); }

.whatsapp-fab svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* ─── DIVIDER ─────────────────────────────────────────────────── */
.fire-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--fire-orange), var(--fire-gold));
    border-radius: 2px;
    margin: 16px 0;
}

/* ─── AOS FALLBACK (manual fade-in) ───────────────────────────── */
[data-aos] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* ─── ANIMATIONS ──────────────────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fire-shimmer {
    0%, 100% { filter: brightness(1); }
    50%       { filter: brightness(1.18) saturate(1.15); }
}

@keyframes fire-border {
    0%, 100% { box-shadow: 0 0 18px var(--fire-glow), 0 0 6px rgba(255,69,0,0.15); }
    50%       { box-shadow: 0 0 32px rgba(255,100,0,0.5), 0 0 12px rgba(255,69,0,0.3); }
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.75); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

@keyframes fab-appear {
    from { opacity: 0; transform: translateY(20px) scale(0.8); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes smoke-rise {
    0%   { transform: translateY(0) scaleX(1); opacity: 0.6; }
    100% { transform: translateY(-80px) scaleX(1.8); opacity: 0; }
}

/* ─── SMOKE EFFECT (decorative) ───────────────────────────────── */
.smoke-container {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 1;
}

.smoke-particle {
    position: absolute;
    bottom: 0;
    width: 40px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200,200,200,0.15) 0%, transparent 70%);
    animation: smoke-rise 4s ease-out infinite;
}

.smoke-particle:nth-child(1) { left: -30px; animation-delay: 0s; animation-duration: 3.5s; }
.smoke-particle:nth-child(2) { left: 0px;   animation-delay: 1s; animation-duration: 4s;   }
.smoke-particle:nth-child(3) { left: 30px;  animation-delay: 2s; animation-duration: 3s;   }

/* ─── TABLET & DESKTOP ────────────────────────────────────────── */
@media (min-width: 640px) {
    .hero-content { max-width: 600px; }
    .info-grid { grid-template-columns: 1fr 1fr 1fr 1fr; }
    .dish-card { flex: 0 0 300px; }
    .dish-card-img { height: 200px; }
    .map-container iframe { height: 280px; }
}

@media (min-width: 1024px) {
    .site-header { padding: 20px 48px; }
    .hero-content { max-width: 640px; }
    .week-header { padding: 0 48px; }
    .carousel-track { padding: 8px 48px 24px; }
    .info-section { padding: 80px 48px; max-width: none; }
    .map-container iframe { height: 360px; }
    .whatsapp-fab { bottom: 32px; right: 32px; }
}

/* ─── UTILITY ──────────────────────────────────────────────────── */
.text-fire { color: var(--fire-orange); }
.text-gold  { color: var(--fire-gold);  }
.text-muted { color: var(--text-muted); }
.visually-hidden {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); border: 0;
}
