/* ============================================
   CARAJO BABY — Stylesheet
   ============================================ */

/* RESET & CUSTOM PROPERTIES */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg:          #0a0a0a;
    --bg-alt:      #111111;
    --bg-card:     #181818;
    --accent:      #e63946;
    --accent-dark: #c1121f;
    --white:       #ffffff;
    --muted:       #888888;
    --border:      #222222;
    --spotify:     #1DB954;
    --apple-bg:    #f5f5f7;
    --font-h:      'Oswald', sans-serif;
    --font-b:      'Inter', sans-serif;
    --ease:        0.3s ease;
    --max:         1200px;
}

html {
    scroll-behavior: smooth;
}

body {
    background: transparent;
    color: var(--white);
    font-family: var(--font-b);
    font-weight: 300;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Foto madcool como fondo fijo de toda la web */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(rgba(5,5,5,0.76), rgba(5,5,5,0.76)),
        url('../fotos/fondo_web.webp') center / cover no-repeat;
    background-attachment: fixed, fixed;
}

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

a { color: inherit; text-decoration: none; }

/* ============================================
   NAVBAR
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 2rem;
    transition: background var(--ease), padding var(--ease), backdrop-filter var(--ease);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.92);
    padding: 1rem 2rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: var(--max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-family: var(--font-h);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
    transition: color var(--ease);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--ease);
}

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1100;
    position: absolute;
    right: 0;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: transform 0.4s ease, opacity 0.4s ease;
    transform-origin: center;
}

.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -5px); }

/* ============================================
   HERO
   ============================================ */

.hero {
    position: relative;
    height: 100vh;
    min-height: 620px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    transform: scale(1.04);
    transition: transform 8s ease;
}

.hero:hover .hero-bg { transform: scale(1.08); }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(0,0,0,0.25) 0%,
        rgba(0,0,0,0.55) 50%,
        rgba(10,10,10,0.92) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 0 1.5rem;
}

.hero-logo {
    width: min(500px, 78vw);
    filter: drop-shadow(0 4px 40px rgba(0,0,0,0.7));
    animation: fadeInDown 1s ease forwards;
}

.hero-tagline {
    font-family: var(--font-h);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeInUp 1s ease 0.4s both;
    margin-top: 0.5rem;
}

.scroll-arrow {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255,255,255,0.4);
    animation: bounceArrow 2.5s ease infinite;
    transition: color var(--ease);
}

.scroll-arrow:hover { color: var(--accent); }

.scroll-arrow svg {
    width: 36px;
    height: 36px;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-block;
    padding: 0.85rem 2.2rem;
    font-family: var(--font-h);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 2px;
    cursor: pointer;
    transition: all var(--ease);
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    border: 2px solid var(--accent);
}

.btn-primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(230,57,70,0.35);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
    border-color: var(--white);
    transform: translateY(-2px);
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
    padding: 6rem 2rem;
    background: rgba(8, 8, 8, 0.35);
}

.section-dark {
    background: rgba(3, 3, 3, 0.58);
}

.container {
    max-width: var(--max);
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-h);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 3.5rem;
    display: inline-block;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.6rem;
    left: 0;
    width: 2.8rem;
    height: 3px;
    background: var(--accent);
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.5s ease 0.4s;
}

.section-title.visible::after {
    transform: scaleX(1);
}

.section-subtitle {
    color: var(--muted);
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    margin-top: -2.8rem;
    margin-bottom: 3rem;
}

/* ============================================
   VIDEOS GRID
   ============================================ */

.videos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.video-item {
    position: relative;
    padding-bottom: 56.25%;
    border-radius: 3px;
    overflow: hidden;
    background: var(--bg-card);
}

.video-item iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ============================================
   CONCERTS
   ============================================ */

.concerts-list {
    display: flex;
    flex-direction: column;
}

.concert-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem 1rem;
    border-bottom: 1px solid var(--border);
    border-radius: 3px;
    transition: background var(--ease), padding-left var(--ease);
    cursor: default;
}

.concert-item:first-child {
    border-top: 1px solid var(--border);
}

a.concert-item {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.concert-item.upcoming:hover {
    background: rgba(230, 57, 70, 0.06);
    padding-left: 1.5rem;
}

.concert-item.past {
    opacity: 0.38;
}

.concert-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    min-width: 64px;
}

.concert-day {
    font-family: var(--font-h);
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
    color: var(--accent);
}

.concert-item.past .concert-day {
    color: var(--muted);
}

.concert-month {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 3px;
}

.concert-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.concert-venue {
    font-family: var(--font-h);
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.03em;
}

.concert-city {
    font-size: 0.8rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.concert-badge {
    font-family: var(--font-h);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.35rem 0.85rem;
    border-radius: 2px;
    white-space: nowrap;
}

.upcoming-badge {
    background: rgba(230, 57, 70, 0.12);
    color: var(--accent);
    border: 1px solid rgba(230, 57, 70, 0.3);
}

.past-badge {
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--border);
}

.tickets-badge {
    background: var(--accent);
    color: var(--white);
    cursor: pointer;
    transition: background var(--ease), transform var(--ease);
}

.tickets-badge:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

/* ============================================
   STREAMING
   ============================================ */

.streaming-grid {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.streaming-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.05rem 2.2rem;
    border-radius: 50px;
    font-family: var(--font-h);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: all var(--ease);
}

.streaming-btn svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.streaming-btn.spotify {
    background: var(--spotify);
    color: #000;
}

