/* ========================================
   CATÁLOGO DE FOTOS - ESTILOS PRINCIPALES
   Diseño Minimalista y Profesional
======================================== */

:root {
    --color-bg: #0a0a0f;
    --color-bg-secondary: #12121a;
    --color-bg-card: #1a1a25;
    --color-text: #ffffff;
    --color-text-muted: #8b8b9e;
    --color-accent: #6366f1;
    --color-accent-hover: #818cf8;
    --color-border: rgba(255, 255, 255, 0.08);
    --color-overlay: rgba(0, 0, 0, 0.7);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --radius: 16px;
    --radius-sm: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0a0f; /* Fallback directo para móviles */
    background-color: var(--color-bg);
    color: #ffffff; /* Fallback directo */
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ========== UTILIDADES ========== */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--color-accent);
    color: white;
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-outline:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* ========== NAVEGACIÓN ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
    letter-spacing: 2px;
}

.logo span {
    color: var(--color-accent);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-text);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* ========== HERO / PORTADA ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(10, 10, 15, 0.95) 0%,
        rgba(10, 10, 15, 0.7) 50%,
        rgba(10, 10, 15, 0.95) 100%
    );
    z-index: 1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(30%);
}

/* Animated gradient orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    animation: float 20s ease-in-out infinite;
}

.hero-orb-1 {
    width: 600px;
    height: 600px;
    background: var(--color-accent);
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.hero-orb-2 {
    width: 400px;
    height: 400px;
    background: #8b5cf6;
    bottom: -100px;
    left: -100px;
    animation-delay: -5s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, -50px) scale(1.1); }
    50% { transform: translate(-30px, 30px) scale(0.95); }
    75% { transform: translate(-50px, -30px) scale(1.05); }
}

.hero-content {
    text-align: center;
    max-width: 900px;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--color-accent);
    margin-bottom: 2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.chevron-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: -8px;
}

.chevron {
    width: 28px;
    height: 28px;
    color: var(--color-text-muted);
    opacity: 0;
    animation: chevronFade 2s infinite;
    margin-top: -12px;
}

.chevron:first-child {
    margin-top: 0;
    animation-delay: 0s;
}

.chevron:nth-child(2) {
    animation-delay: 0.15s;
}

.chevron:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes chevronFade {
    0% {
        opacity: 0;
        transform: translateY(-8px);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(8px);
    }
}

/* ========== SECCIONES ========== */
.section {
    padding: 8rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ========== CATEGORÍAS GRID ========== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.category-card {
    position: relative;
    height: 450px;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
}

.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.9) 100%
    );
    z-index: 1;
    transition: var(--transition);
}

.category-card:hover::before {
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(99, 102, 241, 0.2) 50%,
        rgba(0, 0, 0, 0.95) 100%
    );
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.2rem;
    z-index: 10;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    border-radius: 0 0 var(--radius) var(--radius);
    transform: translateY(0);
    transition: var(--transition);
}

.category-card-stack .category-card-content {
    padding: 1.2rem 1rem 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 60%, transparent 100%);
}

.category-card:hover .category-card-content {
    transform: translateY(0);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
}

.category-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.category-card-stack .category-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9), 0 1px 3px rgba(0, 0, 0, 0.8);
}

.category-card-count {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.category-card-stack .category-card-count {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.75);
}

.category-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(8px);
    transition: var(--transition);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.category-card-stack .category-card-link {
    color: var(--color-accent-hover);
}

.category-card:hover .category-card-link {
    opacity: 1;
    transform: translateY(0);
}

.category-card-link svg {
    transition: var(--transition);
    width: 16px;
    height: 16px;
}

.category-card-link:hover svg {
    transform: translateX(5px);
}

/* ========== STACK 3D + CARRUSEL PARA CATEGORÍAS ========== */
.category-card-stack {
    perspective: 1000px;
}

.stack-3d-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

/* Capas del stack 3D */
.stack-3d-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--color-bg-card);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center center;
}

/* Posiciones iniciales de las capas */
.stack-3d-layer:nth-child(1) {
    z-index: 1;
    transform: translateX(-20px) translateY(-15px) rotateZ(-6deg) scale(0.92);
    opacity: 0.7;
}

.stack-3d-layer:nth-child(2) {
    z-index: 2;
    transform: translateX(18px) translateY(-10px) rotateZ(4deg) scale(0.96);
    opacity: 0.85;
}

.stack-3d-layer:nth-child(3),
.stack-3d-layer.top-layer {
    z-index: 3;
    transform: translateX(0) translateY(0) rotateZ(0) scale(1);
    opacity: 1;
}

