/* ===========================================
   PRELOADER CON LOGO GIRANDO
   =========================================== */
.projects-preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.projects-preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.projects-preloader-content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.projects-preloader-logo {
  width: 120px;
  height: 120px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Ocultar scroll mientras el preloader está activo */
body.projects-preloader-active {
  overflow: hidden;
}

/* Responsive para el preloader */
@media (max-width: 768px) {
  .projects-preloader-logo {
    width: 80px;
    height: 80px;
  }
}

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


.container_galeria {
    max-width: 100%;
    padding: 0px 20px;
    margin: 0 auto;
}

/* Filtros */
.filters {
	text-align: center;
	margin-bottom: 40px;
}

.filter-btn {
    background: white;
    border: 2px solid #ddd;
    padding: 12px 24px;
    margin: 0 10px 10px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #666;
}

.filter-btn:hover,
.filter-btn.active {
	background: #dcff81;
	border-color: #dcff81;
    color: #333;
    transform: translateY(-2px);
}

/* Galería */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-flow: dense;
    grid-auto-rows: 300px;
    gap: 15px;
    margin-bottom: 60px;
}

.gallery-item {
	position: relative;
    overflow: hidden;
	cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

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

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Overlay hover */
.gallery-item::after {
    content: '+';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
    background: rgba(220, 255, 129, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: black;
	opacity: 0;
    transition: opacity 0.3s ease;
    font-weight: 300;
}

.gallery-item:hover::after {
	opacity: 1;
}

/* Clases especiales */
.gallery-item.wide {
    grid-column: span 2;
}

.gallery-item.tall {
    grid-row: span 2;
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
	top: 0;
	left: 0;
	width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
	position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.lightbox-close {
	position: absolute;
    top: -40px;
	right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
	background: none;
	border: none;
}

.lightbox-nav {
	position: absolute;
	top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
	border: none;
    width: 50px;
    height: 50px;
	cursor: pointer;
    font-size: 1.5rem;
    color: #333;
}

.lightbox-prev {
    left: -60px;
}

.lightbox-next {
    right: -60px;
}

.lightbox-counter {
	position: absolute;
    bottom: -40px;
	left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1rem;
}

/* Responsive */

/* Desktop grande (1400px+) */
@media (min-width: 1400px) {
    .gallery {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: 350px;
        gap: 20px;
	}  
}

/* Desktop (1024px - 1399px) */
@media (min-width: 1024px) and (max-width: 1399px) {
    .gallery {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 300px;
        gap: 15px;
	}
}

/* Tablet horizontal (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 280px;
        gap: 12px;
	}
    
    .gallery-item.wide {
        grid-column: span 2;
    }
    
    .gallery-item.tall {
        grid-row: span 2;
	}
    
    .gallery-item.large {
        grid-column: span 2;
        grid-row: span 1;
	}
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
	}
}

/* Tablet vertical y móvil grande (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    .container_galeria {
		padding: 0 15px;
    }
    
    .gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
        gap: 10px;
    }
    
    .gallery-item.wide,
    .gallery-item.tall,
    .gallery-item.large {
        grid-column: span 1;
        grid-row: span 1;
	}
    
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
	 }
    
    .lightbox-prev {
        left: 10px;
	}
    
    .lightbox-next {
        right: 10px;
	 }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
        margin: 0 5px 8px 0;
	}
}

/* Móvil (hasta 480px) */
@media (max-width: 480px) {
    .container_galeria {
        padding: 0 10px;
	}
    
    .gallery {
        grid-template-columns: 1fr;
        grid-auto-rows: 280px;
        gap: 12px;
	}
    
    .gallery-item.wide,
    .gallery-item.tall,
    .gallery-item.large {
        grid-column: span 1;
        grid-row: span 1;
	}

    .gallery-item:hover {
        transform: none;
	}
	
    .gallery-item:hover img {
        transform: none;
	}
	
    .lightbox-nav {
        display: none;
        width: 40px;
    height: 40px;
	}
	
    .lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 1.5rem;
	}
	
    .filter-btn {
        padding: 8px 14px;
        font-size: 0.8rem;
        margin: 0 4px 8px 0;
	}
}

/* Estados de filtro */
.gallery-item.hidden {
    display: none;
}

/* ===========================================
   LIGHTBOX STYLES - RESPONSIVE
   =========================================== */

/* Lightbox Base Styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999 !important;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox #lightboxImg {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    background: none;
    border: none;
    width: 50px;
    height: 50px;
    line-height: 50px;
    z-index: 100000;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    width: 60px;
    height: 60px;
    cursor: pointer;
    font-size: 2rem;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100001;
    transition: all 0.3s ease;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.2rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 20px;
}

/* Lightbox Responsive */

/* Tablet horizontal (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .lightbox-nav {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
    }
    
    .lightbox-prev {
        left: 15px;
    }
    
    .lightbox-next {
        right: 15px;
    }
    
    .lightbox-close {
        font-size: 2.5rem;
    }
}

/* Tablet vertical y móvil grande (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    .lightbox-content {
        max-width: 95vw;
        max-height: 85vh;
    }
    
    .lightbox #lightboxImg {
        max-height: 85vh;
    }
    
    .lightbox-nav {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
        background: transparent;
        border: none;
        color: white;
        display: flex !important;
        align-items: center;
        justify-content: center;
        z-index: 100001;
    }
    
    .lightbox-prev {
        left: 15px;
    }
    
    .lightbox-next {
        right: 15px;
    }
    
    .lightbox-close {
        top: 15px;
        right: 15px;
        font-size: 2.2rem;
    }
    
    .lightbox-counter {
        font-size: 1rem;
        padding: 8px 16px;
        bottom: 15px;
    }
}

/* Móvil (hasta 480px) */
@media (max-width: 480px) {
    .lightbox-content {
        max-width: 98vw;
        max-height: 80vh;
    }
    
    .lightbox #lightboxImg {
        max-height: 80vh;
    }
    
    .lightbox-nav {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
        background: transparent;
        border: none;
        color: white;
        display: flex !important;
        align-items: center;
        justify-content: center;
        z-index: 100001;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 1.5rem;
        background: transparent;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .lightbox-counter {
        font-size: 0.9rem;
        padding: 6px 12px;
        bottom: 10px;
    }
}

/* Móvil pequeño (hasta 360px) */
@media (max-width: 360px) {
    .lightbox-nav {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    .lightbox-prev {
        left: 5px;
    }
    
    .lightbox-next {
        right: 5px;
    }
    
    .lightbox-close {
        width: 25px;
        height: 25px;
        font-size: 1.2rem;
    }
}






/*ESTILOSSS HTML*/


h1, h2, h3, h4, h5, h6 { font-family: "Space Grotesk", sans-serif !important; }
body, p, span, div, a, li, td, th, label, input, textarea, select, button { font-family: "Inter", sans-serif !important; }



 /* ===========================================
       RESPONSIVE GLOBAL FONT SIZES
       =========================================== */
    
    /* Tablet vertical y móvil grande (481px - 767px) */
    @media (min-width: 481px) and (max-width: 767px) {
        body {
            font-size: 15px;
        }
        
        h1 {
            font-size: 2rem !important;
        }
        
        h2 {
            font-size: 1.5rem !important;
        }
        
        h3 {
            font-size: 1.25rem !important;
        }
        
        p, .fs-5 {
            font-size: 15px !important;
        }
    }
    
    /* Móvil (hasta 480px) */
    @media (max-width: 480px) {
        body {
            font-size: 14px;
        }
        
        h1 {
            font-size: 1.75rem !important;
        }
        
        h2 {
            font-size: 28px !important;
        }
        
        h3 {
            font-size: 28px !important;
        }
        
        p, .fs-5 {
            font-size: 14px !important;
        }
        
        .badge {
            font-size: 12px !important;
        }
        
        /* Información importante en fila horizontal */
        .stats-facts .row .col-md-6 {
            flex: 0 0 auto;
            width: 33.333% !important;
            margin-bottom: 0 !important;
            padding: 0 5px !important;
        }
        
        .stats-facts .service-box {
            padding: 10px 5px !important;
        }
        
        .stats-facts .service-box .d-flex {
            padding: 8px 4px !important;
            text-align: center;
            align-items: center !important;
            justify-content: center !important;
        }
        
        .stats-facts .service-box p {
            font-size: 12px !important;
            text-align: center !important;
            width: 100%;
        }
        
        .stats-facts .service-box .text-dark {
            font-size: 14px !important;
            text-align: center !important;
        }
    }
    
    /* Móvil pequeño (hasta 360px) */
    @media (max-width: 360px) {
        body {
            font-size: 13px;
        }
        
        h1 {
            font-size: 1.5rem !important;
        }
        
        h2 {
            font-size: 28px !important;
        }
        
        h3 {
            font-size: 28px !important;
        }
        
        p, .fs-5 {
            font-size: 13px !important;
        }
        
        .badge {
            font-size: 11px !important;
        }
        
        /* Información importante en fila horizontal */
        .stats-facts .row .col-md-6 {
            flex: 0 0 auto;
            width: 33.333% !important;
            margin-bottom: 0 !important;
            padding: 0 3px !important;
        }
        
        .stats-facts .service-box {
            padding: 8px 3px !important;
        }
        
        .stats-facts .service-box .d-flex {
            padding: 6px 3px !important;
            text-align: center;
            align-items: center !important;
            justify-content: center !important;
        }
        
        .stats-facts .service-box p {
            font-size: 11px !important;
            text-align: center !important;
            width: 100%;
        }
        
        .stats-facts .service-box .text-dark {
            font-size: 13px !important;
            text-align: center !important;
        }
    }
    
    /* ===========================================
       VIDEO SLIDER ESTILO NETFLIX
       =========================================== */
    .video-slider-container {
        position: relative;
        width: 100%;
        overflow: hidden;
    }

    .video-slider {
        display: flex;
        gap: 15px;
        overflow-x: auto;
        scroll-behavior: smooth;
        padding: 10px 0;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
    }

    .video-slider::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    .video-item {
        flex: 0 0 auto;
        width: 400px;
        height: 280px;
        background: #000;
        border-radius: 8px;
        overflow: hidden;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        cursor: pointer;
    }

    .video-item:hover {
        transform: scale(1.05);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        z-index: 10;
    }

    .video-item iframe {
        width: 100%;
        height: 100%;
        border: none;
        pointer-events: none; /* Deshabilitar interacción en el slider */
        background: #000;
    }

    /* Video Lightbox Modal */
    .video-lightbox {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        z-index: 99999;
        align-items: center;
        justify-content: center;
    }

    .video-lightbox.active {
        display: flex;
    }

    .video-lightbox-content {
        position: relative;
        width: 90vw;
        max-width: 1200px;
        height: auto;
    }

    .video-lightbox-container {
        position: relative;
        padding-bottom: 56.25%; /* 16:9 aspect ratio */
        height: 0;
        overflow: hidden;
        border-radius: 8px;
    }

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

    .video-lightbox-close {
        position: absolute;
        top: -50px;
        right: 0;
        background: transparent;
        color: white;
        border: none;
        font-size: 40px;
        cursor: pointer;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.2s ease;
    }

    .video-lightbox-close:hover {
        transform: scale(1.2);
    }

    /* Video Lightbox Responsive */
    
    /* Tablet horizontal (768px - 1023px) */
    @media (min-width: 768px) and (max-width: 1023px) {
        .video-lightbox-content {
            width: 90vw;
        }
        
        .video-lightbox-close {
            top: -40px;
            font-size: 35px;
        }
    }
    
    /* Tablet vertical y móvil grande (481px - 767px) */
    @media (min-width: 481px) and (max-width: 767px) {
        .video-lightbox-content {
            width: 95vw;
        }
        
        .video-lightbox-close {
            top: -35px;
            right: 0;
            font-size: 30px;
        }
    }
    
    /* Móvil (hasta 480px) */
    @media (max-width: 480px) {
        .video-lightbox-content {
            width: 98vw;
        }
        
        .video-lightbox-close {
            top: 10px;
            right: 10px;
            font-size: 28px;
            background: rgba(0, 0, 0, 0.7);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .video-lightbox-container {
            padding-bottom: 56.25%;
        }
    }
    
    /* Móvil pequeño (hasta 360px) */
    @media (max-width: 360px) {
        .video-lightbox-close {
            width: 35px;
            height: 35px;
            font-size: 24px;
        }
    }

    .slider-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(0, 0, 0, 0.7);
        color: white;
        border: none;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        cursor: pointer;
        z-index: 100;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        transition: all 0.3s ease;
        opacity: 0;
    }

    .video-slider-container:hover .slider-nav {
        opacity: 1;
    }

    .slider-nav:hover {
        background: rgba(0, 0, 0, 0.9);
        transform: translateY(-50%) scale(1.1);
    }

    .slider-nav-left {
        left: 10px;
    }

    .slider-nav-right {
        right: 10px;
    }

    /* Responsive Video Slider */
    
    /* Desktop grande (1400px+) */
    @media (min-width: 1400px) {
        .video-item {
            width: 500px;
            height: 300px;
        }
    }
    
    /* Desktop (1024px - 1399px) */
    @media (min-width: 1024px) and (max-width: 1399px) {
        .video-item {
            width: 400px;
            height: 280px;
        }
    }
    
    /* Tablet horizontal (768px - 1023px) */
    @media (min-width: 768px) and (max-width: 1023px) {
        .video-item {
            width: 85vw;
            max-width: 600px;
            height: 300px;
        }
        
        .slider-nav {
            opacity: 1;
            width: 45px;
            height: 45px;
            font-size: 22px;
        }
    }
    
    /* Tablet vertical y móvil grande (481px - 767px) */
    @media (min-width: 481px) and (max-width: 767px) {
        .video-item {
            width: 90vw;
            height: 260px;
        }
        
        .slider-nav {
            opacity: 1;
            width: 40px;
            height: 40px;
            font-size: 20px;
        }
        
        .slider-nav-left {
            left: 5px;
        }
        
        .slider-nav-right {
            right: 5px;
        }
    }
    
    /* Móvil (hasta 480px) */
    @media (max-width: 480px) {
        .video-slider-container {
            padding: 0;
        }
        
        .video-item {
            width: 95vw;
            height: 220px;
        }
        
        .slider-nav {
            opacity: 1;
            width: 35px;
            height: 35px;
            font-size: 18px;
        }
        
        .slider-nav-left {
            left: 3px;
        }
        
        .slider-nav-right {
            right: 3px;
        }
    }
    
    /* Móvil pequeño (hasta 360px) */
    @media (max-width: 360px) {
        .video-item {
            width: 98vw;
            height: 200px;
        }
    }

    /* ===========================================
       FILTER BUTTONS
       =========================================== */
    .projects-filter-altamira {
        margin-bottom: 20px;
    }

    .projects-filter-altamira .filter-btn {
        background: white;
        border: 2px solid #222;
        color: #222;
        padding: 12px 30px;
        border-radius: 30px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .projects-filter-altamira .filter-btn:hover {
        background: #222;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

    .projects-filter-altamira .filter-btn.active {
        background: #dcff81;
        border-color: #dcff81;
        color: #222;
    }

    /* Responsive Filters */
    
    /* Tablet horizontal (768px - 1023px) */
    @media (min-width: 768px) and (max-width: 1023px) {
        .projects-filter-altamira .filter-btn {
            padding: 10px 24px;
            font-size: 13px;
        }
    }
    
    /* Tablet vertical y móvil grande (481px - 767px) */
    @media (min-width: 481px) and (max-width: 767px) {
        .projects-filter-altamira {
            margin-bottom: 15px;
        }
        
        .projects-filter-altamira .filter-btn {
            padding: 10px 20px;
            font-size: 12px;
            letter-spacing: 0.3px;
        }
    }
    
    /* Móvil (hasta 480px) */
    @media (max-width: 480px) {
        .projects-filter-altamira {
            margin-bottom: 10px;
        }
        
        .projects-filter-altamira .d-flex {
            flex-wrap: wrap;
            gap: 8px !important;
        }
        
        .projects-filter-altamira .filter-btn {
            padding: 8px 16px;
            font-size: 11px;
            letter-spacing: 0.2px;
            flex: 1 1 auto;
            min-width: fit-content;
        }
    }
    
    /* Móvil pequeño (hasta 360px) */
    @media (max-width: 360px) {
        .projects-filter-altamira .filter-btn {
            padding: 8px 14px;
            font-size: 10px;
        }
    }

    .gallery-item {
        cursor: pointer;
        background: #f0f0f0;
        will-change: transform;
    }
    
    .gallery-item img {
        cursor: pointer !important;
        pointer-events: all;
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    
    /* Deshabilitar el hover scale y el overlay + para mejor performance */
    .gallery-item::after {
        display: none !important;
    }
    
    /* Lightbox Styles - Override */
    .lightbox {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        z-index: 99999 !important;
        align-items: center;
        justify-content: center;
    }
    
    .lightbox-content {
        position: relative;
        max-width: 90vw;
        max-height: 90vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .lightbox #lightboxImg {
        max-width: 100%;
        max-height: 90vh;
        object-fit: contain;
    }
    
    .lightbox-close {
        position: absolute;
        top: 20px;
        right: 20px;
        color: white;
        font-size: 3rem;
        cursor: pointer;
        background: none;
        border: none;
        width: 50px;
        height: 50px;
        line-height: 50px;
        z-index: 100000;
    }
    
    .lightbox-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(255, 255, 255, 0.9);
        border: none;
        width: 60px;
        height: 60px;
        cursor: pointer;
        font-size: 2rem;
        color: #333;
        border-radius: 50%;
    }
    
    .lightbox-prev {
        left: 20px;
    }
    
    .lightbox-next {
        right: 20px;
    }
    
    .lightbox-counter {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        color: white;
        font-size: 1.2rem;
        background: rgba(0, 0, 0, 0.5);
        padding: 10px 20px;
        border-radius: 20px;
    }
    
    /* Image Lightbox Responsive */
    
    /* Tablet horizontal (768px - 1023px) */
    @media (min-width: 768px) and (max-width: 1023px) {
        .lightbox-nav {
            width: 50px;
            height: 50px;
            font-size: 1.8rem;
        }
        
        .lightbox-prev {
            left: 15px;
        }
        
        .lightbox-next {
            right: 15px;
        }
        
        .lightbox-close {
            font-size: 2.5rem;
        }
    }
    
    /* Tablet vertical y móvil grande (481px - 767px) */
    @media (min-width: 481px) and (max-width: 767px) {
        .lightbox-content {
            max-width: 95vw;
            max-height: 85vh;
        }
        
        .lightbox #lightboxImg {
            max-height: 85vh;
        }
        
        .lightbox-nav {
            width: 45px;
            height: 45px;
            font-size: 1.5rem;
        }
        
        .lightbox-prev {
            left: 10px;
        }
        
        .lightbox-next {
            right: 10px;
        }
        
        .lightbox-close {
            top: 15px;
            right: 15px;
            font-size: 2.2rem;
        }
        
        .lightbox-counter {
            font-size: 1rem;
            padding: 8px 16px;
            bottom: 15px;
        }
    }
    
    /* Móvil (hasta 480px) */
    @media (max-width: 480px) {
        .lightbox-content {
            max-width: 98vw;
            max-height: 80vh;
        }
        
        .lightbox #lightboxImg {
            max-height: 80vh;
        }
        
        .lightbox-nav {
            display: none;
        }
        
        .lightbox-close {
            top: 10px;
            right: 10px;
            font-size: 2rem;
            background: rgba(0, 0, 0, 0.7);
            width: 45px;
            height: 45px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .lightbox-counter {
            font-size: 0.9rem;
            padding: 6px 12px;
            bottom: 10px;
        }
    }
    
    /* Móvil pequeño (hasta 360px) */
    @media (max-width: 360px) {
        .lightbox-close {
            width: 40px;
            height: 40px;
            font-size: 1.8rem;
        }
        
        .lightbox-counter {
            font-size: 0.85rem;
            padding: 5px 10px;
        }
    }