.elementor-930 .elementor-element.elementor-element-b623612{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;}/* Start custom CSS for html, class: .elementor-element-fe8abab */:root {
    --primary-color: #64bfbf;
    --secondary-color: #64bfbf;
    --background-color: #ffffff;
    --text-color: #4a4a4a;
    --modal-background: rgba(0, 0, 0, 0.8);
    --accent-color: #fff0f6;
    --font-primary: 'Cinzel', serif;
    --font-secondary: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --glass-bg: rgba(255, 255, 255, 0.18);
    --glass-border: rgba(255, 255, 255, 0.25);
    --shadow-lg: 0 20px 40px rgba(248, 187, 208, 0.25);
    --radius-xl: 24px;
    --nav-blur: 12px;
    --gold: #d4af37;
    --gold-2: #c2ae48ff;
}

/* Contenedor de video de portada full-bleed */
.header-video {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

/* Video de fondo en categorías */
.categories-video {
    position: absolute;
    /* Cubrir exactamente el contenedor */
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
.categories-video::after {
    content: '';
    position: absolute;
    inset: 0;
    /* Overlay más suave para ver claramente el video */
    background: linear-gradient(180deg, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0.55) 60%, rgba(255,255,255,0.7) 100%);
}
.categories-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.categories-view > *:not(.categories-video) {
    position: relative;
    z-index: 1;
}

/* Eliminar patrón de cuadriculado para que no se vea sobre las cards */
.categories-view::before { 
    display: none !important; 
}
.header-video::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.32) 100%);
}
.header-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Patrón sutil tipo rejilla para dar textura al fondo del carrusel */
.categories-view::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(126,87,194,0.05) 1px, transparent 1px),
      linear-gradient(90deg, rgba(126,87,194,0.05) 1px, transparent 1px);
    background-size: 28px 28px, 28px 28px;
    pointer-events: none;
    z-index: 0;
}

/* --- Compatibilidad con Elementor/WordPress --- */
/* Ocultar el modal de PIN cuando estás en el editor de Elementor */
.elementor-editor-active #pinModal { 
    display: none !important; 
}

/* Forzar paleta lila en el modal (evita que estilos del tema cambien) */
#pinModal h2 { 
    color: #7e57c2 !important; 
}
#pinInput { 
    border-color: #b39ddb !important; 
}
#submitPin { 
    background-color: #7e57c2 !important; 
    color: #ffffff !important; 
}
#submitPin:hover { 
    background-color: #5e35b1 !important; 
}

/* Asegurar centrado dentro de contenedores de Elementor */
.elementor .gallery-view { 
    width: 100% !important; 
    margin: 0 auto !important; 
    padding: 0 !important; 
    display: flex; 
    justify-content: center; 
}
.elementor .gallery-container { 
    margin-left: auto !important; 
    margin-right: auto !important; 
    max-width: 560px; 
    justify-items: center; 
}
@media (max-width: 768px) {
  .elementor .gallery-container { max-width: 480px; }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: none;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-secondary), sans-serif;
    background: radial-gradient(1200px 600px at 100% -10%, #f3e5f5 0%, transparent 60%),
                radial-gradient(1200px 600px at -10% 110%, #ede7f6 0%, transparent 60%),
                var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    padding-bottom: 0px;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary), serif;
    color: var(--text-color);
}

h1 { font-size: 2.0em; }

h2 { font-size: 1.5em; }

h3 { font-size: 1.75em; }
h4 { font-size: 1.5em; }
h5 { font-size: 1.25em; }
h6 { font-size: 1em; }

p {
    font-size: 1em;
    margin-bottom: 1em;
}

a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
    background-color: var(--background-color);
}