/* Hover effects - capas se despliegan en abanico */
.category-card-stack:hover .stack-3d-layer:nth-child(1) {
    transform: translateX(-35px) translateY(-25px) rotateZ(-10deg) scale(0.9);
    opacity: 0.9;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.category-card-stack:hover .stack-3d-layer:nth-child(2) {
    transform: translateX(30px) translateY(-18px) rotateZ(8deg) scale(0.94);
    opacity: 0.95;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.category-card-stack:hover .stack-3d-layer:nth-child(3),
.category-card-stack:hover .stack-3d-layer.top-layer {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
}

/* Fallback para 1 imagen */
.stack-3d-carousel[data-images="1"] .stack-3d-layer {
    transform: none !important;
}

.category-card-stack:hover .stack-3d-carousel[data-images="1"] .stack-3d-layer {
    transform: translateY(-8px) scale(1.02) !important;
}

/* Imágenes dentro de las capas */
.stack-3d-layer img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, opacity 0.5s ease;
}

.category-card-stack:hover .stack-3d-layer.top-layer img {
    transform: scale(1.1);
}

/* Placeholder cuando no hay imágenes */
.stack-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: var(--color-bg-secondary);
    color: var(--color-text-muted);
}

/* Carrusel de imágenes superpuesto en la capa frontal */
.carousel-images {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    border-radius: var(--radius);
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.carousel-slide.active {
    opacity: 1;
    transform: scale(1);
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card-stack:hover .carousel-slide.active img {
    transform: scale(1.1);
    transition: transform 6s ease;
}

/* Indicadores del carrusel */
.carousel-dots {
    position: absolute;
    bottom: 115px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 11;
    opacity: 0;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    backdrop-filter: blur(4px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.category-card-stack:hover .carousel-dots {
    opacity: 1;
}

.carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--color-accent);
    transform: scale(1.4);
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.7);
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* Efecto de brillo animado en hover */
.category-card-stack::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    z-index: 5;
    pointer-events: none;
    transition: none;
}

.category-card-stack:hover::after {
    animation: shimmer 1.5s ease forwards;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 150%;
    }
}

/* Animación de entrada escalonada */
.category-card-stack .stack-3d-layer {
    animation: stackEntrance 0.6s ease backwards;
}

.category-card-stack .stack-3d-layer:nth-child(1) {
    animation-delay: 0.1s;
}

.category-card-stack .stack-3d-layer:nth-child(2) {
    animation-delay: 0.2s;
}

.category-card-stack .stack-3d-layer:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes stackEntrance {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
    }
}

