/* =============================================
   CARLOS RODRÍGUEZ PEDROL — Steadicam Services
   ============================================= */

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

:root {
    --white: #ffffff;
    --black: #000000;
    --gray: rgba(255, 255, 255, 0.5);
    --font-title: 'Bebas Neue', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: 0.3s ease;
    --blue: #0055A4;
}

a:hover { color: #0055A4; }

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
    color: var(--white);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    cursor: none;
}

/* =============================================
   CURSOR PERSONALIZADO — PLAY
   ============================================= */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 28px;
    height: 28px;
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    transition: width 0.25s ease, height 0.25s ease,
                background 0.25s ease, border-color 0.25s ease,
                opacity 0.2s ease;
    will-change: transform;
}

.cursor::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 8px solid rgba(255, 255, 255, 0.85);
    margin-left: 2px;
    transition: opacity 0.2s ease, border-left-color 0.2s ease;
}

.cursor.cursor-hover {
    width: 46px;
    height: 46px;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--white);
}

.cursor.cursor-hover::after {
    border-left-color: var(--white);
}

.cursor.cursor-hidden {
    opacity: 0;
}

/* =============================================
   ANIMACIONES DE ENTRADA
   ============================================= */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(1.06);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-up {
    opacity: 0;
    animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: var(--delay, 0s);
}

.animate-down {
    opacity: 0;
    animation: fadeDown 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: var(--delay, 0s);
}

.animate-fade {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: var(--delay, 0s);
}

/* =============================================
   HERO
   ============================================= */
.hero {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* --- Slides --- */
.slides {
    position: absolute;
    inset: 0;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    opacity: 0;
    transition: opacity 1.4s ease-in-out;
    transform: scale(1.03);
    animation: none;
}

.slide.active {
    opacity: 1;
    animation: scaleIn 8s ease forwards;
}

/* Placeholders para slides 2-5 */
.slide-2 { background-color: #0d0d0d; background-image: url('../hero-2.jpg'); }
.slide-3 { background-color: #111111; background-image: url('../hero-3.jpg'); }
.slide-4 { background-color: #0a0a0a; background-image: url('../hero-4.jpg'); }
.slide-5 { background-color: #141414; background-image: url('../hero-5.jpg'); }

/* --- Overlay --- */
.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.38) 0%,
        rgba(0, 0, 0, 0.05) 45%,
        rgba(0, 0, 0, 0.05) 60%,
        rgba(0, 0, 0, 0.58) 100%
    );
    z-index: 2;
}

/* =============================================
   HEADER
   ============================================= */
.hero-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 44px 52px;
}

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

.logo h1 {
    font-family: var(--font-title);
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    line-height: 0.92;
    letter-spacing: 0.03em;
    color: var(--white);
    font-weight: 400;
    text-transform: uppercase;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 28px;
    padding-top: 6px;
}

.tagline-mobile { display: none; }

.tagline {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    color: var(--white);
    text-transform: uppercase;
    opacity: 0.9;
}

/* --- Hamburger --- */
.hamburger {
    background: none;
    border: none;
    cursor: none;
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 4px;
    transition: opacity var(--transition);
}

.hamburger:hover { opacity: 0.6; }

.hamburger span {
    display: block;
    width: 26px;
    height: 1.5px;
    background: var(--white);
    transition: all 0.3s ease;
}

/* =============================================
   ICONOS SOCIALES — lateral derecho del hero
   ============================================= */
.hero-social {
    position: absolute;
    right: 52px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.hero-social a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color var(--transition), opacity var(--transition), transform var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: none;
}

.hero-social a:hover {
    color: var(--white);
    transform: scale(1.15);
}

.imdb-icon {
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    background: rgba(255, 255, 255, 0.55);
    color: #000;
    padding: 2px 4px;
    border-radius: 2px;
    transition: background var(--transition);
    line-height: 1.3;
}

.hero-social a:hover .imdb-icon {
    background: var(--white);
}

/* =============================================
   NAVEGACIÓN INFERIOR
   ============================================= */
.hero-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 52px 42px;
}

.nav-links {
    display: flex;
    gap: 52px;
    align-items: center;
}

.hero-nav a {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.14em;
    color: var(--white);
    text-decoration: none;
    text-transform: uppercase;
    transition: opacity var(--transition), letter-spacing var(--transition);
    position: relative;
    cursor: none;
}

