/* ================================================
   MARIACHI INVASOR - Musisi-Inspired Theme
   ================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #FDB913;
    --primary-dark: #D4A017;
    --gold: #FDB913;
    --dark: #1a1a1a;
    --darker: #111111;
    --gray: #2a2a2a;
    --gray-mid: #444444;
    --gray-light: #999999;
    --light: #ffffff;
    --text: #333333;
    --text-light: #777777;
    --font-heading: 'Oswald', 'Segoe UI', sans-serif;
    --font-body: 'Open Sans', 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

/* ========== BUTTONS ========== */
.btn-outline {
    display: inline-block;
    padding: 14px 35px;
    border: 2px solid var(--light);
    color: var(--light);
    font-family: var(--font-heading);
    font-size: 0.85em;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    background: transparent;
    cursor: pointer;
}

.btn-outline:hover {
    background: var(--light);
    color: var(--dark);
}

.btn-outline.dark {
    border-color: var(--dark);
    color: var(--dark);
}

.btn-outline.dark:hover {
    background: var(--dark);
    color: var(--light);
}

.btn-outline.light {
    border-color: var(--light);
    color: var(--light);
}

.btn-solid {
    display: inline-block;
    padding: 16px 40px;
    background: var(--gold);
    color: var(--dark);
    border: none;
    font-family: var(--font-heading);
    font-size: 0.9em;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-solid:hover {
    background: var(--primary-dark);
    color: var(--dark);
}

/* ========== HEADER ========== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--darker);
    border-bottom: 3px solid var(--gold);
    transition: all 0.3s ease;
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo img {
    height: 45px;
    width: auto;
}

.main-nav {
    display: flex;
    gap: 0;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.85em;
    font-weight: 500;
    letter-spacing: 1.5px;
    color: var(--gray-light);
    padding: 24px 18px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gold);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-toggle {
    background: none;
    border: none;
    color: var(--gray-light);
    font-size: 1em;
    cursor: pointer;
    padding: 8px;
    transition: color 0.3s;
}

.search-toggle:hover {
    color: var(--light);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--light);
    transition: all 0.3s;
}

/* Search Overlay */
.search-overlay {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--darker);
    padding: 20px 30px;
    border-bottom: 1px solid #333;
}

.search-overlay.active {
    display: block;
}

.search-inner {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    background: var(--gray);
    border: 1px solid #444;
    color: var(--light);
    font-family: var(--font-body);
    font-size: 1em;
    outline: none;
}

.search-input:focus {
    border-color: var(--gold);
}

.search-close {
    background: none;
    border: none;
    color: var(--gray-light);
    font-size: 1.2em;
    cursor: pointer;
}

/* ========== HERO SECTION ========== */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    margin-top: 70px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
}

.hero-slide.active {
    opacity: 1;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 3em;
    cursor: pointer;
    padding: 20px;
    transition: color 0.3s;
}

.hero-arrow:hover {
    color: var(--light);
}

.hero-arrow-left { left: 20px; }
.hero-arrow-right { right: 20px; }

.hero-content {
    position: relative;
    z-index: 5;
    text-align: center;
    color: var(--light);
    max-width: 800px;
    padding: 0 40px;
    margin-bottom: 120px;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 4em;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 25px;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1em;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 35px;
    font-weight: 300;
}

/* ========== MUSIC PLAYER ========== */
.music-player {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    background: rgba(30, 30, 30, 0.92);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    padding: 12px 25px;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.player-thumb img {
    width: 55px;
    height: 55px;
    object-fit: cover;
    border-radius: 4px;
}

.player-info {
    flex: 1;
    min-width: 0;
}

.player-track-name {
    color: var(--light);
    font-size: 0.9em;
    font-weight: 600;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-dark), var(--gold));
    border-radius: 2px;
    transition: width 0.1s;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.player-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9em;
    cursor: pointer;
    padding: 8px;
    transition: color 0.3s;
}

.player-btn:hover {
    color: var(--light);
}

.player-btn-play {
    color: var(--light);
    font-size: 1.1em;
}