button {
    transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Limitar hover a botones de acción, no a navegación */
.primary-button:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Evitar que los botones de la barra inferior queden sombreados/pegados */
.nav-item:hover,
.nav-item:active,
.nav-item:focus {
    background: transparent;
    outline: none;
}

/* No permitir que quede un estado 'activo' con fondo */
.nav-item.active {
    background: transparent !important;
}

header {
    position: relative;
    height: 46vh;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 50%, #d1c4e9 100%);
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    margin: 0;
    padding: 0;
    width: 100%;
}

/* Blobs decorativos en el header */
header::before,
header::after {
    content: '';
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    z-index: 0;
}
header::before {
    background: radial-gradient(circle at 30% 30%, #d1c4e9, transparent 60%);
    top: -100px;
    left: -80px;
}
header::after {
    background: radial-gradient(circle at 70% 70%, #b39ddb, transparent 60%);
    bottom: -120px;
    right: -100px;
}

.header-container {
    position: relative;
    height: 100%;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(to bottom, rgba(255,255,255,0.0) 0%, rgba(255,255,255,0.20) 100%);
    z-index: 1;
}

/* Tarjeta de vidrio sobre el header */
.header-container .event-info {
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 16px 22px;
    box-shadow: var(--shadow-lg);
    margin: 0 auto;
    max-width: 760px;
}

.event-info {
    color: #ffffff;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.event-name, .event-title {
    color: #ffffff;
    font-size: 30px;
    opacity: 0.9;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.event-title {
    font-size: 48px;
    font-weight: 800;
    margin: 20px 0;
    letter-spacing: 1.5px;
    background: linear-gradient( #fffffff, var(--gold-2) 105%, var(--gold) 70%);
    -webkit-background-clip: text;
    background-clip: text;
    color: #ffffff;
    text-shadow: 0 2px 14px rgba(0,0,0,0.45);
    -webkit-text-stroke: 0.6px rgba(255,255,255,0.35);
    font-variant-ligatures: discretionary-ligatures;
}

.event-title::before,
.event-title::after {
    content: '';
    display: none;
    vertical-align: middle;
    height: 2px;
    width: 42px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 0 12px;
}

.event-date {
    font-family: var(--font-secondary);
    font-size: 22px;
    opacity: 0.95;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.65), 0 0 1px rgba(255,255,255,0.25);
}

.decorative-divider {
    width: 0px;
    height: 0px;
    background: var(--primary-color);
    margin: 0px auto;
}

.categories-view {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 45vh);
    background:
      radial-gradient(1200px 600px at 120% -20%, rgba(179,157,219,0.25), transparent 60%),
      radial-gradient(1200px 600px at -20% 120%, rgba(126,87,194,0.20), transparent 60%),
      linear-gradient(180deg, #ffffff 0%, #fbf7ff 100%);
    position: relative;
    border-radius: 30px 30px 0 0;
    margin-top: -30px;
    padding: 50px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.section-title {
    font-family: var(--font-primary);
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
    margin: 10px 0 30px;
    text-align: center;
    position: relative;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.section-title::after {
    content: '';
    display: block;
    width: 64px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-2), var(--gold));
    margin: 8px auto 0;
}

.carousel-container {
    width: 100%;
    height: 350px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 10px 0;
}

.carousel-slide {
    position: absolute;
    width: 160px;
    height: 320px;
    transform: translateX(calc(-50% + var(--offset, 0px)));
    opacity: var(--opacity, 0.6);
    z-index: var(--z-index, 0);
    transition: all 0.6s ease;
    pointer-events: all;
    will-change: transform, opacity;
    cursor: pointer;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
    --opacity: 1;
    --z-index: 2;
    transform: translateX(0%) scale(1.1);
    border: 0px solid var(--primary-color);
}

.carousel-slide:not(.active) {
    opacity: 0.8;
    transform: translateX(calc(-10% + var(--offset, 160px))) scale(0.9);
    filter: blur(0.5px);
}

.carousel-slide[data-position="-1"] {
    --offset: -100px;
    z-index: 1;
}

.carousel-slide[data-position="1"] {
    --offset: 100px;
    z-index: 1;
}

.category-card {
    width: 160px;
    height: 280px;
    border-radius: 20px;
    overflow: hidden;
    background: var(--background-color);
    box-shadow: 0 10px 24px rgba(0,0,0,0.14), 0 6px 12px rgba(179,157,219,0.18);
    position: absolute;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    left: 50%;
    transform: translateX(-50%);
    border: none;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 0;
    background: var(--background-color);
    border-radius: 20px;
    overflow: hidden;
}

.card-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    position: absolute;
    top: 0;
    left: 0;
}

.category-card:hover .card-content img {
    transform: scale(1.08);
}

.card-content span {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 15px;
    background: linear-gradient(to top,
        rgba(255,193,227,0.45) 0%,
        rgba(255,193,227,0.25) 50%,
        transparent 100%);
    color: white;
    font-size: 18px;
    font-family: var(--font-primary);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.carousel-indicators {
    display: none;
}

.carousel-3d-container {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.carousel-3d {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.gallery-view {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden;
    margin: 0 auto !important;
    padding: 0 !important;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    background-color: transparent;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 0 !important;
    justify-content: center;
}

.gallery-item {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

/* Borde degradado de lujo al hacer hover */
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(241,227,160,0.0), rgba(212,175,55,0.4));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.gallery-item:hover::after { opacity: 1; }

/* Grid responsivo más denso en pantallas anchas */
@media (min-width: 768px) {
  .gallery-container { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}
@media (min-width: 1024px) {
  .gallery-container { grid-template-columns: repeat(4, 1fr); gap: 14px; }
}

/* Centrado y ajustes en móvil */
@media (max-width: 768px) {
  .header-container .event-info { 
    width: 92%; 
    padding: 14px 16px; 
    border-radius: 18px; 
  }
  .event-title { font-size: 36px; letter-spacing: 1px; }
  .event-name { font-size: 22px; }
  .event-date { font-size: 18px; }

  .gallery-view { 
    display: flex !important; 
    justify-content: center; 
    width: 100% !important; 
    padding: 0 !important; 
  }
  .gallery-container { 
    margin-left: auto !important; 
    margin-right: auto !important; 
    max-width: 96vw; 
    padding: 0 12px !important; 
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: center; 
  }
}

/* Centrado general del contenedor de galería en todas las vistas */
.gallery-container {
  margin-left: auto;
  margin-right: auto;
  max-width: 1100px;
}

/* Ajustes finos para pantallas muy pequeñas (≤320px) */
@media (max-width: 360px) {
  header { height: 52vh; }
  .header-container .event-info { 
    width: 94%; 
    padding: 12px 14px; 
    border-radius: 16px; 
    margin: 0 auto; 
  }
  .event-name { font-size: 20px; letter-spacing: 1px; }
  .event-title { font-size: 30px; letter-spacing: 0.8px; -webkit-text-stroke: 0.5px rgba(255,255,255,0.35); }
  .event-title::before, .event-title::after { width: 28px; margin: 0 8px; }
  .event-date { font-size: 16px; }
  .header-video::after { background: linear-gradient(to bottom, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0.30) 100%); }

  /* Galería perfectamente centrada y con padding equilibrado */
  .gallery-view { display: flex !important; justify-content: center; }
  .gallery-container { max-width: 300px; padding: 0 10px !important; }
}

.bottom-nav {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(16px + env(safe-area-inset-bottom));
    display: flex;
    justify-content: center;
    gap: 18px;
    padding: 10px 16px;
    background: rgba(255,255,255,0.85);
    -webkit-backdrop-filter: blur(var(--nav-blur));
    backdrop-filter: blur(var(--nav-blur));
    border: 1px solid rgba(179,157,219,0.35);
    border-radius: 28px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 90;
    width: auto;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: #666;
    font-size: 12px;
    font-family: var(--font-secondary);
    cursor: pointer;
    padding: 8px 10px;
    margin: 0;
    transition: all 0.3s ease;
}

.nav-item i {
    font-size: 22px;
    transition: transform 0.3s ease;
}

.nav-item:hover i {
    transform: translateY(-2px) scale(1.05);
    color: var(--primary-color);
}

.nav-item.active {
    color: var(--primary-color);
    background: rgba(179,157,219,0.15);
    border-radius: 16px;
    box-shadow: inset 0 0 0 1px rgba(179,157,219,0.35);
}

.upload-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--background-color);
    z-index: 200;
}

.upload-content {
    height: 100%;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 600;
}

.close-button {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-color);
    cursor: pointer;
}

.image-upload-area {
    aspect-ratio: 2/3;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #f8f8f8;
}

.upload-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #666;
}

.upload-placeholder i {
    font-size: 32px;
    margin-bottom: 8px;
}

.image-preview {
    display: none;
    width: 100%;
    height: 100%;
}

.image-preview.active {
    display: block;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-image {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    font-size: 16px;
    resize: none;
    background: var(--background-color);
    color: var(--text-color);
}

.category-select {
    width: 50%;
    padding: 8px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    font-size: 16px;
    margin-top: 20px;
    background: var(--background-color);
    color: var(--text-color);
    appearance: none;
}

.primary-button {
    background: linear-gradient(135deg, #7e57c2, #b39ddb);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 28px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(126,87,194,0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
}

.primary-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.primary-button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(126,87,194,0.3);
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--modal-background);
    z-index: 300;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.lightbox-content {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    touch-action: pan-x pan-y pinch-zoom;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

/* Animación sutil de blobs */
@keyframes blobFloat {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(10px) scale(1.03); }
  100% { transform: translateY(0) scale(1); }
}
header::before { animation: blobFloat 9s ease-in-out infinite; }
header::after { animation: blobFloat 12s ease-in-out infinite; }

#lightbox-image {
    max-height: none;
    height: auto;
    width: 100%;
    object-fit: contain;
}

.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 310;
}

.nav-button.prev {
    left: 16px;
}

.nav-button.next {
    right: 16px;
}

.close-lightbox {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255,255,255,0.1);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 310;
}

