/* ============================================
   Javier Núñez Fotografía — Estilos
   ============================================ */

::selection { background: rgba(180, 83, 9, 0.2); color: #18181b; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #fafafa; }
::-webkit-scrollbar-thumb { background: #d4d4d8; border-radius: 3px; }

/* ── Cursor personalizado ────────────────── */
@media (pointer: fine) {
    body { cursor: none; }
    a, button, [role="button"] { cursor: none; }
}

#cursor-dot {
    position: fixed;
    top: 0; left: 0;
    width: 6px; height: 6px;
    background: #b45309;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
}

#cursor-ring {
    position: fixed;
    top: 0; left: 0;
    width: 36px; height: 36px;
    border: 1.5px solid rgba(180, 83, 9, 0.6);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
}

/* ── Transición de página ────────────────── */
#page-transition {
    position: fixed;
    inset: 0;
    background: #0a0a0a;
    z-index: 9990;
    transform: scaleY(0);
    transform-origin: bottom;
    pointer-events: none;
}

/* ── Image hover zoom ────────────────────── */
.img-zoom {
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Photo card hover ────────────────────── */
.photo-card {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    cursor: pointer;
}

.photo-card img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.photo-card:hover img {
    transform: scale(1.06);
}

.photo-card .photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
}

.photo-card:hover .photo-overlay {
    opacity: 1;
}

.photo-overlay-inner {
    transform: translateY(12px);
    transition: transform 0.4s ease;
}

.photo-card:hover .photo-overlay-inner {
    transform: translateY(0);
}

/* ── Gallery card ────────────────────────── */
.gallery-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.gallery-card:hover {
    transform: translateY(-4px);
}
.gallery-card .overlay {
    opacity: 0;
    transition: opacity 0.35s ease;
}
.gallery-card:hover .overlay {
    opacity: 1;
}

/* ── Masonry (legacy) ────────────────────── */
.masonry { columns: 3; column-gap: 0.75rem; }
.masonry > * { break-inside: avoid; margin-bottom: 0.75rem; }
@media (max-width: 1024px) { .masonry { columns: 2; } }
@media (max-width: 640px)  { .masonry { columns: 1; } }

/* ── Grid cinético 1+2+3 ─────────────────── */
/*
   Patrón por grupo de 6:
   pos-0: full width  (1 foto)
   pos-1, pos-2: mitad cada una  (2 fotos)
   pos-3, pos-4, pos-5: tercio cada una  (3 fotos)
*/
.cinematic-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 3px;
    background: #000;
}

.cin-item {
    position: relative;
    overflow: hidden;
    display: block;
    cursor: pointer;
    background: #111;
}

/* Posición 0 — full width, alto cinematográfico */
.cin-pos-0 { grid-column: span 6; height: 72vh; }

/* Posición 1 y 2 — mitades */
.cin-pos-1 { grid-column: span 3; height: 54vh; }
.cin-pos-2 { grid-column: span 3; height: 54vh; }

/* Posición 3, 4, 5 — tercios */
.cin-pos-3 { grid-column: span 2; height: 42vh; }
.cin-pos-4 { grid-column: span 2; height: 42vh; }
.cin-pos-5 { grid-column: span 2; height: 42vh; }

/* Imagen */
.cin-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.6s ease;
    transform-origin: center;
    will-change: transform;
}

.cin-item:hover img {
    transform: scale(1.07);
    filter: brightness(1.12);
}

/* Cortina negra de reveal (GSAP la anima) */
.cin-curtain {
    position: absolute;
    inset: 0;
    background: #000;
    transform-origin: left;
    pointer-events: none;
    z-index: 2;
}

/* Hover overlay */
.cin-hover {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top right,
        rgba(0,0,0,0.55) 0%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem 1.75rem;
}

.cin-item:hover .cin-hover {
    opacity: 1;
}

/* Número grande */
.cin-num {
    font-size: clamp(2.5rem, 6vw, 6rem);
    font-weight: 900;
    color: rgba(255,255,255,0.08);
    line-height: 1;
    letter-spacing: -0.03em;
    transition: color 0.4s ease, transform 0.45s cubic-bezier(0.16,1,0.3,1);
    transform: translateY(16px);
    display: block;
    user-select: none;
}

.cin-item:hover .cin-num {
    color: rgba(255,255,255,0.55);
    transform: translateY(0);
}