.player-volume {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85em;
}

.volume-bar {
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.volume-fill {
    height: 100%;
    width: 65%;
    background: linear-gradient(90deg, var(--gold), var(--gold));
    border-radius: 2px;
}

.player-time {
    display: flex;
    gap: 15px;
    color: var(--primary);
    font-size: 0.85em;
    font-weight: 600;
    font-family: var(--font-heading);
}

.player-extra {
    display: flex;
    gap: 5px;
}

/* ========== SECTION: MEMBERS ========== */
.section-members {
    background: var(--light);
    padding: 100px 0;
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 50px;
    gap: 40px;
}

.section-header-text {
    max-width: 700px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5em;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 15px;
    color: var(--dark);
    text-transform: uppercase;
}

.section-title.light {
    color: var(--light);
}

.section-title.center {
    text-align: center;
}

.section-desc {
    color: var(--text-light);
    font-size: 0.95em;
    line-height: 1.8;
}

.section-desc.light {
    color: rgba(255, 255, 255, 0.75);
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.member-card {
    background: var(--dark);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.member-card:hover {
    transform: translateY(-8px);
}

.member-card img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    filter: grayscale(30%);
    transition: filter 0.3s;
}

.member-card:hover img {
    filter: grayscale(0%);
}

.member-info {
    padding: 20px;
    background: var(--light);
}

.member-info h4 {
    font-family: var(--font-heading);
    font-size: 1.1em;
    font-weight: 700;
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 3px;
}

.member-info .instrument {
    color: var(--text-light);
    font-size: 0.85em;
    margin-bottom: 0;
}

.member-card-bar {
    height: 4px;
    background: var(--gold);
}

.member-card:nth-child(2) .member-card-bar { background: var(--primary-dark); }
.member-card:nth-child(3) .member-card-bar { background: var(--light); }
.member-card:nth-child(4) .member-card-bar { background: var(--gray-light); }
.member-card:nth-child(5) .member-card-bar { background: var(--gold); }
.member-card:nth-child(6) .member-card-bar { background: var(--primary-dark); }

/* ========== SECTION: SERVICES (Discography-style) ========== */
.section-services {
    background: var(--gray);
    position: relative;
}

.services-inner {
    display: flex;
    min-height: 500px;
}

.services-left {
    flex: 0 0 30%;
    background: var(--dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 50px;
}

.services-left .section-title {
    color: var(--light);
    font-size: 3em;
    line-height: 1.1;
    margin-bottom: 30px;
}

.services-carousel {
    flex: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.services-track {
    display: flex;
    gap: 20px;
    padding: 30px 30px 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--gold) rgba(255,255,255,0.08);
    flex: 1;
    align-items: stretch;
}

.services-track::-webkit-scrollbar {
    height: 10px;
}

.services-track::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.08);
}

.services-track::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 0;
}

.services-track::-webkit-scrollbar-button {
    display: none;
}

.service-slide {
    flex: 0 0 320px;
    height: 400px;
}

.service-slide-inner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
    padding: 40px 30px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.service-slide-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.15) 100%);
    z-index: 1;
}

.service-icon,
.service-slide-inner h3,
.service-slide-inner p {
    position: relative;
    z-index: 2;
}