.hero-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--white);
    transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-nav a:hover {
    opacity: 0.6;
    letter-spacing: 0.2em;
}

.hero-nav a:hover::after {
    width: 100%;
}

/* --- Dots indicadores --- */
.slide-dots {
    display: flex;
    gap: 9px;
    align-items: center;
    padding-bottom: 3px;
}

.dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: none;
    transition: all 0.35s ease;
}

.dot.active {
    background: var(--white);
    transform: scale(1.3);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

/* =============================================
   MENÚ MÓVIL
   ============================================= */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.96);
    z-index: 100;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-menu.open {
    transform: translateX(0);
}

.close-menu {
    position: absolute;
    top: 44px;
    right: 52px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.4rem;
    cursor: none;
    opacity: 0.6;
    transition: opacity var(--transition);
    font-family: var(--font-body);
    font-weight: 300;
}

.close-menu:hover { opacity: 1; }

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 48px;
    text-align: center;
}

.mobile-nav a {
    font-family: var(--font-title);
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    color: var(--white);
    text-decoration: none;
    letter-spacing: 0.08em;
    transition: opacity var(--transition), letter-spacing var(--transition);
    line-height: 1;
    cursor: none;
    opacity: 0.85;
}

.mobile-nav a:hover {
    color: #0055A4;
    letter-spacing: 0.15em;
}

.mobile-lang {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 48px;
    opacity: 0.5;
}

/* =============================================
   PÁGINAS INTERNAS — Layout base
   ============================================= */
.page-body {
    overflow: auto;
    background: #080808;
    min-height: 100vh;
    cursor: none;
}

.page-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 52px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.85) 0%, transparent 100%);
    backdrop-filter: blur(0px);
}

.page-header .logo a {
    text-decoration: none;
    color: var(--white);
}

.page-header .logo h2 {
    font-family: var(--font-title);
    font-size: 1.4rem;
    letter-spacing: 0.06em;
    font-weight: 400;
    line-height: 1;
    transition: opacity var(--transition);
}

.page-header .logo a:hover h2 {
    opacity: 0.6;
}

.page-header .nav-links {
    display: flex;
    gap: 40px;
}

.page-header .nav-links a {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.14em;
    color: var(--white);
    text-decoration: none;
    text-transform: uppercase;
    transition: opacity var(--transition);
    opacity: 0.45;
    cursor: none;
    position: relative;
}

/* =============================================
   SELECTOR DE IDIOMA
   ============================================= */
.page-header-right {
    display: flex;
    align-items: center;
    gap: 32px;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.62rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    opacity: 0.3;
    cursor: none;
    transition: opacity var(--transition);
    padding: 2px 0;
}

.lang-btn.active {
    opacity: 1;
}

.lang-btn:hover {
    opacity: 0.7;
}

.lang-sep {
    font-size: 0.55rem;
    opacity: 0.2;
    color: var(--white);
}

/* Visibilidad por idioma */
.lang-en { display: none; }

html[data-lang="en"] .lang-en { display: revert; }
html[data-lang="en"] .lang-es { display: none; }

/* "A project in mind?" */
.contact-tagline {
    font-family: var(--font-title);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    letter-spacing: 0.04em;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 36px;
    line-height: 1;
}

.contact-form-wrapper {
    display: flex;
    flex-direction: column;
}

.page-header .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--white);
    transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.page-header .nav-links a:hover,
.page-header .nav-links a.active {
    opacity: 1;
    color: #0055A4;
}

.page-header .nav-links a:hover::after,
.page-header .nav-links a.active::after {
    width: 100%;
}

.page-content {
    padding-top: 120px;
    padding-bottom: 100px;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 52px;
    padding-right: 52px;
}

.page-title {
    font-family: var(--font-title);
    font-size: clamp(3rem, 6vw, 6rem);
    letter-spacing: 0.04em;
    font-weight: 400;
    margin-bottom: 60px;
    line-height: 1;
    color: var(--white);
    animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* =============================================
   WORK — TABS
   ============================================= */
.work-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 52px;
    flex-wrap: wrap;
    gap: 20px;
}

.work-header .page-title {
    margin-bottom: 0;
}

.work-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.work-tab {
    background: none;
    border: none;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.3;
    cursor: none;
    transition: opacity var(--transition);
    padding: 4px 0;
    position: relative;
}

.work-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--white);
    transition: width 0.35s ease;
}