/* Borde interior al hover */
.cin-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1.5px solid transparent;
    transition: border-color 0.35s ease;
    pointer-events: none;
    z-index: 3;
}

.cin-item:hover::after {
    border-color: rgba(255,255,255,0.15);
}

/* ── Journey fullscreen scroll-snap ─────── */
.journey-snap-container {
    height: calc(100vh - 64px); /* 64px = navbar */
    margin-top: 64px;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
}
.journey-snap-container::-webkit-scrollbar { display: none; }

.journey-slide {
    height: calc(100vh - 64px);
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* Fondo */
.journey-slide-bg {
    position: absolute;
    inset: -10%;
    background-size: cover;
    background-position: center;
    will-change: transform;
}

.journey-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(0,0,0,0.82) 0%,
        rgba(0,0,0,0.5) 55%,
        rgba(0,0,0,0.15) 100%
    );
}

/* Contenido izquierda */
.journey-slide-content {
    position: relative;
    z-index: 2;
    padding: 0 5vw;
    max-width: 52%;
}

.journey-slide-meta {
    margin-bottom: 1rem;
}

.journey-slide-index {
    font-family: monospace;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.12em;
}

.journey-slide-title {
    font-size: clamp(3.5rem, 8vw, 8rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.04em;
    line-height: 0.9;
    margin-bottom: 1rem;
}

.journey-slide-count {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.4);
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
}

.journey-slide-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: background 0.3s ease, border-color 0.3s ease;
    backdrop-filter: blur(4px);
}

.journey-slide-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}

/* Preview grid derecha */
.journey-slide-preview {
    position: absolute;
    right: 4vw;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    width: clamp(200px, 28vw, 380px);
}

.journey-preview-item {
    aspect-ratio: 4/3;
    overflow: hidden;
    display: block;
    cursor: pointer;
}

.journey-preview-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16,1,0.3,1), filter 0.4s ease;
    filter: brightness(0.75);
}

.journey-preview-item:hover img {
    transform: scale(1.07);
    filter: brightness(1);
}

/* Indicador scroll */
.journey-scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.3);
    z-index: 3;
    animation: bounce 2s ease-in-out infinite;
}

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

/* Mobile */
@media (max-width: 768px) {
    .journey-slide-content { max-width: 100%; padding: 0 6vw; }
    .journey-slide-preview { display: none; }
    .journey-slide-title { font-size: clamp(3rem, 14vw, 5rem); }
}

/* Responsive */
@media (max-width: 1024px) {
    .cin-pos-0 { grid-column: span 6; height: 55vh; }
    .cin-pos-1, .cin-pos-2 { grid-column: span 3; height: 45vh; }
    .cin-pos-3, .cin-pos-4, .cin-pos-5 { grid-column: span 2; height: 38vh; }
}

@media (max-width: 640px) {
    .cinematic-grid { grid-template-columns: 1fr; gap: 2px; }
    .cin-pos-0, .cin-pos-1, .cin-pos-2,
    .cin-pos-3, .cin-pos-4, .cin-pos-5 {
        grid-column: span 1;
        height: 65vw;
    }
}

/* ── Fade in fallback (sin GSAP) ─────────── */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    animation: fadeInFallback 0.8s ease forwards;
    animation-delay: 0.1s;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
    animation: none;
}
@keyframes fadeInFallback {
    to { opacity: 1; transform: translateY(0); }
}