/* ========== GALERÍA DE IMÁGENES ========== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: var(--color-overlay);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.gallery-item-desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* ========== LIGHTBOX ========== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--color-accent);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-nav:hover {
    background: var(--color-accent);
}

.lightbox-prev {
    left: -80px;
}

.lightbox-next {
    right: -80px;
}

.lightbox-info {
    text-align: center;
    margin-top: 1rem;
}

.lightbox-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.lightbox-desc {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--color-bg-secondary);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo {
    display: inline-block;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--color-accent);
}

.footer-contact p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--color-accent);
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.footer-bottom p {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

/* ========== MENÚ HAMBURGUESA MÓVIL ========== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: var(--transition);
    position: relative;
}

.mobile-menu-toggle span::before,
.mobile-menu-toggle span::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: var(--transition);
    left: 0;
}

.mobile-menu-toggle span::before {
    top: -7px;
}

.mobile-menu-toggle span::after {
    top: 7px;
}

.mobile-menu-toggle.active span {
    background: transparent;
}

.mobile-menu-toggle.active span::before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-menu-toggle.active span::after {
    top: 0;
    transform: rotate(-45deg);
}

/* ========== RESPONSIVE - TABLET ========== */
@media (max-width: 992px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .section {
        padding: 5rem 0;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .category-card {
        height: 380px;
    }
}

/* ========== RESPONSIVE - MOBILE ========== */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    /* Navegación móvil */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav-links.active {
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links a {
        font-size: 1.5rem;
        font-weight: 600;
    }
    
    .navbar {
        padding: 1rem 0;
    }
    
    .navbar.scrolled {
        padding: 0.75rem 0;
    }
    
    /* Hero */
    .hero-content {
        padding: 1.5rem;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .btn {
        padding: 0.85rem 1.75rem;
        font-size: 0.85rem;
        width: 100%;
        max-width: 280px;
    }
    
    .scroll-indicator {
        bottom: 2rem;
    }
    
    /* Secciones */
    .section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    /* Categorías */
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .category-card {
        height: 280px;
    }
    
    .category-card-content {
        padding: 1.25rem;
    }
    
    .category-card-title {
        font-size: 1.35rem;
    }
    
    /* Stack 3D responsive */
    .category-card-stack .category-card-title {
        font-size: 1.1rem;
    }
    
    .category-card-stack .category-card-count {
        font-size: 0.7rem;
    }
    
    .category-card-stack .category-card-link {
        font-size: 0.7rem;
    }
    
    /* Reducir movimiento del stack en móvil */
    .stack-3d-layer:nth-child(1) {
        transform: translateX(-10px) translateY(-8px) rotateZ(-4deg) scale(0.94);
    }
    
    .stack-3d-layer:nth-child(2) {
        transform: translateX(10px) translateY(-5px) rotateZ(3deg) scale(0.97);
    }
    
    .category-card-stack:hover .stack-3d-layer:nth-child(1) {
        transform: translateX(-15px) translateY(-12px) rotateZ(-6deg) scale(0.92);
    }
    
    .category-card-stack:hover .stack-3d-layer:nth-child(2) {
        transform: translateX(15px) translateY(-8px) rotateZ(5deg) scale(0.95);
    }
    
    .carousel-dots {
        bottom: 95px;
        padding: 5px 8px;
    }
    
    .carousel-dot {
        width: 5px;
        height: 5px;
    }

    /* Lightbox móvil mejorado */
    .lightbox-content {
        max-width: 100vw;
        max-height: 100vh;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 1rem;
    }
    
    .lightbox-content img {
        max-height: 70vh;
        border-radius: 8px;
    }
    
    .lightbox-close {
        position: fixed;
        top: 1rem;
        right: 1rem;
        width: 44px;
        height: 44px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
    }
    
    .lightbox-nav {
        width: 44px;
        height: 44px;
        background: rgba(255, 255, 255, 0.15);
    }
    
    .lightbox-prev {
        left: 0.5rem;
    }
    
    .lightbox-next {
        right: 0.5rem;
    }
    
    .lightbox-info {
        padding: 1rem 0;
    }
    
    .lightbox-title {
        font-size: 1rem;
    }
    
    .lightbox-desc {
        font-size: 0.8rem;
    }
    
    /* Breadcrumb */
    .breadcrumb {
        padding: 5.5rem 0 1rem;
    }
    
    .breadcrumb-list {
        font-size: 0.8rem;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    /* Page header */
    .page-header {
        padding: 1rem 0 2rem;
    }
    
    .page-title {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    .page-description {
        font-size: 0.95rem;
    }
    
    /* Footer */
    .footer {
        padding: 2.5rem 0 1.5rem;
    }
    
    .footer-content {
        gap: 2rem;
    }
    
    .footer-bottom {
        padding-top: 1.5rem;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
    }
}

/* ========== RESPONSIVE - MOBILE SMALL ========== */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.85rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .page-description {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .category-card {
        height: 240px;
    }
    
    .category-card-title {
        font-size: 1.2rem;
    }
    
    .breadcrumb {
        padding: 5rem 0 0.75rem;
    }
}

/* ========== TOUCH IMPROVEMENTS ========== */
@media (hover: none) and (pointer: coarse) {
    .gallery-item-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
    }
    
    .category-card-link {
        opacity: 1;
        transform: translateY(0);
    }
    
    .category-card-content {
        transform: translateY(0);
    }
    
    /* Aumentar áreas táctiles */
    .filter-btn,
    .tag-btn {
        min-height: 44px;
    }
    
    .nav-links a {
        padding: 0.5rem 1rem;
    }
}

/* ========== ANIMACIONES DE ENTRADA ========== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ========== BREADCRUMB ========== */
.breadcrumb {
    padding: 8rem 0 2rem;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    list-style: none;
    font-size: 0.9rem;
}

.breadcrumb-list a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-list a:hover {
    color: var(--color-accent);
}

.breadcrumb-list .separator {
    color: var(--color-text-muted);
}

.breadcrumb-list .current {
    color: var(--color-text);
}

/* ========== PAGE HEADER ========== */
.page-header {
    padding: 2rem 0 4rem;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-description {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    max-width: 600px;
}

/* ========== LOADING ========== */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========== MENSAJES ========== */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* ========== EMPTY STATE ========== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.empty-state-text {
    color: var(--color-text-muted);
}
