:root {
    --bg: #0b0b0d; /* near black */
    --bg-2: #121214; /* panel black */
    --text: #f5f5f5; /* white */
    --muted: #c7c7c7; /* muted white */
    --primary: #ef4444; /* red-500 */
    --primary-600: #dc2626; /* red-600 */
    --accent: #ffffff; /* white for contrast accents */
    --ring: #fb7185; /* rose-400 */
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto
    }
}

@font-face {
    font-family: 'Energy Station';
    src: url('../fonts/energystation-xgdya.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
    color: var(--text);
    background: radial-gradient(1200px 800px at 70% -10%, rgba(239, 68, 68, .25), transparent 60%),
    radial-gradient(900px 600px at 0% 110%, rgba(255, 255, 255, .05), transparent 60%),
    linear-gradient(180deg, #080808 0%, var(--bg) 60%);
    line-height: 1.6;
}

img, video, canvas {
    max-width: 100%;
    display: block
}

.container {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding: 0 1.25rem
}

/* Accessibility helpers */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden
}

.skip-link:focus {
    position: fixed;
    left: 1rem;
    top: 1rem;
    width: auto;
    height: auto;
    z-index: 10000;
    background: #000;
    border: 2px solid var(--ring);
    color: #fff;
    padding: .5rem .75rem;
    border-radius: .5rem
}

.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}

:focus-visible {
    outline: 3px solid var(--ring);
    outline-offset: 3px
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(185, 23, 31, 1);
    /*background: rgba(0, 0, 0, .6);*/
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, .06)
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px
}
@media (max-width: 640px) {
    .header-inner { gap: .5rem; }
}

/* Brand slogan between logo and links */
.brand-slogan {
    font-family: 'Energy Station', Impact, 'Anton', 'Arial Black', system-ui, sans-serif;
    font-size: clamp(0.9rem, 2.3vw, 1.3rem);
    letter-spacing: .5px;
    color: #ffffff;
    text-shadow: 0 1px 8px rgba(0,0,0,.25);
    margin-inline: 1rem;
    white-space: nowrap;
}
.brand-slogan .celeste { color: #75AADB; /* celeste bandera argentina */ }
.brand-slogan .blanco { color: #ffffff; }
.brand-slogan br.mobile-break { display: none; }

.brand-logo-img {
    width: 150px;
}

@media (max-width: 640px) {
    .brand-logo-img {
        width: 100px;
    }

    .brand-slogan {
        display: block;
        font-size: 10px;
        /*font-size: clamp(0.8rem, 3.2vw, 1.05rem);*/
        line-height: 1.1;
        white-space: normal; /* allow wrapping on mobile */
        text-align: center;
        max-width: 60ch; /* avoid stretching across */
    }
    /* force a predictable break before TASTE on small screens if <wbr> is present */
    .brand-slogan br.mobile-break { display: inline; }
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 800;
    letter-spacing: .3px
}

.brand-mark {
    display: inline-flex;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 2px 6px rgba(239, 68, 68, .6))
}

.brand-text {
    font-size: 1.05rem
}

.social-list {
    display: flex;
    gap: .75rem;
    list-style: none;
    margin: 0;
    padding: 0
}

.social-list a {
    --size: 38px;
    display: grid;
    place-items: center;
    width: var(--size);
    height: var(--size);
    border-radius: 999px;
    color: #0b0b0d;
    background: linear-gradient(135deg, #ffffff, #ffe4e6);
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease
}

.social-list a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .35)
}

.social-list i {
    font-size: 18px
}

/* Hero */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    overflow: hidden
}

.hero-media {
    position: absolute;
    inset: 0
}

/* Background slideshow (images under gradient and effects) */
.hero-slideshow {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.hero-slideshow .slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    animation: heroCrossfade 24s infinite ease-in-out;
    will-change: opacity, transform;
    transform: scale(1.03);
}
.hero-slideshow .slide:nth-child(1) { animation-delay: 0s; }
.hero-slideshow .slide:nth-child(2) { animation-delay: 6s; }
.hero-slideshow .slide:nth-child(3) { animation-delay: 12s; }
.hero-slideshow .slide:nth-child(4) { animation-delay: 18s; }

@keyframes heroCrossfade {
    0% { opacity: 0; }
    5% { opacity: 1; }
    25% { opacity: 1; }
    33% { opacity: 0; }
    100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slideshow .slide { animation: none; opacity: 1; }
    .hero-slideshow .slide:not(:first-child) { display: none; }
}