.service-slide-inner:hover {
    transform: scale(1.03);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.service-icon {
    font-size: 2.5em;
    color: var(--gold);
    margin-bottom: 25px;
}

.service-slide-inner h3 {
    font-family: var(--font-heading);
    color: var(--light);
    font-size: 1.4em;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.service-slide-inner p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9em;
    line-height: 1.6;
}

.services-color-bar {
    display: none;
}

.color-segment {
    display: none;
}

/* ========== SECTION: EVENTS ========== */
.section-events {
    position: relative;
    padding: 100px 0;
    min-height: 600px;
}

.events-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.events-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.events-content {
    position: relative;
    z-index: 2;
}

.events-table {
    margin-top: 40px;
}

.events-table-header {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1.5fr 1fr;
    gap: 20px;
    padding: 18px 25px;
    background: rgba(255, 255, 255, 0.12);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85em;
    letter-spacing: 2px;
    color: var(--light);
    text-transform: uppercase;
}

.event-row {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1.5fr 1fr;
    gap: 20px;
    padding: 18px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95em;
    align-items: center;
    transition: background 0.3s;
}

.event-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.status {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85em;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.status.available { color: #10b981; }
.status.sold,
.status.expired { color: var(--primary); }

/* ========== SECTION: VIDEO ========== */
.section-video {
    display: flex;
    min-height: 550px;
}

.video-left {
    flex: 0 0 65%;
    position: relative;
    overflow: hidden;
    background: var(--dark);
}

.video-player-wrapper {
    width: 100%;
    height: 100%;
    min-height: 450px;
    position: relative;
    overflow: hidden;
    background: #000;
}

.video-player-wrapper iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%) scale(1.01);
    border: 0;
    display: block;
}

/* Force 16:9 YouTube iframe to cover entire frame */
@media (min-aspect-ratio: 16/9) {
    .video-player-wrapper iframe {
        height: 56.25vw;
    }
}
@media (max-aspect-ratio: 16/9) {
    .video-player-wrapper iframe {
        width: 177.78%;
        left: -38.89%;
        transform: translateY(-50%) scale(1.01);
        top: 50%;
    }
}

.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: background 0.3s;
}

.video-play-overlay:hover {
    background: rgba(0, 0, 0, 0.15);
}

.video-play-overlay.hidden {
    display: none;
}

.play-circle {
    width: 80px;
    height: 80px;
    border: 3px solid var(--light);
    border-radius: 50%;
    background: none;
    color: var(--light);
    font-size: 1.5em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.play-circle:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
}

.play-circle i {
    margin-left: 4px;
}

.video-right {
    flex: 0 0 35%;
    background: linear-gradient(135deg, #D4A017 0%, #FDB913 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 50px;
}

/* Gold filter overlay on video */
.video-left::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(253, 185, 19, 0.25) 0%, rgba(212, 160, 23, 0.35) 100%);
    pointer-events: none;
    z-index: 2;
    mix-blend-mode: multiply;
}

.video-right .section-title {
    color: var(--dark);
    font-size: 2.5em;
    line-height: 1.1;
    margin-bottom: 20px;
}

.video-right p {
    color: rgba(0, 0, 0, 0.75);
    font-size: 0.95em;
    line-height: 1.8;
    margin-bottom: 30px;
}

.video-right .btn-outline.light {
    border-color: var(--dark);
    color: var(--dark);
}

.video-right .btn-outline.light:hover {
    background: var(--dark);
    color: var(--gold);
}

/* ========== SECTION: TESTIMONIALS ========== */
.section-testimonials {
    background: var(--light);
    padding: 100px 0;
}

