@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=Outfit:wght@700;900&family=Allura&family=Playfair+Display:wght@700;900&display=swap');

:root {
    --bg-color: #080808;
    --surface-color: #121212;
    --surface-accent: #1a1a1a;
    --accent-color: #0ea5e9; /* Sky Blue */
    --accent-light: #7dd3fc;
    --accent-rust: #0284c7;
    --accent-platinum: #f1f5f9; /* Platinum / Off-White */
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --border-color: rgba(255, 255, 255, 0.1);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3 {
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

/* --- Layout Components --- */

.section {
    padding: 100px 20px;
    max-width: var(--container-width);
    margin: 0 auto;
}

.section-title {
    font-size: 3.5rem;
    margin-bottom: 60px;
    text-align: center;
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent-color) 50%, var(--accent-rust) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 2px;
}

/* --- Hero Section --- */

.hero {
    min-height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px 20px 40px 20px;
    overflow: hidden;
    transition: opacity 2s ease, visibility 2s ease;
}

.hero.hero-fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img, .hero-video-container {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7) saturate(1.1);
}

.hero-video-container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%; /* Large enough to cover rotation or scaling */
    height: 200%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.hero-video-container iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.hero-video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 30%, rgba(0,0,0,0.5) 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 0 20px;
}

/* Play Button */
.btn-play-hero {
    margin-top: 15px;
    padding: 20px 50px;
    font-size: 1.5rem;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 0 30px rgba(14, 165, 233, 0.4);
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 15px;
}

.btn-play-hero:hover {
    transform: scale(1.05) translateY(-5px);
    background: var(--accent-light);
    box-shadow: 0 0 50px rgba(14, 165, 233, 0.6);
}

.btn-play-hero.hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
}

.hero-content {
    transition: var(--transition-smooth);
}

.hero-content.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    pointer-events: none;
}

.hero-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
    width: 100%;
}

.hero-name {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(3rem, 10vw, 6.5rem);
    font-weight: 900;
    line-height: 1;
    color: var(--accent-platinum);
    text-align: left;
    text-transform: uppercase;
    letter-spacing: -2px;
    margin-bottom: 5px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-tagline {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--accent-color);
    text-align: right;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: -10px;
}

.hero-subtitle {
    font-family: 'Allura', cursive;
    font-size: clamp(1.8rem, 5vw, 3rem);
    color: var(--accent-platinum);
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(14, 165, 233, 0.4);
    opacity: 0.95;
}

.hero-socials {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.hero-socials a {
    color: white;
    font-size: 2rem;
    transition: var(--transition-smooth);
    opacity: 0.8;
}

.hero-socials a:hover {
    opacity: 1;
    transform: translateY(-5px);
    background: linear-gradient(135deg, var(--accent-light), var(--accent-wine));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    display: inline-block;
    padding: 18px 40px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    text-transform: uppercase;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.4);
}

.btn-primary:hover {
    background-color: var(--accent-rust);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.6);
}

.btn-hero-secondary {
    background: transparent;
    border: 2px solid var(--accent-light);
    color: var(--accent-light);
    border-radius: 50px !important;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
    box-shadow: 0 0 15px rgba(125, 211, 252, 0.1);
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.btn-hero-secondary:hover {
    background: var(--accent-light);
    color: var(--bg-color);
    box-shadow: 0 0 30px rgba(125, 211, 252, 0.4);
    transform: scale(1.05) translateY(-3px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-platinum);
    border: 2px solid var(--accent-platinum);
}

.btn-secondary:hover {
    background-color: var(--accent-platinum);
    color: var(--bg-color);
    transform: translateY(-5px);
}

.btn-green {
    background-color: #10b981 !important; /* Vivid Emerald Green */
    color: white !important;
    border: none;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-green:hover {
    background-color: #059669 !important;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.6);
}

/* --- Music Section --- */

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

@media (max-width: 768px) {
    .music-grid {
        grid-template-columns: 1fr;
    }
}

.video-card {
    background: var(--surface-color);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.video-card:hover {
    border-color: var(--accent-rust);
    transform: scale(1.02);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 20px;
}

.video-info h3 {
    font-size: 1.1rem;
    color: var(--accent-platinum);
    font-weight: 500;
    letter-spacing: 1px;
}

/* --- Booking Section --- */

#booking {
    background: linear-gradient(rgba(8, 8, 8, 0.85), rgba(8, 8, 8, 0.95)), url('assets/img/accordion.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border-radius: 40px 40px 0 0;
}

.booking-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 80px;
}

.tel-highlight {
    text-align: center;
}

.tel-label {
    display: block;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 4px;
}

.tel-number {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(3rem, 15vw, 7rem);
    background: linear-gradient(to right, var(--accent-light), var(--accent-color), var(--accent-platinum));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    font-weight: 800;
    line-height: 1;
    transition: var(--transition-smooth);
}

.tel-number:hover {
    color: white;
}

.form-wrapper {
    width: 100%;
    max-width: 600px;
    background: var(--surface-color);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    padding: 14px;
    border-radius: 8px;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-rust);
    background: rgba(255,255,255,0.06);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    margin-top: 10px;
}

/* --- Footer --- */

footer {
    padding: 60px 20px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.footer-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: block;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 30px 0;
}

.footer-socials a {
    color: var(--text-secondary);
    font-size: 2.5rem;
    transition: var(--transition-smooth);
}

.footer-socials a:hover {
    color: var(--accent-light);
    transform: scale(1.2);
    filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.4));
}