.work-tab.active {
    opacity: 1;
}

.work-tab.active::after {
    width: 100%;
}

.work-tab:hover {
    opacity: 1;
    color: #0055A4;
}

.tab-sep {
    font-size: 0.55rem;
    opacity: 0.2;
    color: var(--white);
}

/* Panels */
.tab-panel {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.tab-panel.active {
    display: block;
}

/* =============================================
   POSTER TICKER
   ============================================= */
@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.poster-ticker {
    width: 100%;
    overflow: hidden;
    margin-bottom: 60px;
    mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}

.poster-track {
    display: flex;
    gap: 8px;
    width: max-content;
    animation: ticker-scroll 30s linear infinite;
}

.poster-ticker:hover .poster-track {
    animation-play-state: paused;
}

.poster-track img {
    height: 3cm;
    width: auto;
    object-fit: cover;
    display: block;
    filter: grayscale(20%);
    transition: filter 0.3s ease, transform 0.3s ease;
    cursor: none;
}

.poster-track img:hover {
    filter: grayscale(0%);
    transform: scale(1.04);
}

/* =============================================
   FILMOGRAFÍA
   ============================================= */
.filmography {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 64px 80px;
}

.filmo-section {}

.filmo-category {
    font-family: var(--font-title);
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    font-weight: 400;
    opacity: 0.3;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.filmo-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.filmo-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: padding-left var(--transition);
}

.filmo-item:hover {
    padding-left: 8px;
}

.filmo-title {
    font-size: 0.88rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--white);
    opacity: 0.85;
    flex: 1;
}

.filmo-meta {
    font-size: 0.68rem;
    font-weight: 300;
    letter-spacing: 0.04em;
    color: var(--white);
    opacity: 0.35;
    text-align: right;
    max-width: 55%;
    line-height: 1.6;
}

.filmo-note {
    font-size: 0.62rem;
    opacity: 0.4;
    margin-left: 8px;
    font-weight: 300;
    letter-spacing: 0.06em;
}

/* Secciones que ocupan el ancho completo */
.filmo-section--full {
    grid-column: 1 / -1;
}

/* Tags para TV Shows y Galas */
.filmo-tags {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filmo-tag-group {
    font-size: 0.82rem;
    font-weight: 300;
    line-height: 1.7;
    opacity: 0.7;
    letter-spacing: 0.02em;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.filmo-tag-group strong {
    font-weight: 500;
    opacity: 1;
    margin-right: 6px;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

@media (max-width: 900px) {
    .filmography {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .filmo-item {
        flex-direction: column;
        gap: 4px;
    }
    .filmo-meta {
        text-align: left;
    }
    .work-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =============================================
   WORK PAGE — REEL
   ============================================= */
.reel-section {
    margin-bottom: 80px;
}

.reel-label {
    font-family: var(--font-title);
    font-size: clamp(3rem, 6vw, 6rem);
    letter-spacing: 0.04em;
    font-weight: 400;
    margin-bottom: 20px;
    line-height: 1;
    color: var(--white);
    animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.reel-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #111;
    overflow: hidden;
}

.reel-video:has(.reel-placeholder) {
    aspect-ratio: unset;
    height: 120px;
}

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

.reel-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: #0f0f0f;
    border: 1px solid rgba(255,255,255,0.06);
}

.reel-placeholder-play {
    width: 64px;
    height: 64px;
    border: 1.5px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color var(--transition), transform var(--transition);
}

.reel-placeholder-play::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 16px solid rgba(255,255,255,0.4);
    margin-left: 4px;
}

.reel-placeholder:hover .reel-placeholder-play {
    border-color: var(--white);
    transform: scale(1.08);
}

.reel-placeholder p {
    font-size: 0.65rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.25;
}

/* Separador antes del grid */
.projects-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
}

.projects-label {
    font-family: var(--font-body);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.35;
    white-space: nowrap;
}

.projects-line {
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.1);
}

/* =============================================
   WORK PAGE — Grid de vídeos
   ============================================= */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5cm;
}

.video-item {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    cursor: none;
    background: #111;
}

