/* ==========================================================================
   DESIGN SYSTEM & TOKENS
   ========================================================================== */
:root {
    --black: #000000;
    --gray-dark: #0a0a0a;
    --gray-mid: #1a1a1a;
    --red: #ff3333;
    --white: #ffffff;
    --yellow: #ffcc00;
    
    --header-h-mobile: 100px;
    --section-pad-mobile: 60px 15px;
    --section-pad-desktop: 100px 0;
    
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Permanent Marker', cursive;
    --font-accent: 'Anton', sans-serif;
}

/* ==========================================================================
   GLOBAL RESET & STABILITY
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    background-color: var(--black);
    color: var(--white);
    font-family: var(--font-main);
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
}

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

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

/* ==========================================================================
   HEADER & NAVIGATION (Desktop First)
   ========================================================================== */
.main-header {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--red);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: 0.3s;
}

.main-header .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--red);
    box-shadow: 0 0 20px rgba(255, 51, 51, 0.3);
    margin-bottom: 15px;
}

.main-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 5vw, 3rem);
    text-align: center;
    line-height: 1;
    margin-bottom: 20px;
    text-shadow: 2px 2px 0 var(--black);
}

.main-nav {
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: var(--white);
    text-decoration: none;
    font-family: var(--font-accent);
    font-size: 0.9rem;
    letter-spacing: 2px;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: 0.3s;
}

.main-nav a:hover {
    color: var(--red);
    border-bottom-color: var(--red);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--white);
    transition: 0.3s;
}

/* ==========================================================================
   SECTIONS & COMPONENTS
   ========================================================================== */
.section {
    padding: var(--section-pad-desktop);
    position: relative;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 6vw, 4rem);
    text-align: center;
    margin-bottom: 60px;
    color: var(--white);
}

/* Background Motion */
@keyframes bg-pan-slow {
    0% { background-position: 50% 50%; }
    50% { background-position: 50% 42%; }
    100% { background-position: 50% 50%; }
}

/* Hero */
.hero-street {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.7)), url("../images/tyson-cut.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    animation: bg-pan-slow 16s ease-in-out infinite;
    text-align: center;
}

.hero-headline {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 8vw, 6rem);
    line-height: 1.1;
}

.highlight {
    background: var(--red);
    color: var(--white);
    padding: 5px 20px;
    display: inline-block;
}

/* Brands */
.brands-section {
    background: var(--gray-dark);
    padding: 60px 0;
    border-top: 1px solid #222;
}

.section-subtitle {
    text-align: center;
    font-family: var(--font-accent);
    color: #444;
    letter-spacing: 5px;
    margin-bottom: 40px;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 30px;
    align-items: center;
}

.brand-logo {
    width: 100%;
    height: 80px;
    object-fit: contain;
    background: #fff;
    padding: 10px;
    transition: 0.3s;
}

/* Services */
#servicios {
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url("../images/grafiti-main.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    animation: bg-pan-slow 20s ease-in-out infinite;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-item {
    background: rgba(0,0,0,0.7);
    padding: 40px;
    border-top: 5px solid var(--red);
    transition: 0.3s;
}

.service-name {
    font-family: var(--font-accent);
    font-size: 1.8rem;
    display: block;
    margin-bottom: 10px;
}

.service-price {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--yellow);
}

/* Gallery */
#galeria {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.9)), url("../images/mural-hiphop.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    animation: bg-pan-slow 22s ease-in-out infinite;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.photo-grid img, .video-container {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border: 3px solid #fff;
    transition: transform 0.3s ease;
}

.photo-grid img:hover, .video-container:hover {
    transform: scale(1.02);
}

.video-container {
    position: relative;
    grid-column: span 2;
    grid-row: span 2;
    overflow: hidden;
    background: #000;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    pointer-events: none;
}

.video-overlay .badge {
    background: var(--red);
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 8px;
    width: fit-content;
    font-weight: 900;
    letter-spacing: 1px;
    border-radius: 2px;
    animation: pulse-red 2s infinite;
}