/* --- Animations --- */

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

.reveal {
    animation: fadeInUp 1s ease forwards;
}

/* --- Gallery Section --- */

#galeria {
    background: radial-gradient(circle at bottom right, rgba(21, 128, 61, 0.05) 0%, var(--bg-color) 70%);
}

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

.gallery-item {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery-item:hover {
    border-color: var(--accent-rust);
    box-shadow: 0 10px 40px rgba(14, 165, 233, 0.3);
    z-index: 10;
}

.gallery-item:hover img {
    transform: scale(1.08); /* Smoother zoom */
    filter: brightness(1.1);
}

/* --- Staff Section (Collage & Featured) --- */

#banda {
    background: linear-gradient(135deg, var(--bg-color) 0%, rgba(14, 165, 233, 0.05) 50%, var(--bg-color) 100%);
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
}

.staff-container {
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Maite Featured Card */
.staff-featured {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto 60px auto;
    padding: 0 20px;
    display: flex;
    justify-content: center; /* Center the vertical card */
}

.staff-featured .flip-card {
    height: 500px; /* Reliable desktop height */
    width: 400px; /* Calculated 4:5 ratio */
    margin: 0 auto 30px auto;
}

.staff-featured .flip-card-front img {
    object-position: center 10%; /* Precisely framed for the hat and face */
}

/* Mobile responsive for featured card */
@media (max-width: 768px) {
    .staff-featured .flip-card {
        width: 100%;
        max-width: 480px;
        height: auto;
        aspect-ratio: 4 / 5;
    }
}

/* Musicians Collage 2x2 */
.staff-collage {
    display: grid;
    grid-template-columns: repeat(2, auto);
    justify-content: center;
    width: 100%;
    gap: 30px; /* Added gap to match card style */
    padding: 0 20px 60px 20px;
}

.staff-collage .flip-card {
    height: 500px;
    width: 400px;
    border-radius: 0;
    border: none;
}

.staff-collage .flip-card-front, 
.staff-collage .flip-card-back {
    /* Borders restored via base flip-card style */
}

.staff-collage .flip-card-inner {
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.flip-card {
    background-color: transparent;
    width: 100%;
    aspect-ratio: 3 / 4; /* Standardized portrait ratio */
    perspective: 1000px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card:active .flip-card-inner,
.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 0; /* Unified seamless aesthetic */
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.flip-card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flip-card-back {
    background-color: var(--surface-accent);
    color: white;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-color: var(--accent-rust);
}

.flip-card-back h3 {
    color: var(--accent-color);
    font-size: clamp(1.2rem, 3vw, 2rem);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.flip-card-back p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.flip-card.playing .flip-card-inner {
    box-shadow: 0 0 30px var(--accent-color);
    animation: pulse-glow 2s infinite;
}

.flip-card.playing::after {
    content: "\f028"; /* Font Awesome Speaker icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    font-size: 1.2rem;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    animation: fadeInUp 0.3s ease forwards;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 10px var(--accent-color); }
    50% { box-shadow: 0 0 40px var(--accent-rust); }
    100% { box-shadow: 0 0 10px var(--accent-color); }
}

/* Mobile Adjustments for Collage */
@media (max-width: 1024px) {
    .staff-collage {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .staff-collage .flip-card {
        width: 100%;
        max-width: 480px;
        height: auto;
        aspect-ratio: 4 / 5;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .staff-featured .flip-card {
        height: auto;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--surface-accent);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-color);
}

/* --- Lightbox --- */

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.9);
    transition: var(--transition-smooth);
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
}

/* Close Button */
.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    z-index: 1001;
    transition: var(--transition-smooth);
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--accent-light);
    transform: rotate(90deg);
}

/* Navigation Buttons */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 1100;
    transition: var(--transition-smooth);
}

.lightbox-nav:hover {
    background: var(--accent-color);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.4);
}

.lightbox-prev {
    left: 40px;
}

.lightbox-next {
    right: 40px;
}

/* Mobile Adjustments for Lightbox */
@media (max-width: 768px) {
    .lightbox-nav {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-close {
        top: 20px;
        right: 20px;
        font-size: 2.5rem;
    }
}