.video-thumb {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: #1a1a1a;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.video-item:hover .video-thumb {
    transform: scale(1.05);
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.video-item:hover .video-overlay {
    opacity: 1;
}

.video-item--empty {
    background: #0d0d0d;
    border: 1px solid rgba(255,255,255,0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
}

.video-overlay-empty {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.15;
}

.video-title {
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 400;
}

.video-client {
    font-size: 0.65rem;
    opacity: 0.5;
    margin-top: 4px;
    letter-spacing: 0.06em;
    font-weight: 300;
}

/* =============================================
   MY GEAR PAGE — Grid con hover foto
   ============================================= */
.gear-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

.gear-item {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 28px 24px 24px;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    cursor: none;
    transition: border-color 0.35s ease;
}

.gear-item:hover {
    border-color: rgba(255, 255, 255, 0.6);
}

/* Foto — oculta, solo se usa en el popup flotante */
.gear-item-photo,
.gear-item-overlay {
    display: none;
}

/* Categoría — arriba */
.gear-item-cat {
    position: absolute;
    top: 20px;
    left: 24px;
    font-size: 0.58rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--white);
    opacity: 0.3;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.gear-item:hover .gear-item-cat {
    opacity: 0.55;
}

/* Nombre del equipo — abajo */
.gear-item-name {
    position: relative;
    z-index: 2;
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    line-height: 1.5;
    color: var(--white);
    opacity: 0.75;
    transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.gear-item:hover .gear-item-name {
    opacity: 1;
    transform: translateY(-4px);
}

/* ===== POPUP FLOTANTE ===== */
.gear-popup {
    position: fixed;
    width: 270px;       /* 4.5 unidades */
    height: 360px;      /* 6 unidades — retrato */
    pointer-events: none;
    z-index: 9000;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #111;
    opacity: 0;
    transform: scale(0.88) translateY(10px);
    transition: opacity 0.3s ease,
                transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    filter: grayscale(10%);
    border: 1px solid rgba(255,255,255,0.12);
    top: 0;
    left: 0;
    will-change: transform, opacity;
}

.gear-popup.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* MUNDO RONIN link */
.gear-ronin {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #222;
}
.gear-ronin-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}
.gear-ronin-link:hover { color: #0055A4; }

.gear-ronin-logo {
    height: 30px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.gear-ronin-link:hover .gear-ronin-logo { opacity: 1; }

@media (max-width: 900px) {
    .gear-grid { grid-template-columns: repeat(2, 1fr); }
    .gear-popup { display: none; }

    /* Foto visible al tocar la card */
    .gear-item-photo {
        display: block;
        position: absolute;
        inset: 0;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        background-color: #0a0a0a;
        opacity: 0;
        transition: opacity 0.35s ease;
        z-index: 1;
    }
    .gear-item.tapped .gear-item-photo {
        opacity: 1;
    }
    .gear-item-cat,
    .gear-item-name {
        position: relative;
        z-index: 2;
    }
    .gear-item.tapped .gear-item-cat,
    .gear-item.tapped .gear-item-name {
        opacity: 0;
    }
}
@media (max-width: 600px) {
    .gear-grid { grid-template-columns: 1fr; }
}

/* Layout antiguo — mantener por si acaso */
.gear-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.gear-photo {
    aspect-ratio: 1;
    overflow: hidden;
    background: #111;
}

.gear-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.gear-photo:hover img {
    transform: scale(1.03);
}

.gear-list h3 {
    font-family: var(--font-title);
    font-size: 0.9rem;
    letter-spacing: 0.14em;
    margin-bottom: 20px;
    margin-top: 44px;
    opacity: 0.35;
    font-weight: 400;
}

.gear-list h3:first-child { margin-top: 0; }

.gear-list ul { list-style: none; }

.gear-list ul li {
    font-size: 0.88rem;
    font-weight: 300;
    line-height: 2;
    letter-spacing: 0.03em;
    opacity: 0.75;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 4px 0;
    transition: opacity var(--transition), padding-left var(--transition);
}

.gear-list ul li:hover {
    opacity: 1;
    padding-left: 8px;
}

/* =============================================
   ABOUT PAGE
   ============================================= */
.about-layout { max-width: 100%; }

.about-text {
    font-size: 0.78rem;
    font-weight: 300;
    line-height: 1.85;
    opacity: 0.8;
    letter-spacing: 0.02em;
    columns: 2;
    column-gap: 60px;
}

.about-text p + p { margin-top: 18px; }

@media (max-width: 700px) {
    .about-text { columns: 1; }
}

.inline-link {
    color: var(--white);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.35);
    transition: border-color var(--transition);
}

.inline-link:hover {
    color: #0055A4;
    border-bottom-color: #0055A4;
}

.about-social {
    display: flex;
    gap: 32px;
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.about-social a {
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--white);
    text-decoration: none;
    opacity: 0.35;
    transition: opacity var(--transition);
    cursor: none;
}

.about-social a:hover { opacity: 1; color: #0055A4; }


/* =============================================
   BTS GRID
   ============================================= */
.bts-section {
    margin-top: 100px;
}

.bts-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 28px;
}

.bts-title {
    font-family: var(--font-title);
    font-size: clamp(3rem, 6vw, 6rem);
    letter-spacing: 0.04em;
    font-weight: 400;
    line-height: 1;
    color: var(--white);
    flex-shrink: 0;
}

.bts-line {
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.08);
}

.bts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 0.8cm;
    row-gap: 0;
}

.bts-item {
    position: relative;
    overflow: hidden;
    background: #111;
    cursor: none;
}

/* ── BLOQUE 1: filas 1-2 → H V H / H _ H ── */
.bts-item:nth-child(1) { grid-column: 1; grid-row: 1; aspect-ratio: 4/3; }
.bts-item:nth-child(2) { grid-column: 2; grid-row: 1 / span 2; aspect-ratio: 2/3; }
.bts-item:nth-child(3) { grid-column: 3; grid-row: 1; aspect-ratio: 4/3; }
.bts-item:nth-child(4) { grid-column: 1; grid-row: 2; aspect-ratio: 4/3; }
.bts-item:nth-child(5) { grid-column: 3; grid-row: 2; aspect-ratio: 4/3; }

/* ── BLOQUE 2: filas 3-4 → V H V / _ H _ ── */
.bts-item:nth-child(6) { grid-column: 1; grid-row: 3 / span 2; aspect-ratio: 2/3; }
.bts-item:nth-child(7) { grid-column: 2; grid-row: 3; aspect-ratio: 4/3; }
.bts-item:nth-child(8) { grid-column: 3; grid-row: 3 / span 2; aspect-ratio: 2/3; }
.bts-item:nth-child(9) { grid-column: 2; grid-row: 4; aspect-ratio: 4/3; }

/* ── BLOQUE 3: filas 5-6 → H V H / H _ H ── */
.bts-item:nth-child(10) { grid-column: 1; grid-row: 5; aspect-ratio: 4/3; }
.bts-item:nth-child(11) { grid-column: 2; grid-row: 5 / span 2; aspect-ratio: 2/3; }
.bts-item:nth-child(12) { grid-column: 3; grid-row: 5; aspect-ratio: 4/3; }
.bts-item:nth-child(13) { grid-column: 1; grid-row: 6; aspect-ratio: 4/3; }
.bts-item:nth-child(14) { grid-column: 3; grid-row: 6; aspect-ratio: 4/3; }

/* ── BLOQUE 4: filas 7-8 → V H V / _ H _ ── */
.bts-item:nth-child(15) { grid-column: 1; grid-row: 7 / span 2; aspect-ratio: 2/3; }
.bts-item:nth-child(16) { grid-column: 2; grid-row: 7; aspect-ratio: 4/3; }
.bts-item:nth-child(17) { grid-column: 3; grid-row: 7 / span 2; aspect-ratio: 2/3; }
.bts-item:nth-child(18) { grid-column: 2; grid-row: 8; aspect-ratio: 4/3; }

.bts-thumb {
    position: absolute;
    inset: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #080808;
    filter: grayscale(30%);
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
                filter 0.4s ease;
}

.bts-item:hover .bts-thumb {
    transform: scale(1.05);
    filter: grayscale(0%);
}

@media (max-width: 900px) {
    .bts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-form-wrapper {
    max-width: 680px;
}

.contact-location {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
    opacity: 0.5;
}

.contact-location-icon {
    width: 16px;
    height: 16px;
    color: #fff;
    flex-shrink: 0;
}

.contact-location-text {
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
}

.contact-barcelona-gif {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.35;
}

.form-group input,
.form-group textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 300;
    padding: 10px 0;
    outline: none;
    transition: border-color 0.4s ease;
    width: 100%;
    cursor: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255,255,255,0.2);
    font-weight: 300;
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: rgba(255,255,255,0.6);
}