.section-testimonials .section-title {
    margin-bottom: 50px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: #f8f8f8;
    padding: 35px;
    border-left: 4px solid var(--gold);
    transition: transform 0.3s, box-shadow 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-stars {
    color: var(--gold);
    margin-bottom: 15px;
    font-size: 0.9em;
    letter-spacing: 2px;
}

.testimonial-text {
    color: var(--text-light);
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 0.95em;
}

.testimonial-author {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 3px;
}

.testimonial-type {
    font-size: 0.8em;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* ========== SECTION: STATS ========== */
.section-stats {
    background: var(--dark);
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3.5em;
    font-weight: 700;
    color: var(--gold);
    display: inline;
}

.stat-symbol {
    font-family: var(--font-heading);
    font-size: 1.8em;
    font-weight: 700;
    color: var(--gold);
}

.stat-label {
    color: var(--gray-light);
    font-size: 0.85em;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 10px;
    font-family: var(--font-heading);
}

/* ========== SECTION: CONTACT ========== */
.section-contact {
    background: var(--darker);
    padding: 100px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info-side .section-title {
    color: var(--light);
    margin-bottom: 15px;
}

.contact-info-side .section-desc {
    color: var(--gray-light);
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-detail-item i {
    width: 45px;
    height: 45px;
    background: var(--gold);
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.9em;
    flex-shrink: 0;
}

.contact-detail-item h4 {
    font-family: var(--font-heading);
    color: var(--primary);
    font-size: 0.85em;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.contact-detail-item p {
    color: var(--gray-light);
    font-size: 0.9em;
}

.contact-social {
    display: flex;
    gap: 12px;
}

.contact-social a {
    width: 42px;
    height: 42px;
    background: var(--gray);
    color: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.95em;
    transition: all 0.3s;
}

.contact-social a:hover {
    background: var(--gold);
    color: var(--dark);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 14px 18px;
    background: var(--gray);
    border: 1px solid #444;
    color: var(--light);
    font-family: var(--font-body);
    font-size: 0.9em;
    outline: none;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--gold);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #666;
}

/* ========== FOOTER ========== */
.site-footer {
    background: var(--darker);
    padding: 60px 0 0;
    border-top: 1px solid #222;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 15px;
}

.footer-brand p {
    color: var(--gray-light);
    font-size: 0.88em;
    line-height: 1.7;
}

.site-footer h4 {
    font-family: var(--font-heading);
    color: var(--gold);
    font-size: 0.9em;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.site-footer ul {
    list-style: none;
}

.site-footer li {
    margin-bottom: 10px;
}

.site-footer li a {
    color: var(--gray-light);
    font-size: 0.88em;
    transition: color 0.3s;
}

.site-footer li a:hover {
    color: var(--light);
}

.footer-contact p {
    color: var(--gray-light);
    font-size: 0.88em;
    margin-bottom: 8px;
}

.footer-contact i {
    color: var(--gold);
    margin-right: 8px;
    width: 16px;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #222;
    color: #555;
    font-size: 0.85em;
}

/* ========== WHATSAPP FAB ========== */
.whatsapp-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.6em;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: all 0.3s;
}

.whatsapp-fab:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-content h1 { animation: fadeInUp 0.8s ease-out; }
.hero-content p { animation: fadeInUp 0.8s ease-out 0.2s both; }
.hero-content .btn-outline { animation: fadeInUp 0.8s ease-out 0.4s both; }

/* ========== RESPONSIVE - DESKTOP ========== */
@media (max-width: 1024px) {
    .members-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .services-left { flex: 0 0 35%; padding: 40px 30px; }
    .service-slide { flex: 0 0 280px; height: 350px; }
}

/* ========== RESPONSIVE - TABLET ========== */
@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .main-nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--darker);
        flex-direction: column;
        border-top: 1px solid #333;
        z-index: 999;
    }
    .main-nav.active { display: flex; }
    .nav-link {
        padding: 15px 30px;
        border-bottom: 1px solid #222;
        color: #fff;
    }
    .nav-link.active::after { display: none; }
    .nav-link:hover { background: #222; color: var(--primary); }

    .hero-content h1 { font-size: 2.5em; }
    .hero-content p { font-size: 0.9em; }
    .hero-arrow { font-size: 2em; padding: 10px; }

    .music-player {
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px 15px;
    }
    .player-volume, .player-extra, .player-time { display: none; }

    .section-header-row { flex-direction: column; gap: 20px; }
    .members-grid { grid-template-columns: 1fr; }
    .members-arrow { display: none !important; }

    .services-inner { flex-direction: column; }
    .services-left { flex: none; padding: 40px 30px; }
    .services-left .section-title { font-size: 2em; }
    .services-track { gap: 15px; }
    .service-slide { flex: 0 0 280px; }

    .events-table-header, .event-row {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 10px;
        font-size: 0.8em;
    }

    .section-video { flex-direction: column; }
    .video-left { flex: none; min-height: 300px; }
    .video-right { flex: none; padding: 40px 30px; }
    .video-right .section-title { font-size: 1.8em; }

    .testimonials-grid { grid-template-columns: 1fr; }

    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .form-row { grid-template-columns: 1fr; }
    input[type="text"], input[type="email"], input[type="tel"], textarea, select {
        font-size: 16px;
        background: var(--gray) !important;
        color: var(--light) !important;
        border-color: #555 !important;
    }

    .stats-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    .stat-number { font-size: 2.5em; }

    .footer-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 1.8em; }

    .container { padding: 0 15px; }
    .header-inner { padding: 0 15px; height: 65px; }
    .logo img { height: 40px; }
}

/* ========== RESPONSIVE - MOBILE ========== */
@media (max-width: 480px) {
    .hero-section { min-height: 600px; }
    .hero-content h1 { font-size: 1.4em; letter-spacing: 0; }
    .hero-content p { font-size: 0.85em; }
    .hero-content { margin-bottom: 80px; }
    .header-inner { padding: 0 10px; height: 60px; }
    .container { padding: 0 10px; }
    .logo img { height: 35px; }

    .stats-grid { grid-template-columns: 1fr; }
    .stat-number { font-size: 1.5em; }
    .stat-label { font-size: 0.75em; }

    .service-slide { flex: 0 0 calc(100vw - 30px); height: 300px; }
    .services-left .section-title { font-size: 1.4em; }

    .section-title { font-size: 1.4em; }
    .event-row { font-size: 0.75em; padding: 8px; }

    .btn-solid, .btn-outline { padding: 10px 14px; font-size: 0.8em; }
}

/* ========== SECTION: ABOUT / NOSOTROS ========== */
.section-about {
    background: var(--gray);
    padding: 100px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/5;
    background: #0a0a0a;
}

.about-image::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 3px solid var(--gold);
    transform: translate(15px, 15px);
    pointer-events: none;
    z-index: -1;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
    transition: filter 0.4s;
}