.video-overlay .title {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

@keyframes pulse-red {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* Mobile adjustments for the featured video */
@media (max-width: 768px) {
    .video-container {
        grid-column: span 2;
        grid-row: span 1;
        aspect-ratio: 4/5;
    }
}

/* Horarios */
.horarios-section {
    background: var(--gray-dark);
}

.horarios-table {
    max-width: 500px;
    margin: 0 auto;
}

.table-content {
    border: 1px solid #333;
    background: #000;
}

.table-row {
    display: flex;
    justify-content: space-between;
    padding: 20px 30px;
    border-bottom: 1px solid #111;
    font-family: var(--font-accent);
}

.table-row.head {
    background: var(--red);
    font-size: 1.2rem;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #000;
}

.map-wrapper {
    filter: grayscale(1) invert(1);
    height: 450px;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    display: block;
}

.contact-info {
    padding: 60px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ig-user a {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--red);
    text-decoration: none;
    display: block;
    margin-bottom: 20px;
}

/* Footer */
.main-footer {
    padding: 60px 0;
    text-align: center;
    color: #444;
}

/* Floating */
.ig-float-simple {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
}

.ig-float-simple img {
    width: 60px;
}

/* ==========================================================================
   RESPONSIVE: TABLET & MOBILE (768px)
   ========================================================================== */
@media (max-width: 768px) {
    .section { padding: var(--section-pad-mobile); }

    /* Header Mobile Optimization */
    .main-header {
        padding: 10px 0;
        position: fixed;
        width: 100%;
    }

    .main-header .container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding: 0 15px;
    }

    .main-logo {
        width: 60px;
        height: 60px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .main-title {
        font-size: 1.2rem;
        margin-bottom: 0;
        text-align: center;
        margin: 0;
        flex: 1;
        line-height: 1.05;
    }

    .menu-toggle {
        display: flex;
        flex-shrink: 0;
    }

    .main-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #000;
        padding: 20px 0;
        border-bottom: 3px solid var(--red);
        text-align: center;
    }

    .main-nav.active { display: flex; }

    .main-nav a {
        padding: 15px 0;
        font-size: 1.2rem;
        border: none;
    }

    /* Hero Fix */
    .hero-street {
        background-attachment: scroll;
        background-size: cover;
        background-position: 50% calc(50% + var(--parallax-offset, 0px));
        animation: none;
        will-change: background-position;
        padding-top: 100px;
        min-height: 60vh;
    }

    /* Grids */
    .brands-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .services-list { grid-template-columns: 1fr; }
    .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

    /* Parallax Kill */
    #servicios, #galeria {
        background-attachment: scroll;
        background-size: cover;
        background-position: 50% calc(50% + var(--parallax-offset, 0px));
        animation: none;
        will-change: background-position;
    }

    /* Contact Mobile Layout */
    .contact-grid { grid-template-columns: 1fr; }
    .map-wrapper {
        height: 320px;
        margin: 0 auto;
        width: 100%;
        max-width: 100%;
    }
    .contact-info { padding: 40px 15px; }
    .contact-info,
    .ig-user,
    .address { text-align: center; }
    
    .ig-float-simple { bottom: 20px; right: 20px; }
    .ig-float-simple img { width: 50px; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-street,
    #servicios,
    #galeria {
        animation: none;
    }
}

/* ==========================================================================
   RESPONSIVE: SMALL MOBILE (420px)
   ========================================================================== */
@media (max-width: 420px) {
    .main-title { font-size: 0.95rem; }
    .hero-headline { font-size: 2.2rem; }
    .section-title { font-size: 1.8rem; }
    
    .brand-logo { height: 60px; }
    .table-row { padding: 15px; font-size: 0.9rem; }
    
    .ig-user a { font-size: 1.6rem; }
    .map-wrapper { height: 280px; }
}