/* ── Lightbox ────────────────────────────── */
.lightbox-overlay {
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

/* ── Prose blog ──────────────────────────── */
.prose h2 { margin-top: 2.5rem; margin-bottom: 1rem; }
.prose p  { margin-bottom: 1.25rem; }
.prose ul { margin-bottom: 1.25rem; padding-left: 1.5rem; }
.prose li { margin-bottom: 0.5rem; }

/* ── Blog card hover ─────────────────────── */
article.group a:hover h2 { color: #b45309; }

/* ── Mobile ──────────────────────────────── */
@media (max-width: 768px) {
    .gallery-card { border-radius: 0.75rem; }
    h1 { font-size: 2rem !important; }
    #cursor-dot, #cursor-ring { display: none; }
}

/* ── WhatsApp flotante ───────────────────── */
.whatsapp-float {
    position: fixed;
    bottom: 24px; right: 24px;
    z-index: 40;
    width: 56px; height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* =====================================================
   JOURNEY — Estilos únicos por categoría
   ===================================================== */

/* ── DEPORTES — diagonal, energía, texto derecha ──── */
[data-cat="deportes"] .journey-slide-overlay {
    background: linear-gradient(
        -75deg,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,0.3) 45%,
        rgba(0,0,0,0.88) 100%
    );
}
[data-cat="deportes"] .journey-slide-content {
    margin-left: auto;
    margin-right: 5vw;
    text-align: right;
    max-width: 48%;
}
[data-cat="deportes"] .journey-slide-title {
    font-size: clamp(4rem, 10vw, 11rem);
    letter-spacing: -0.06em;
    line-height: 0.82;
}
[data-cat="deportes"] .journey-slide-btn {
    margin-left: auto;
    border-color: rgba(255,255,255,0.5);
}
[data-cat="deportes"] .journey-slide-preview {
    left: 3vw;
    right: auto;
    grid-template-columns: 1fr;
    width: clamp(140px, 16vw, 220px);
    gap: 4px;
}
[data-cat="deportes"] .journey-preview-item {
    aspect-ratio: 3/2;
}

/* ── BODAS — elegancia, centrado, sin grid ──────── */
[data-cat="bodas"] .journey-slide-overlay {
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.85) 0%,
        rgba(0,0,0,0.2) 40%,
        rgba(0,0,0,0) 70%
    );
}
[data-cat="bodas"] .journey-slide-content {
    position: absolute;
    bottom: 6vh;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    max-width: 70%;
}
[data-cat="bodas"] .journey-slide-title {
    font-size: clamp(3rem, 7vw, 9rem);
    font-weight: 300;
    letter-spacing: 0.18em;
    line-height: 1;
    text-transform: uppercase;
}
[data-cat="bodas"] .journey-slide-index {
    letter-spacing: 0.2em;
}
[data-cat="bodas"] .journey-slide-btn {
    margin: 0 auto;
    border-color: rgba(255,255,255,0.3);
}
[data-cat="bodas"] .journey-slide-preview {
    display: none;
}

/* ── GASTRONOMÍA — calidez, split panel izq ─────── */
[data-cat="gastronomia"] .journey-slide-bg {
    right: 0; left: 38%;
    inset-block: -5%;
    inset-inline: 38% -5%;
}
[data-cat="gastronomia"] .journey-slide-overlay {
    background: linear-gradient(
        90deg,
        #1a0e05 0%,
        #1a0e05 35%,
        rgba(20,10,3,0.6) 55%,
        rgba(0,0,0,0) 75%
    );
}
[data-cat="gastronomia"] .journey-slide-content {
    max-width: 38%;
    padding: 0 4vw;
}
[data-cat="gastronomia"] .journey-slide-title {
    color: #f59e0b;
    font-size: clamp(3rem, 6vw, 7rem);
    letter-spacing: -0.03em;
}
[data-cat="gastronomia"] .journey-slide-count {
    color: rgba(245,158,11,0.5);
}
[data-cat="gastronomia"] .journey-slide-btn {
    border-color: rgba(245,158,11,0.4);
    color: #f59e0b;
}
[data-cat="gastronomia"] .journey-slide-btn:hover {
    background: rgba(245,158,11,0.1);
    border-color: #f59e0b;
}
[data-cat="gastronomia"] .journey-slide-preview {
    right: 2vw;
    grid-template-columns: 1fr;
    width: clamp(130px, 15vw, 200px);
    gap: 4px;
}
[data-cat="gastronomia"] .journey-preview-item {
    aspect-ratio: 1;
}

/* ── CONCIERTOS — oscuro, eléctrico, filmstrip ────── */
[data-cat="conciertos"] .journey-slide-overlay {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(120,40,220,0.18) 0%, transparent 60%),
        linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 40%, rgba(0,0,0,0.85) 100%);
}
[data-cat="conciertos"] .journey-slide-content {
    position: absolute;
    top: 12vh;
    left: 0; right: 0;
    text-align: center;
    max-width: 100%;
    padding: 0 4vw;
}
[data-cat="conciertos"] .journey-slide-title {
    font-size: clamp(4.5rem, 13vw, 16rem);
    letter-spacing: -0.05em;
    line-height: 0.85;
    color: #fff;
    mix-blend-mode: screen; /* luz sobre la foto */
}
[data-cat="conciertos"] .journey-slide-btn {
    margin: 0 auto;
    border-color: rgba(200,150,255,0.35);
    color: rgba(200,150,255,0.9);
}
[data-cat="conciertos"] .journey-slide-btn:hover {
    background: rgba(200,150,255,0.1);
    border-color: rgba(200,150,255,0.7);
}
[data-cat="conciertos"] .journey-slide-preview {
    bottom: 5vh;
    top: auto;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    grid-template-columns: repeat(4, 1fr);
    width: min(80vw, 700px);
    gap: 4px;
}
[data-cat="conciertos"] .journey-preview-item {
    aspect-ratio: 3/4;
}