.image-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255,193,227,0.35);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: #fff;
    padding: 18px 16px;
    border-top: 1px solid rgba(255,255,255,0.15);
}

/* Modal de Galería (popup) */
.gallery-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 600;
    padding: 16px;
}

.gallery-modal-box {
    width: 100%;
    max-width: 920px;
    max-height: 88vh;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.gallery-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.gallery-modal-header h3 { 
    font-family: var(--font-primary);
    letter-spacing: 1px; 
}

.gallery-modal-close {
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: #666;
}

.gallery-grid-modal {
    padding: 14px;
    overflow: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    flex: 1;       /* ocupar alto disponible */
    min-height: 0; /* permitir scroll interno */
}

.gallery-grid-item {
    position: relative;
    aspect-ratio: 2/3;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(0,0,0,0.08);
    cursor: pointer;
    background: #fafafa;
}

.gallery-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* no recortar */
    background: #fff;
    padding: 4px;
    display: block;
}

/* Visor interno a pantalla completa dentro del modal */
.gallery-modal-viewer {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.75);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
}
.gallery-modal-viewer img {
    max-width: 92vw;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 10px;
    background: #111;
}
.viewer-caption {
    position: absolute;
    bottom: 0;
    left: 0; right: 0;
    padding: 14px 16px;
    color: #fff;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.7));
    text-align: center;
}
.viewer-btn {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    width: 48px; height: 48px;
    border-radius: 22px;
    color: #fff; cursor: pointer;
}
.viewer-prev { left: 16px; }
.viewer-next { right: 16px; }
.viewer-close {
    position: absolute;
    top: 12px; right: 12px;
    background: rgba(255,255,255,0.15);
    border: none;
    width: 42px; height: 42px;
    border-radius: 20px; color: #fff; cursor: pointer;
}

