/* =======================================
   RESET Y VARIABLES GLOBALES
======================================= */
:root {
    --font-titles: 'Libre Baskerville', serif;
    --font-text: 'Mulish', sans-serif;
    
    --bg-dark: #0F172A;
    --bg-darker: #212A37;
    --text-color: #E2E8F0;
    --accent-color: #ffffff;
    --accent-blue: #0085FF; 
    
    --transition: all 0.3s ease-in-out;
}

/* HACK ANTI-FONT-BOOSTING PARA ANDROID */
html, body {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%; 
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
p, h1, h2, h3, h4, a, li, span {
    max-height: 999999px; /* Obliga a Chrome a respetar tu tamaño de letra */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-text);
    font-size: 17px;
    line-height: 28px;
    color: var(--text-color);
    background-color: var(--bg-dark);
    overflow-x: hidden;
    width: 100%;
}

h1, h2, h3, h4 {
    font-family: var(--font-titles);
    font-weight: 400;
    color: var(--accent-color);
}

a {
    text-decoration: none;
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilidades */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}
.text-center { text-align: center; }
.bg-dark { background-color: var(--bg-dark); }
.bg-darker { background-color: var(--bg-darker); }
.mt-4 { margin-top: 4rem; }

/* =======================================
   HEADER Y NAVEGACIÓN
======================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 1.5rem 0;
    background: transparent;
}

header.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo-menu {
    height: 40px;
    transition: var(--transition);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

nav a {
    font-family: var(--font-titles);
    font-size: 17px;
    text-transform: none; 
    transition: var(--transition);
    opacity: 0.8;
}

nav a:hover {
    opacity: 1;
}

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: var(--transition);
    background-color: var(--accent-color);
}

/* =======================================
   SECCIONES
======================================= */

/* 1. HERO */
.hero-section {
    height: 100vh;
    height: 100dvh; 
    /* Ruta actualizada con guiones */
    background-image: url('../img/cabecera-rodolfo-puente.webp'); 
    background-size: cover;
    background-position: top center; 
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.1); 
}
.hero-content {
    position: relative;
    z-index: 2;
}
.logo-hero {
    max-width: 300px;
}

/* Grillas Compartidas (Bio / Epic) */
.bio-section, .epic-section {
    padding: 8rem 0;
}
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 2rem;
}
.align-center {
    align-items: center;
}
.text-col p {
    margin-bottom: 1.5rem;
}
.img-col img {
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    width: 100%;
}

/* 2. BIO */
.section-tag {
    color: var(--accent-blue);
    font-family: var(--font-titles);
    font-size: 20px;
    margin-bottom: 0.5rem !important;
}
.bio-section h2 {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 2rem;
}
.bio-logo-center {
    text-align: center;
    margin-top: 6rem;
}
.bio-logo-center img {
    width: 250px;
    height: 98px;
    object-fit: contain;
    margin: 0 auto;
}

/* 3. IMAGEN FIJA */
.fixed-section {
    height: 60vh;
    background-image: url('../img/seccion-fija.webp'); 
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* 4. FRASE */
.frase-section {
    padding: 8rem 0;
}
.quote-icon {
    background-color: var(--accent-blue);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    color: white;
    font-size: 16px;
}
.tagline {
    color: var(--accent-blue);
    font-family: var(--font-titles);
    font-size: 28px;
    margin-bottom: 1.5rem;
}
.frase-section h2 {
    font-size: 40px;
    font-family: var(--font-titles);
    line-height: 1.3;
    margin: 0 0 1.5rem 0;
}
.firma {
    font-family: var(--font-titles);
    font-size: 20px;
}

/* 5. EPIC CATERING */
.epic-section h2 {
    font-size: 44px;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}
.epic-section .subtitle {
    color: var(--accent-blue);
    font-family: var(--font-titles);
    font-size: 20px;
    margin-bottom: 2rem;
}

/* 6. EXPERIENCE */
.experience-section {
    padding: 8rem 0 35vw 0; 
    background-image: url('../img/experience.webp');
    background-size: cover;
    background-position: center bottom;
    position: relative;
}
.experience-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15,23,42,0.95) 0%, rgba(15,23,42,0.6) 35%, rgba(15,23,42,0) 80%);
}
.experience-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.experience-content h2 {
    font-size: 40px;
    font-family: var(--font-titles);
    margin-bottom: 1.5rem;
}