.hero-bg {
    position: absolute;
    inset: 0;
    /* translucent glow and vignette so images are visible underneath */
    background: radial-gradient(70% 60% at 50% 30%, rgba(239, 68, 68, .28), rgba(0, 0, 0, .55) 60%, rgba(0, 0, 0, .82) 100%);
    filter: saturate(1.05) contrast(1.05)
}

.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: .7
}

.grill-overlay {
    position: absolute;
    inset: 0
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 6rem 0
}

.hero-title {
    font-family: 'Energy Station', Impact, 'Anton', 'Arial Black', system-ui, sans-serif;
    font-size: clamp(2rem, 6vw, 3.5rem);
    line-height: 1.1;
    margin: 0 0 .75rem;
    font-weight: 400;
    letter-spacing: -.5px;
    text-shadow: 0 2px 18px rgba(239, 68, 68, .35)
}

/* Fiery text effect for the hero slogan */
.hero-title .slogan {
    display: inline-block;
    font-family: 'Energy Station', Impact, 'Anton', 'Arial Black', system-ui, sans-serif;
    color: var(--text); /* fallback */
    background: conic-gradient(from 0deg at 50% 50%,
      #fff 0%, #ffe08a 6%, #ffb703 12%, #fb8500 18%, #f97316 26%, #ef4444 35%, #b91c1c 45%, #7f1d1d 55%, #ef4444 65%, #f59e0b 75%, #fff 85%, #ffe08a 100%);
    background-size: 200% 200%;
    filter: drop-shadow(0 0 12px rgba(249, 115, 22, .25)) drop-shadow(0 2px 6px rgba(0,0,0,.4));
    animation: flameFlow 5s linear infinite, flameFlicker 1.6s ease-in-out infinite;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .hero-title .slogan {
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        color: transparent;
    }
}

@keyframes flameFlow {
    0% { background-position: 50% 0%; }
    50% { background-position: 50% 100%; }
    100% { background-position: 50% 0%; }
}
@keyframes flameFlicker {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(249, 115, 22, .18)) drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
    20% { filter: drop-shadow(0 0 16px rgba(249, 115, 22, .32)) drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
    40% { filter: drop-shadow(0 0 12px rgba(234, 88, 12, .28)) drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
    60% { filter: drop-shadow(0 0 18px rgba(255, 255, 255, .25)) drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
    80% { filter: drop-shadow(0 0 14px rgba(239, 68, 68, .30)) drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-title .slogan { animation: none; filter: none; }
}

.hero-subtitle {
    color: #e8e8e8;
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    margin: 0 0 1.5rem
}

.hero-ctas {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border-radius: .75rem;
    padding: .75rem 1.1rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer
}

.btn.primary {
    background: linear-gradient(180deg, var(--primary), var(--primary-600));
    color: #fff;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .25)
}

.btn.ghost {
    background: transparent;
    color: var(--text);
    border-color: rgba(255, 255, 255, .3)
}

.btn.small {
    padding: .55rem .9rem;
    font-size: .95rem
}

.btn:hover {
    filter: saturate(1.08)
}

/* Sections */
.section {
    padding: 4.5rem 0
}

.section-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    margin: 0 0 1.25rem;
    display: flex;
    align-items: center;
    gap: .6rem
}

/* Locales */
.locales-grid {
    display: grid;
    grid-template-columns:1fr;
    gap: 1.25rem
}

@media (min-width: 700px) {
    .locales-grid {
        grid-template-columns:repeat(2, 1fr)
    }
}

@media (min-width: 1000px) {
    .locales-grid {
        grid-template-columns:repeat(3, 1fr)
    }
}

.local-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .01));
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column
}

.local-head {
    padding: 1rem 1rem .75rem;
    border-bottom: 1px solid rgba(255, 255, 255, .06)
}

.local-head img {
    max-width: 32px;
    max-height: 32px;
    display: inline;
}

.local-name {
    margin: .2rem 0 .2rem;
    font-size: 1.1rem;

    display: inline-flex;
    align-items: center;
}

.local-address {
    margin: 0;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: .5rem
}

.map-embed {
    aspect-ratio: 16/9;
    background: #0b0b0d
}

.map-embed iframe {
    width: 100%;
    height: 100%;
    border: 0
}

.local-actions {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, .06)
}

/* Social focus */
.social-focus {
    background: linear-gradient(180deg, rgba(239, 68, 68, .09), rgba(0, 0, 0, .35))
}

.social-tagline {
    color: #e6e6e6;
    margin: 0 0 1rem
}

.social-icons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap
}

.social-icon {
    --size: 70px;
    display: grid;
    place-items: center;
    width: var(--size);
    height: var(--size);
    border-radius: 20px;
    color: #0b0b0d;
    font-size: 28px;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease
}