/* ── Categorías sin estilo propio — default centrado ─ */
[data-cat]:not([data-cat="deportes"]):not([data-cat="bodas"]):not([data-cat="gastronomia"]):not([data-cat="conciertos"])
.journey-slide-title {
    font-size: clamp(3.5rem, 8vw, 9rem);
}

/* ── Páginas legales ─────────────────────── */
.prose-legal { color: #3f3f46; line-height: 1.75; }
.prose-legal h2 { font-size: 1.25rem; font-weight: 700; color: #18181b; margin: 2.5rem 0 0.75rem; padding-bottom: 0.5rem; border-bottom: 1px solid #e4e4e7; }
.prose-legal h3 { font-size: 1rem; font-weight: 600; color: #18181b; margin: 1.5rem 0 0.5rem; }
.prose-legal p  { margin-bottom: 1rem; }
.prose-legal ul { padding-left: 1.5rem; margin-bottom: 1rem; list-style: disc; }
.prose-legal li { margin-bottom: 0.35rem; }
.prose-legal a  { color: #b45309; text-decoration: underline; text-underline-offset: 3px; }
.prose-legal a:hover { color: #92400e; }
.prose-legal table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; font-size: 0.875rem; }
.prose-legal th, .prose-legal td { padding: 0.6rem 0.9rem; text-align: left; border: 1px solid #e4e4e7; }
.prose-legal th { background: #f4f4f5; font-weight: 600; color: #18181b; white-space: nowrap; }
.prose-legal code { background: #f4f4f5; padding: 0.1em 0.35em; border-radius: 3px; font-size: 0.8rem; }
.prose-legal .update-date { font-size: 0.8rem; color: #a1a1aa; margin-top: 3rem; }
.prose-legal .extra-content { margin-top: 1.5rem; }
.legal-links { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid #e4e4e7; display: flex; gap: 1rem; align-items: center; font-size: 0.875rem; }
.legal-links a { color: #b45309; }
.legal-links span { color: #d4d4d8; }
.cookie-revoke-btn { padding: 0.5rem 1rem; border: 1px solid #e4e4e7; border-radius: 6px; font-size: 0.875rem; color: #b45309; background: #fff; cursor: pointer; transition: background 0.2s; margin: 0.5rem 0 1.5rem; }
.cookie-revoke-btn:hover { background: #fef3c7; }

/* ── Cookie banner ───────────────────────── */
.cookie-banner {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 8000;
    width: min(680px, calc(100vw - 2rem));
    background: #18181b;
    border: 1px solid #3f3f46;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.cookie-banner-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.cookie-banner-text { flex: 1; min-width: 0; }
.cookie-banner-title { font-weight: 700; color: #fff; font-size: 0.95rem; margin-bottom: 0.2rem; }
.cookie-banner-desc  { font-size: 0.8rem; color: #a1a1aa; line-height: 1.45; }
.cookie-banner-desc a { color: #b45309; text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner-actions { display: flex; gap: 0.6rem; shrink: 0; flex-wrap: wrap; }
.cookie-btn { padding: 0.55rem 1.1rem; border-radius: 8px; font-size: 0.825rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background 0.2s, border-color 0.2s; }
.cookie-btn-ghost   { background: transparent; border: 1px solid #52525b; color: #a1a1aa; }
.cookie-btn-ghost:hover { border-color: #71717a; color: #fff; }
.cookie-btn-primary { background: #b45309; border: 1px solid #b45309; color: #fff; }
.cookie-btn-primary:hover { background: #92400e; border-color: #92400e; }
@media (max-width: 540px) {
    .cookie-banner-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .cookie-banner-actions { width: 100%; }
    .cookie-btn { flex: 1; text-align: center; }
}