.form-group textarea {
    resize: none;
    height: 90px;
}

.btn-send {
    align-self: flex-start;
    background: none;
    border: 1px solid rgba(255,255,255,0.25);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 14px 36px;
    cursor: none;
    transition: all 0.35s ease;
    margin-top: 8px;
}

.btn-send:hover {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

.contact-footer {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-info span {
    font-size: 0.72rem;
    font-weight: 300;
    letter-spacing: 0.06em;
    color: var(--white);
    opacity: 0.35;
}

/* =============================================
   HAMBURGER — PÁGINAS INTERNAS (oculto en desktop)
   ============================================= */
.hamburger-page {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 6px;
    padding: 4px;
    cursor: pointer;
}

.hamburger-page span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--white);
    transition: all 0.3s ease;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
    body, .page-body { cursor: auto; }
    .cursor { display: none; }
    * { cursor: auto !important; }

    /* Hero */
    .hero-header { padding: 32px; }
    .hero-nav { padding: 0 32px 36px; }
    .tagline { display: none; }
    .hero-social { display: none; }
    .hero-nav .nav-links { display: none; }

    /* Páginas internas — header */
    .page-header { padding: 24px 32px; }
    .page-header .nav-links { display: none; }
    .hamburger-page { display: flex; }

    /* Contenido */
    .page-content { padding-left: 32px; padding-right: 32px; padding-top: 100px; }
    .page-title { margin-bottom: 40px; }

    /* Work */
    .video-grid { grid-template-columns: repeat(2, 1fr); }
    .work-header { flex-direction: column; align-items: flex-start; gap: 16px; }
    .work-tabs { flex-wrap: wrap; gap: 8px; }

    /* Gear */
    .gear-layout, .contact-layout { grid-template-columns: 1fr; gap: 48px; }

    /* BTS grid → 2 columnas simples, sin posicionamiento fijo */
    .bts-grid { grid-template-columns: repeat(2, 1fr); }
    .bts-item {
        grid-column: auto !important;
        grid-row: auto !important;
        aspect-ratio: 4/3 !important;
    }
    .bts-section { margin-top: 60px; }
}