@media (max-width: 480px) {
  .gallery-modal-box { max-width: 94vw; }
}

.loading-spinner {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    z-index: 400;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-sizing: border-box;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) { 
    .gallery-view {
        padding: 0 !important;
    }
    .gallery-container { 
        padding: 0 !important; 
        margin: 0 auto !important; 
        width: 100%; 
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        justify-content: center;
    } 
    .category-card { 
        width: 140px; 
        height: 200px; 
    } 
    .gallery-view { 
        width: 100%; 
    } 
}
 
    
    /* Aseguramos que la galería ocupe todo el ancho disponible */
    .gallery-view {
        width: 100%;
        padding: 0;
    }
    
    /* Mejoramos la visualización de las imágenes en móvil */
    .gallery-item {
        aspect-ratio: 2/3;
    }

}

/* Estilos para el modal de PIN */
#pinModal {
  display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s;
}

#pinModal .modal-content {
    background-color: var(--background-color);
    margin: 15% auto;
    padding: 20px;
    border: 1px solid var(--accent-color);
    border-radius: 15px;
    width: 80%;
    max-width: 400px;
    text-align: center;
}

#pinModal h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

#pinInput {
    width: 150px;
    padding: 10px;
    margin: 10px auto;
    display: block;
    font-size: 18px;
    text-align: center;
    letter-spacing: 5px;
    border: 2px solid var(--accent-color);
    border-radius: 8px;
}

#submitPin {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
    transition: background-color 0.3s;
}

#submitPin:hover {
    background-color: var(--accent-color);
}

.error-message {
    color: #ff3860;
    font-size: 14px;
    margin-top: 10px;
    display: none;
}

.close-pin {
    color: var(--text-color);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-pin:hover {
    color: var(--primary-color);
}

/* Mensaje flotante para notificaciones */
.mensaje-flotante {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(107, 191, 89, 0.85);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    z-index: 2100;
    font-size: 16px;
    text-align: center;
    max-width: 80%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s;
}

.mensaje-flotante.ocultar {
    animation: fadeOut 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, 20px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translate(-50%, 0); }
    to { opacity: 0; transform: translate(-50%, 20px); }
}/* End custom CSS */