.streaming-btn.spotify:hover {
    background: #1ed760;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(29, 185, 84, 0.3);
}

.streaming-btn.apple {
    background: var(--apple-bg);
    color: #000;
}

.streaming-btn.apple:hover {
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.15);
}

.streaming-btn.tidal {
    background: #000;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
}

.streaming-btn.tidal:hover {
    background: #111;
    border-color: rgba(255,255,255,0.35);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.streaming-btn.deezer {
    background: #EF5466;
    color: #fff;
}

.streaming-btn.deezer:hover {
    background: #e03a4d;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(239, 84, 102, 0.35);
}

.streaming-btn.ytmusic {
    background: #FF0000;
    color: #fff;
}

.streaming-btn.ytmusic:hover {
    background: #cc0000;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.3);
}

/* ============================================
   ÚLTIMO LANZAMIENTO
   ============================================ */

.release-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 5rem;
    align-items: start;
}

.release-cover img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255,255,255,0.05);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.release-cover:hover img {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 36px 80px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255,255,255,0.08);
}

.release-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 0.5rem;
}

.release-label {
    font-family: var(--font-h);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    display: block;
}

.release-title {
    font-family: var(--font-h);
    font-size: clamp(2.5rem, 4.5vw, 4rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.release-text {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.release-text p {
    font-size: 0.96rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 300;
}

.release-quote {
    font-family: var(--font-h) !important;
    font-size: 1.25rem !important;
    font-weight: 400 !important;
    color: var(--white) !important;
    border-left: 3px solid var(--accent);
    padding-left: 1.25rem;
    margin: 0.5rem 0;
    font-style: italic;
}

.release-credits {
    margin-top: 0.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.release-credits p {
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.6;
    letter-spacing: 0.02em;
}

.release-credits strong {
    color: rgba(255,255,255,0.65);
    font-weight: 500;
}

/* ============================================
   BIOGRAFÍA
   ============================================ */

.bio-text {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.bio-text p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 300;
}

.bio-text p:first-child {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

/* ============================================
   FRANJA FOTO BANDA
   ============================================ */

.band-photo-strip {
    position: relative;
    height: 55vh;
    min-height: 340px;
    overflow: hidden;
}

.band-photo-strip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
}

.band-photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(5,5,5,0.45) 0%,
        rgba(5,5,5,0.1)  40%,
        rgba(5,5,5,0.45) 100%
    );
}

/* ============================================
   SECTION CON FOTO DE FONDO
   ============================================ */

.section-photo-bg {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.section-photo-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(6, 6, 6, 0.78);
    z-index: 0;
}

.section-photo-bg .container {
    position: relative;
    z-index: 1;
}

/* ============================================
   GALLERY
   ============================================ */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 280px;
    gap: 6px;
}

/* Algunos items más anchos para dinamismo visual */
.gallery-item:nth-child(1) { grid-column: span 2; }
.gallery-item:nth-child(6) { grid-column: span 2; }

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-card);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(230, 57, 70, 0);
    transition: background var(--ease);
}

.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover::after { background: rgba(230, 57, 70, 0.12); }

/* ============================================
   LIGHTBOX
   ============================================ */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.96);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox img {
    max-width: 88vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 2px;
    transition: opacity 0.2s ease;
    user-select: none;
}

.lightbox-close {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 1.6rem;
    cursor: pointer;
    transition: color var(--ease), transform var(--ease);
    line-height: 1;
    padding: 0.5rem;
}

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

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.08);
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 2.8rem;
    width: 3.5rem;
    height: 6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    transition: background var(--ease), color var(--ease);
    line-height: 1;
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255,255,255,0.18);
    color: var(--white);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: #050505;
    padding: 3rem 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.footer-logo {
    height: 26px;
    opacity: 0.55;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    font-family: var(--font-h);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    transition: color var(--ease);
}

.footer-links a:hover { color: var(--white); }

.footer-copy {
    font-size: 0.7rem;
    color: #444;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-28px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes bounceArrow {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(10px); }
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 900px) {
    .release-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .release-cover img {
        max-width: 340px;
        margin: 0 auto;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 240px;
    }

    .gallery-item:nth-child(1),
    .gallery-item:nth-child(6) {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .navbar.scrolled {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .nav-links {
        display: none;
        position: fixed;
        inset: 0;
        background: #0a0a0a;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2.5rem;
        z-index: 1050;
    }

    .nav-links.open { display: flex; }

    .nav-links a {
        font-size: 1.4rem;
        letter-spacing: 0.2em;
    }

    .nav-links a::after { display: none; }

    .nav-toggle { display: flex; }

    .videos-grid {
        grid-template-columns: 1fr;
    }

    .concert-item {
        grid-template-columns: 70px 1fr auto;
        gap: 1rem;
        padding: 1.25rem 0.5rem;
    }

    .concert-badge { font-size: 0.6rem; padding: 0.3rem 0.6rem; }

    .hero-bg { background-attachment: scroll; }
    .section-photo-bg { background-attachment: scroll; }
    body::before { background-attachment: scroll, scroll; }
}

@media (max-width: 540px) {
    .section { padding: 4rem 1.25rem; }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 260px;
    }

    .streaming-grid { flex-direction: column; }

    .streaming-btn { justify-content: center; }

    .concert-item {
        grid-template-columns: 60px 1fr;
    }

    .concert-item .concert-badge { display: none; }

    .lightbox-prev { left: 0.25rem; }
    .lightbox-next { right: 0.25rem; }
}