/* 7. MARCAS */
.marcas-section {
    padding: 6rem 0 0 0;
    overflow: hidden;
}
.marcas-section h3 {
    font-family: var(--font-titles);
    font-size: 40px;
    margin-bottom: 2rem;
}
.marquee-container {
    margin-top: 2rem;
    width: 100%;
    overflow: hidden;
    padding: 3rem 0;
    background: transparent;
}
.marquee-content {
    display: flex;
    align-items: center;
    width: max-content;
    animation: marquee 30s linear infinite;
}
.marquee-content img {
    display: block;
    height: 45px;
    margin: 0 40px;
    filter: grayscale(100%) brightness(200%);
    opacity: 0.7;
    transition: var(--transition);
}
.marquee-content img:hover {
    opacity: 1;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}

/* 8. EL CLUB */
.elclub-section {
    padding: 8rem 0;
}
.logo-club {
    width: 300px;
    height: 121px;
    object-fit: contain;
    margin: 0 auto 3rem auto;
}
.img-club {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 3rem auto;
    border-radius: 4px;
    display: block;
}
.club-text {
    max-width: 800px;
    margin: 0 auto;
}
.club-text p {
    margin-bottom: 1.5rem;
}

/* 9. GALERÍA */
.galeria-section {
    padding: 0;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); 
    gap: 0; 
}
.gallery-item {
    overflow: hidden;
    display: flex;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1/1; 
}

/* 10. FOOTER */
.footer {
    padding: 5rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.logo-footer {
    width: 300px;
    height: auto;
    margin: 0 auto 2rem auto;
    display: block;
}
.social-links {
    margin-bottom: 2rem;
}
.social-links a {
    display: inline-block;
    margin: 0 10px;
    font-size: 1.5rem;
    color: var(--text-color);
    transition: var(--transition);
}
.social-links a:hover {
    color: var(--accent-blue);
    transform: translateY(-3px);
}
.copyright {
    font-size: 14px;
    opacity: 0.6;
}
.copyright a {
    text-decoration: underline;
}

/* BOTON SUBIR */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--bg-darker);
    color: var(--accent-color);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    background: var(--accent-color);
    color: var(--bg-dark);
}

/* =======================================
   MEDIA QUERIES (RESPONSIVE)
======================================= */
@media (max-width: 992px) {
    .container {
        padding: 0 1.5rem; 
    }

    .logo-menu { height: 30px; }
    .hamburger { display: block; }
    
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    nav ul {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        width: 100%;
        height: 100vh;
        height: 100dvh;
        text-align: center;
        transition: 0.4s ease-in-out;
        justify-content: center;
        align-items: center;
    }

    nav ul.active { left: 0; }
    nav ul li { margin: 1.5rem 0; }
    nav a { font-size: 24px; }

    .grid-2 {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .grid-reverse .img-col {
        order: -1;
    }

    #epic .grid-reverse .img-col { order: 2; }
    #epic .grid-reverse .text-col { order: 1; }

    .fixed-section { background-attachment: scroll; }
    
    .bio-section h2, .epic-section h2, .frase-section h2, .marcas-section h3, .experience-content h2 {
        font-size: 32px;
    }
    
    .experience-section {
        padding-bottom: 50vw; 
        background-position: 80% bottom; 
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .marquee-content img { height: 35px; margin: 0 20px; }
    
    .experience-section {
        padding-bottom: 70vw;
        background-position: 85% bottom; 
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1.5rem; 
    }
    body {
        font-size: 16px;
        line-height: 26px;
    }
    .bio-section h2, .epic-section h2, .frase-section h2, .marcas-section h3, .experience-content h2 {
        font-size: 28px;
    }
    .frase-section h2 { font-size: 26px; }
    .tagline { font-size: 22px; }
    .hero-section { background-attachment: scroll; }
}