.about-image:hover img {
    filter: grayscale(0%);
}

.about-eyebrow {
    display: inline-block;
    color: var(--gold);
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 3px;
    font-size: 0.85em;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.about-text {
    color: var(--text-light);
    font-size: 1.05em;
    line-height: 1.8;
    margin: 20px 0 35px;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.about-feature {
    text-align: left;
}

.about-feature-icon {
    width: 55px;
    height: 55px;
    background: var(--gold);
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4em;
    margin-bottom: 15px;
    border-radius: 50%;
}

.about-feature h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--dark);
    font-size: 1em;
    margin-bottom: 8px;
}

.about-feature p {
    color: var(--text-light);
    font-size: 0.9em;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-features { grid-template-columns: 1fr; gap: 20px; }
}

/* ========== MEMBERS CAROUSEL (5+) ========== */
.members-carousel-wrap {
    position: relative;
}

.members-arrow {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--dark);
    border: none;
    cursor: pointer;
    z-index: 5;
    font-size: 1em;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.members-arrow:hover {
    background: var(--dark);
    color: var(--gold);
}

.members-arrow-left { left: -15px; }
.members-arrow-right { right: -15px; }

.members-grid.carousel-mode {
    display: flex;
    overflow-x: auto;
    gap: 25px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 10px;
}

.members-grid.carousel-mode::-webkit-scrollbar { display: none; }

.members-grid.carousel-mode .member-card {
    flex: 0 0 calc(25% - 19px);
    scroll-snap-align: start;
    min-width: 250px;
}

.members-carousel-wrap.has-carousel .members-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 900px) {
    .members-grid.carousel-mode .member-card {
        flex: 0 0 calc(50% - 13px);
    }
    .members-arrow { display: none !important; }
}

@media (max-width: 600px) {
    .members-grid.carousel-mode .member-card {
        flex: 0 0 85%;
    }
}

/* ========== SECTION: PHOTO GALLERY ========== */
.section-photo-gallery {
    display: flex;
    min-height: 550px;
    background: var(--dark);
}

.photo-gallery-left {
    flex: 0 0 35%;
    padding: 80px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--dark);
    position: relative;
}

.photo-gallery-left::before {
    content: "";
    position: absolute;
    top: 50px;
    left: 50px;
    width: 40px;
    height: 3px;
    background: var(--gold);
}

.photo-gallery-left .section-title {
    color: var(--light);
    margin-top: 30px;
    margin-bottom: 20px;
}