.social-icon:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 20px 35px rgba(0, 0, 0, .35)
}

.social-icon.fb {
    background: linear-gradient(135deg, #ffffff, #ffe4e6)
}

.social-icon.ig {
    background: conic-gradient(from 210deg, #ef4444, #f97316, #fde68a, #ffffff, #ef4444)
}

.social-icon.x {
    background: linear-gradient(135deg, #f5f5f5, #d6d6d6)
}

/* Contacto */
.contact-form {
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 1rem;
    padding: 1rem
}

.form-row {
    display: grid;
    grid-template-columns:1fr;
    gap: 1rem
}

@media (min-width: 700px) {
    .form-row {
        grid-template-columns:repeat(2, 1fr)
    }
}

.form-field.full {
    grid-column: 1/-1
}

label {
    display: block;
    font-weight: 700;
    margin: 0 0 .4rem
}

input, textarea {
    width: 100%;
    color: var(--text);
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: .6rem;
    padding: .7rem .8rem
}

input::placeholder, textarea::placeholder {
    color: #bdbdbd
}

input:focus, textarea:focus {
    border-color: var(--primary);
    outline: 2px solid transparent;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, .25)
}

.field-error {
    min-height: 1.1rem;
    margin: .35rem 0 0;
    font-size: .9rem;
    color: #fecaca
}

.form-actions {
    margin-top: .5rem
}

.form-status {
    margin-top: 1rem;
    color: var(--text)
}

input[aria-invalid="true"], textarea[aria-invalid="true"] {
    border-color: rgba(239, 68, 68, .9);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, .15)
}

/* Footer */
.site-footer {
    border-top: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .02)
}

.footer-inner {
    padding: 1.5rem 0;
    color: #d1d1d1;
    font-size: .95rem;
    text-align: center
}

/* Mobile hero emphasis */
@media (max-width: 600px) {
    .hero {
        /* Use the full viewport height including dynamic UI on mobile */
        min-height: 100svh;
        align-items: center;
    }
    .hero .container {
        /* Increase lateral spacing for hero text on small screens */
        padding-inline: clamp(1.25rem, 6vw, 2rem);
    }
    .hero-content {
        /* Use more vertical space for the text block */
        max-width: 100%;
        padding-top: calc(12vh + env(safe-area-inset-top));
        padding-bottom: calc(14vh + env(safe-area-inset-bottom));
    }
    .hero-title {
        /* Scale with viewport height so it truly grows on tall phones */
        font-size: clamp(2.1rem, 7vh, 3.3rem);
        line-height: 1.08;
        margin-bottom: 1rem;
    }
    .hero-subtitle {
        font-size: clamp(1.05rem, 2.6vh, 1.35rem);
        line-height: 1.45;
        margin-bottom: 1.25rem;
    }
    .hero-ctas {
        gap: .6rem;
    }
}

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important
    }

    .hero-canvas {
        display: none
    }
}

/* Masonry Gallery */
.masonry-section {
    padding: 3rem 0 1rem;
}

.masonry-gallery {
    column-gap: 1rem;
    /* default for small screens */
    column-count: 1;
}

@media (min-width: 520px) {
    .masonry-gallery { column-count: 2; }
}
@media (min-width: 900px) {
    .masonry-gallery { column-count: 3; }
}
@media (min-width: 1200px) {
    .masonry-gallery { column-count: 4; }
}

.masonry-item {
    display: inline-block;
    width: 100%;
    margin: 0 0 1rem;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    break-inside: avoid;
    box-shadow: 0 8px 18px rgba(0,0,0,.25);
    transform: translateZ(0);
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform .25s ease;
}

.masonry-item:focus-visible img,
.masonry-item:hover img { transform: scale(1.03); }

/* Lightbox */
.lightbox[hidden] { display: none !important; }
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.85);
    display: grid;
    place-items: center;
    z-index: 1000;
    padding: clamp(10px, 4vw, 28px);
}

.lightbox-img {
    max-width: 100%;
    max-height: 100vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,.6);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    color: #fff;
    padding: .6rem .8rem;
    border-radius: 10px;
    cursor: pointer;
    line-height: 1;
}

.lightbox-close {
    top: clamp(12px, 4vh, 28px);
    right: clamp(12px, 4vw, 28px);
    transform: none;
    font-size: 1.4rem;
}

.lightbox-prev { left: clamp(8px, 2vw, 22px); }
.lightbox-next { right: clamp(8px, 2vw, 22px); }

@media (hover: hover) {
    .lightbox-close:hover,
    .lightbox-prev:hover,
    .lightbox-next:hover {
        background: rgba(255,255,255,.2);
    }
}