@media (max-width: 600px) {
    /* Hero */
    .hero-header { padding: 20px 24px; }
    .hero-nav { padding: 0 24px 28px; }
    .slides .slide:first-child { background-position: right center; }
    .slide-2 { background-position: left center; }
    .slide-dots { display: none; }

    /* Tagline — ocultar el de desktop, mostrar el de móvil */
    .tagline { display: none; }
    .tagline-mobile {
        display: block;
        font-family: var(--font-body);
        font-size: 0.55rem;
        font-weight: 400;
        letter-spacing: 0.18em;
        color: var(--white);
        text-transform: uppercase;
        opacity: 0.7;
        text-align: left;
        margin-top: 8px;
        line-height: 1.8;
    }

    /* Social links en móvil — centrados */
    .hero-social {
        display: flex;
        flex-direction: row;
        position: absolute;
        bottom: 100px;
        left: 50%;
        right: auto;
        top: auto;
        transform: translateX(-50%);
        gap: 28px;
    }

    /* Páginas internas */
    .page-header { padding: 20px 24px; }
    .page-content { padding-left: 20px; padding-right: 20px; padding-top: 88px; }

    /* Grids → 1 columna */
    .video-grid { grid-template-columns: 1fr; }
    .bts-grid { grid-template-columns: 1fr; }

    /* BTS — en 1 columna, ratio uniforme para fotos verticales */
    .bts-item {
        grid-column: auto !important;
        grid-row: auto !important;
        aspect-ratio: 4/3 !important;
    }

    /* Filmografía */
    .filmography { grid-template-columns: 1fr; gap: 40px; }
    .filmo-item { flex-direction: column; gap: 2px; }
    .filmo-meta { text-align: left; max-width: 100%; }
    .filmo-year { font-size: 0.62rem; }

    /* Poster ticker más compacto */
    .poster-track img { height: 2cm; }

    /* Work tabs */
    .work-tabs { gap: 4px; }
    .reel-section { margin-bottom: 40px; }

    /* Texto about */
    .about-text { font-size: 0.82rem; }
    .about-social { gap: 20px; margin-top: 40px; }

    /* Contact */
    .contact-tagline { font-size: 1.6rem; }
    .contact-form-wrapper { max-width: 100%; }
    .btn-send { width: 100%; text-align: center; }
}