.photo-gallery-left p {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 1em;
}

.photo-gallery-left .btn-outline.light {
    align-self: flex-start;
}

.photo-gallery-right {
    flex: 0 0 65%;
    position: relative;
    overflow: hidden;
    background: #0a0a0a;
}

.photo-slider {
    display: flex;
    height: 100%;
    min-height: 550px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.photo-slider::-webkit-scrollbar { display: none; }

.photo-slide {
    flex: 0 0 50%;
    height: 100%;
    scroll-snap-align: start;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.photo-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.3s;
    filter: grayscale(15%);
}

.photo-slide:hover img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.photo-slide::after {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    color: white;
    font-size: 1.6em;
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
    z-index: 2;
}

.photo-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 50%, rgba(0,0,0,0.6) 100%);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
}

.photo-slide:hover::after,
.photo-slide:hover::before {
    opacity: 1;
}

.photo-slide:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--dark);
    border: none;
    cursor: pointer;
    z-index: 5;
    font-size: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.gallery-arrow:hover {
    background: var(--light);
    color: var(--dark);
    transform: translateY(-50%) scale(1.1);
}

.gallery-arrow-left { left: 20px; }
.gallery-arrow-right { right: 20px; }

@media (max-width: 900px) {
    .section-photo-gallery { flex-direction: column; }
    .photo-gallery-left { flex: none; padding: 60px 30px; }
    .photo-gallery-right { flex: none; min-height: 400px; }
    .photo-slider { min-height: 400px; }
    .photo-slide { flex: 0 0 75%; }
}

@media (max-width: 600px) {
    .photo-slide { flex: 0 0 85%; }
    .gallery-arrow { width: 40px; height: 40px; }
    .gallery-arrow-left { left: 10px; }
    .gallery-arrow-right { right: 10px; }
}

/* LIGHTBOX */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.lightbox.active { display: flex; }

.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    box-shadow: 0 10px 50px rgba(0,0,0,0.8);
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    background: rgba(255,255,255,0.1);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.3em;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover,
.lightbox-nav:hover {
    background: var(--gold);
    color: var(--dark);
}

.lightbox-close {
    top: 25px;
    right: 25px;
}

.lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 55px;
    height: 55px;
}

.lightbox-prev { left: 25px; }
.lightbox-next { right: 25px; }

@media (max-width: 600px) {
    .lightbox-nav { width: 42px; height: 42px; }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
}

/* ========== CORRECCIONES FINALES MOBILE ========== */

@media (max-width: 768px) {
    /* Espaciado general */
    body { padding-top: 0; }
    
    /* Hero - menos alto en mobile */
    .hero-section {
        height: 60vh;
        min-height: 500px;
        margin-top: 70px;
        padding-bottom: 80px;
    }
    
    .hero-content {
        padding: 20px 15px;
        margin-bottom: 60px;
    }
    
    .hero-content h1 {
        font-size: 1.6em;
        margin-bottom: 12px;
        letter-spacing: 1px;
    }
    
    .hero-content p {
        font-size: 0.85em;
        margin-bottom: 20px;
    }
    
    .hero-arrow { display: none; }
    
    /* Music player - más compacto */
    .music-player {
        position: static;
        width: 100%;
        padding: 8px 12px;
        gap: 8px;
        background: rgba(0, 0, 0, 0.95);
        margin-top: 20px;
    }
    
    .player-thumb img {
        width: 45px;
        height: 45px;
    }
    
    .player-info { min-width: 0; }
    .player-track-name { font-size: 0.75em; margin-bottom: 3px; }
    .progress-bar { height: 3px; }
    .player-controls { gap: 4px; }
    .player-btn { padding: 4px; font-size: 0.8em; }
    .player-volume, .player-extra, .player-time { display: none; }
    
    /* Secciones - padding reducido */
    .section-members,
    .section-testimonials,
    .section-stats,
    .section-contact,
    .section-about,
    .section-services,
    .section-events,
    .section-video,
    .section-photo-gallery {
        padding: 40px 0;
    }
    
    /* Títulos */
    .section-title {
        font-size: 1.6em;
        margin-bottom: 20px;
        letter-spacing: 1px;
    }
    
    .section-title.light { color: #fff; }
    .section-title.center { text-align: center; }
    
    .section-desc {
        font-size: 0.85em;
        line-height: 1.6;
    }
    
    /* Container padding */
    .container { padding: 0 12px; }
    .header-inner { padding: 0 12px; }
    
    /* Cards y grids */
    .members-grid { grid-template-columns: 1fr; gap: 15px; }
    .testimonials-grid { grid-template-columns: 1fr; gap: 15px; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .about-grid { grid-template-columns: 1fr; gap: 20px; }
    .about-features { grid-template-columns: 1fr; gap: 15px; }
    .footer-grid { grid-template-columns: 1fr; gap: 15px; }
    .contact-grid { grid-template-columns: 1fr; gap: 20px; }
    
    /* Gallery específico */
    .section-photo-gallery { flex-direction: column; gap: 0; }
    .photo-gallery-left { flex: none; padding: 30px 15px; }
    .photo-gallery-right { flex: none; min-height: 80vh; width: 100%; }
    .photo-slider { min-height: 80vh; }
    .photo-slide { flex: 0 0 100%; height: 100%; }
    
    .photo-gallery-left::before { display: none; }
    .photo-gallery-left .section-title { margin-top: 0; margin-bottom: 15px; }
    .photo-gallery-left p { font-size: 0.85em; margin-bottom: 15px; }
    
    /* Video section */
    .section-video { flex-direction: column; }
    .video-left { flex: none; min-height: 250px; }
    .video-right { flex: none; padding: 30px 15px; }
    .video-right .section-title { font-size: 1.4em; margin-bottom: 15px; }
    
    /* Stats específico */
    .stat-item { padding: 10px; }
    .stat-number { font-size: 1.8em; }
    .stat-label { font-size: 0.75em; margin-top: 5px; }
    
    /* Servicios */
    .services-inner { flex-direction: column; }
    .services-left { flex: none; padding: 30px 15px; }
    .services-left .section-title { font-size: 1.6em; margin-bottom: 15px; }
    .services-carousel { flex: none; }
    .services-track { gap: 12px; padding: 15px 0; }
    .service-slide { flex: 0 0 calc(100vw - 40px); height: 280px; }
    .service-slide-inner { padding: 20px; }
    .service-icon { font-size: 1.8em; margin-bottom: 12px; }
    .service-slide-inner h3 { font-size: 1em; margin-bottom: 8px; }
    .service-slide-inner p { font-size: 0.8em; }
    
    /* Eventos */
    .section-events { padding: 40px 0; min-height: auto; }
    .events-content { padding: 0 15px; }
    .events-table { margin-top: 20px; }
    .events-table-header,
    .event-row {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 12px;
        font-size: 0.8em;
    }
    
    .events-table-header {
        background: rgba(255, 255, 255, 0.1);
        padding: 10px 12px;
    }
    
    .event-row {
        background: rgba(253, 185, 19, 0.05);
        border: 1px solid #FDB913;
        margin-bottom: 8px;
    }
    
    /* Contacto */
    .contact-grid { grid-template-columns: 1fr; gap: 25px; }
    .contact-form { width: 100%; }
    .contact-info-side { width: 100%; }
    .form-row { grid-template-columns: 1fr; gap: 10px; }
    
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea,
    select {
        width: 100%;
        font-size: 16px;
        padding: 10px;
        background: var(--gray) !important;
        color: var(--light) !important;
        border-color: #555 !important;
    }
    
    .contact-form button {
        width: 100%;
        min-height: 44px;
        padding: 12px;
    }
    
    /* About section */
    .about-grid { grid-template-columns: 1fr; }
    .about-image { aspect-ratio: 3/4; }
    .about-image::after { display: none; }
    .about-text { font-size: 0.9em; margin: 15px 0 20px; }
    .about-features { grid-template-columns: 1fr; }
    .about-feature-icon { width: 45px; height: 45px; font-size: 1.1em; }
    .about-feature h4 { font-size: 0.9em; }
    .about-feature p { font-size: 0.8em; }
    
    /* Member cards */
    .member-card img { height: 200px; }
    .member-info { padding: 12px; }
    .member-info h4 { font-size: 0.9em; }
    
    /* Testimonios */
    .testimonial-card {
        background: #222;
        color: #fff;
        padding: 20px;
        border-left: 3px solid var(--primary);
    }
    
    .testimonial-stars { font-size: 0.8em; }
    .testimonial-text { font-size: 0.85em; }
    .testimonial-author { font-size: 0.8em; }
    .testimonial-type { font-size: 0.7em; }
    
    /* Footer */
    .site-footer { padding: 30px 0 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 20px; }
    .footer-logo { height: 45px; }
    .site-footer h4 { font-size: 0.85em; margin-bottom: 12px; }
    .site-footer ul li { margin-bottom: 6px; }
    .site-footer li a, .footer-contact p { font-size: 0.8em; }
    .footer-bottom { padding: 15px 0; font-size: 0.75em; }
    
    /* Lightbox mobile */
    .lightbox { padding: 20px; }
    .lightbox-nav { width: 45px; height: 45px; font-size: 1.1em; }
    .lightbox-close { width: 45px; height: 45px; top: 15px; right: 15px; }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    
    /* WhatsApp FAB */
    .whatsapp-fab { width: 55px; height: 55px; font-size: 1.5em; bottom: 20px; right: 20px; }
    
    /* Menu toggle visible */
    .menu-toggle { display: flex; }
    
    /* Search overlay */
    .search-overlay.active {
        padding: 12px 15px;
    }
    
    .search-inner {
        max-width: 100%;
    }
    
    .search-input {
        font-size: 16px;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    /* Extra small - más agresivo */
    
    .hero-section {
        height: 50vh;
        min-height: 400px;
        padding-bottom: 60px;
    }
    
    .hero-content h1 {
        font-size: 1.3em;
        margin-bottom: 8px;
    }
    
    .hero-content p {
        font-size: 0.8em;
        margin-bottom: 15px;
    }
    
    .section-title { font-size: 1.3em; margin-bottom: 15px; }
    .section-desc { font-size: 0.8em; }
    
    .container { padding: 0 10px; }
    .header-inner { padding: 0 10px; height: 60px; }
    .logo img { height: 35px; }
    
    .stats-grid { grid-template-columns: 1fr; gap: 10px; }
    .stat-number { font-size: 1.4em; }
    .stat-label { font-size: 0.7em; }
    
    .service-slide { flex: 0 0 calc(100vw - 30px); height: 250px; }
    .service-icon { font-size: 1.5em; margin-bottom: 10px; }
    .service-slide-inner h3 { font-size: 0.9em; }
    .service-slide-inner p { font-size: 0.75em; }
    
    .photo-slide { flex: 0 0 calc(100vw - 20px); height: 70vh; }
    .photo-gallery-left { padding: 20px 10px; }
    .photo-gallery-left .section-title { font-size: 1.2em; }
    
    .member-card img { height: 180px; }
    
    .contact-form button { padding: 10px; }
    
    input, textarea, select { font-size: 16px; padding: 8px; }
    
    .whatsapp-fab { width: 50px; height: 50px; font-size: 1.3em; }
    
    .btn-solid, .btn-outline { padding: 8px 12px; font-size: 0.75em; }
}

/* ========== GALLERY FULL SCREEN MOBILE ========== */

@media (max-width: 768px) {
    /* Servicios - full width cards */
    .services-track {
        gap: 0;
        padding: 15px 0;
    }
    
    .service-slide {
        flex: 0 0 100vw;
        height: 70vh;
        margin: 0;
        padding: 0;
    }
    
    .service-slide-inner {
        width: 100vw;
        height: 100%;
        padding: 30px 15px;
        border-radius: 0;
        border: none;
    }
}

@media (max-width: 480px) {
    .service-slide {
        flex: 0 0 100vw;
        height: 65vh;
    }
}