/* ==========================================================
 * LSS REYES - Estilos Dedicados de Galería (gallery.css)
 * Extraídos para cumplimiento estricto CSP (sin unsafe-inline)
 * ========================================================== */

    /* Estilos específicos para la página dedicada de Galería */
    .page-hero {
      padding: var(--space-2xl) 0 var(--space-xl);
      background: radial-gradient(circle at 50% 0%, rgba(242, 101, 34, 0.12) 0%, rgba(13, 17, 23, 0) 70%), var(--color-bg-main);
      border-bottom: 1px solid var(--color-border);
      text-align: center;
    }
    .page-hero-title {
      font-family: var(--font-heading);
      font-size: clamp(1.8rem, 4vw, 2.8rem);
      font-weight: 900;
      color: #FFFFFF;
      margin-bottom: var(--space-sm);
    }
    .page-hero-title span {
      color: var(--color-primary);
    }
    .page-hero-subtitle {
      color: var(--color-text-secondary);
      max-width: 680px;
      margin: 0 auto;
      font-size: 1.05rem;
    }
    .gallery-filter-bar {
      display: flex;
      justify-content: center;
      gap: 10px;
      flex-wrap: wrap;
      margin-bottom: var(--space-xl);
    }
    .filter-btn {
      background: var(--color-surface-card);
      border: 1px solid var(--color-border);
      color: var(--color-text-secondary);
      padding: 8px 18px;
      border-radius: 9999px;
      font-size: 0.85rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s ease;
    }
    .filter-btn:hover, .filter-btn.active {
      background: var(--color-primary);
      color: #FFFFFF;
      border-color: var(--color-primary);
      box-shadow: 0 4px 14px rgba(242, 101, 34, 0.3);
    }
    .full-gallery-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: var(--space-lg);
      margin-bottom: var(--space-2xl);
    }
    .gallery-card {
      background: var(--color-surface-card);
      border: 1px solid var(--color-border);
      border-radius: var(--radius-lg);
      overflow: hidden;
      transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
      display: flex;
      flex-direction: column;
    }
    .gallery-card:hover {
      transform: none;
      border-color: var(--color-primary);
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    }
    .gallery-card-img-wrap {
      position: relative;
      width: 100%;
      height: 280px;
      overflow: hidden;
      background: #0d1117;
    }
    .gallery-card-img-wrap img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .gallery-card:hover .gallery-card-img-wrap img {
      transform: none;
    }
    .gallery-card-badge {
      position: absolute;
      top: 12px;
      left: 12px;
      background: rgba(13, 17, 23, 0.85);
      backdrop-filter: blur(4px);
      color: #FFFFFF;
      font-size: 0.75rem;
      font-weight: 700;
      padding: 4px 10px;
      border-radius: 6px;
      border: 1px solid rgba(255, 255, 255, 0.1);
    }
    .gallery-card-body {
      padding: var(--space-md);
      display: flex;
      flex-direction: column;
      flex-grow: 1;
    }
    .gallery-card-title {
      font-family: var(--font-heading);
      font-size: 1.1rem;
      font-weight: 800;
      color: #FFFFFF;
      margin-bottom: 6px;
    }
    .gallery-card-desc {
      font-size: 0.85rem;
      color: var(--color-text-secondary);
      line-height: 1.4;
      margin-bottom: var(--space-md);
      flex-grow: 1;
    }

    /* CARRUSEL INTERACTIVO PARA TARJETAS CON MÚLTIPLES FOTOS */
    .gallery-carousel {
      position: relative;
      width: 100%;
      height: 280px;
      overflow: hidden;
      background: #080B10;
    }
    .carousel-slides {
      position: relative;
      width: 100%;
      height: 100%;
    }
    .carousel-slide {
      position: absolute;
      inset: 0;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s ease;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .carousel-slide.active {
      opacity: 1;
      visibility: visible;
      z-index: 1;
    }
    .carousel-slide img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
      transition: transform 0.4s ease;
    }
    .carousel-nav-btn {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      z-index: 5;
      background: rgba(13, 17, 23, 0.82);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      border: 1px solid rgba(255, 255, 255, 0.25);
      color: #FFFFFF;
      width: 36px;
      height: 36px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.2s ease;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
    }
    .carousel-nav-btn:hover {
      background: var(--color-primary);
      border-color: var(--color-primary);
      transform: translateY(-50%) scale(1.12);
      box-shadow: 0 0 16px rgba(242, 101, 34, 0.7);
    }
    .carousel-nav-btn.prev {
      left: 10px;
    }
    .carousel-nav-btn.next {
      right: 10px;
    }
    .carousel-counter {
      position: absolute;
      top: 12px;
      right: 12px;
      z-index: 5;
      background: rgba(13, 17, 23, 0.85);
      backdrop-filter: blur(6px);
      -webkit-backdrop-filter: blur(6px);
      color: #FFFFFF;
      font-size: 0.72rem;
      font-weight: 700;
      padding: 3px 10px;
      border-radius: 9999px;
      border: 1px solid rgba(255, 255, 255, 0.2);
      letter-spacing: 0.5px;
    }
    .carousel-dots {
      position: absolute;
      bottom: 10px;
      left: 50%;
      transform: translateX(-50%);
      z-index: 5;
      display: flex;
      gap: 6px;
      background: rgba(13, 17, 23, 0.75);
      backdrop-filter: blur(6px);
      -webkit-backdrop-filter: blur(6px);
      padding: 4px 10px;
      border-radius: 9999px;
      border: 1px solid rgba(255, 255, 255, 0.15);
    }
    .carousel-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.4);
      border: none;
      padding: 0;
      cursor: pointer;
      transition: all 0.2s ease;
    }
    .carousel-dot.active {
      background: var(--color-primary);
      width: 20px;
      border-radius: 4px;
      box-shadow: 0 0 10px rgba(242, 101, 34, 0.8);
    }
    .carousel-action-bar {
      display: flex;
      gap: 8px;
      margin-top: auto;
      flex-wrap: wrap;
    }
    .carousel-btn-next-photo {
      background: rgba(242, 101, 34, 0.12);
      border: 1px solid var(--color-primary);
      color: #FFFFFF;
      font-size: 0.82rem;
      font-weight: 700;
      padding: 8px 12px;
      border-radius: var(--radius-md);
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      transition: all 0.2s ease;
      flex: 1;
      min-width: 130px;
    }
    .carousel-btn-next-photo:hover {
      background: var(--color-primary);
      color: #FFFFFF;
      box-shadow: 0 4px 14px rgba(242, 101, 34, 0.4);
    }

    /* INDICADOR DE ZOOM EN TARJETA */
    .gallery-card-img-wrap {
      cursor: zoom-in;
    }
    .carousel-slides {
      cursor: zoom-in;
    }
    .gallery-zoom-badge {
      position: absolute;
      bottom: 10px;
      right: 10px;
      background: rgba(13, 17, 23, 0.85);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      border: 1px solid rgba(255, 255, 255, 0.2);
      color: #FFFFFF;
      font-size: 0.72rem;
      font-weight: 700;
      padding: 4px 9px;
      border-radius: 6px;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      pointer-events: none;
      transition: all 0.2s ease;
      z-index: 4;
    }
    .gallery-card:hover .gallery-zoom-badge {
      background: rgba(242, 101, 34, 0.95);
      border-color: var(--color-primary);
      transform: scale(1.05);
      box-shadow: 0 0 14px rgba(242, 101, 34, 0.5);
    }

    /* VIDEOS DE PRUEBAS DE CALIDAD */
    .gallery-card-video-wrap {
      position: relative;
      width: 100%;
      height: 280px;
      overflow: hidden;
      background: #080B10;
      cursor: pointer;
    }
    .gallery-card-video {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
      transition: transform 0.4s ease;
      display: block;
    }
    .gallery-card:hover .gallery-card-video {
      transform: scale(1.04);
    }
    .video-play-overlay {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(0, 0, 0, 0.28);
      transition: all 0.25s ease;
      pointer-events: none;
      z-index: 2;
    }
    .gallery-card:hover .video-play-overlay {
      background: rgba(0, 0, 0, 0.12);
    }
    .video-play-btn-circle {
      width: 58px;
      height: 58px;
      border-radius: 50%;
      background: rgba(242, 101, 34, 0.92);
      color: #FFFFFF;
      display: flex;
      align-items: center;
      justify-content: center;
      padding-left: 3px;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 16px rgba(242, 101, 34, 0.6);
      transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease, box-shadow 0.25s ease;
    }
    .gallery-card:hover .video-play-btn-circle {
      transform: scale(1.14);
      background: #F26522;
      box-shadow: 0 0 28px rgba(242, 101, 34, 0.95);
    }
    .video-tag-badge {
      position: absolute;
      top: 12px;
      right: 12px;
      background: rgba(239, 68, 68, 0.92);
      color: #FFFFFF;
      font-size: 0.72rem;
      font-weight: 800;
      padding: 3px 8px;
      border-radius: 6px;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      letter-spacing: 0.5px;
      z-index: 3;
      box-shadow: 0 2px 10px rgba(239, 68, 68, 0.4);
    }
    .lightbox-video {
      max-width: 100%;
      max-height: 64vh;
      width: auto;
      height: auto;
      border-radius: 6px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
      background: #000;
      outline: none;
    }

    /* ============================================================
       VISOR DE IMAGEN EN TAMAÑO REAL (LIGHTBOX PRO)
       ============================================================ */
    .gallery-lightbox {
      position: fixed;
      inset: 0;
      z-index: 9999;
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s;
      padding: var(--space-md);
    }
    .gallery-lightbox.active {
      opacity: 1;
      visibility: visible;
    }
    .lightbox-overlay {
      position: absolute;
      inset: 0;
      background: rgba(6, 9, 14, 0.92);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      cursor: pointer;
    }
    .lightbox-content {
      position: relative;
      z-index: 2;
      width: 100%;
      max-width: 1120px;
      max-height: 94vh;
      display: flex;
      flex-direction: column;
      background: rgba(18, 22, 31, 0.92);
      backdrop-filter: blur(24px);
      -webkit-backdrop-filter: blur(24px);
      border: 1px solid rgba(255, 255, 255, 0.16);
      border-radius: var(--radius-lg);
      box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(242, 101, 34, 0.2);
      overflow: hidden;
      transform: scale(0.96);
      transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .gallery-lightbox.active .lightbox-content {
      transform: scale(1);
    }
    .lightbox-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 12px 20px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
      background: rgba(13, 17, 23, 0.75);
    }
    .lightbox-counter-wrap {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
    }
    .lightbox-badge {
      background: rgba(242, 101, 34, 0.18);
      color: #FFA07A;
      border: 1px solid rgba(242, 101, 34, 0.4);
      font-size: 0.76rem;
      font-weight: 700;
      padding: 3px 10px;
      border-radius: 9999px;
    }
    .lightbox-counter {
      color: #8E95A2;
      font-size: 0.82rem;
      font-weight: 600;
      letter-spacing: 0.5px;
    }
    .lightbox-header-actions {
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .lightbox-raw-link {
      background: rgba(255, 255, 255, 0.08);
      border: 1px solid rgba(255, 255, 255, 0.15);
      color: #D1D5DB;
      font-size: 0.76rem;
      font-weight: 600;
      padding: 6px 12px;
      border-radius: var(--radius-md);
      display: inline-flex;
      align-items: center;
      gap: 5px;
      text-decoration: none;
      transition: all 0.2s ease;
    }
    .lightbox-raw-link:hover {
      background: rgba(255, 255, 255, 0.16);
      color: #FFFFFF;
      border-color: rgba(255, 255, 255, 0.3);
    }
    .lightbox-close-btn {
      background: rgba(255, 255, 255, 0.08);
      border: 1px solid rgba(255, 255, 255, 0.15);
      color: #FFFFFF;
      width: 36px;
      height: 36px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.2s ease;
    }
    .lightbox-close-btn:hover {
      background: #EF4444;
      border-color: #EF4444;
      transform: rotate(90deg) scale(1.08);
      box-shadow: 0 0 16px rgba(239, 68, 68, 0.6);
    }
    .lightbox-image-stage {
      position: relative;
      flex: 1;
      min-height: 280px;
      max-height: 68vh;
      display: flex;
      align-items: center;
      justify-content: center;
      background: #06080D;
      overflow: hidden;
    }
    .lightbox-image-container {
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 10px;
    }
    .lightbox-img {
      max-width: 100%;
      max-height: 64vh;
      width: auto;
      height: auto;
      object-fit: contain;
      border-radius: 6px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
      transition: opacity 0.22s ease;
      user-select: none;
    }
    .lightbox-nav-btn {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      z-index: 10;
      background: rgba(13, 17, 23, 0.85);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      border: 1px solid rgba(255, 255, 255, 0.25);
      color: #FFFFFF;
      width: 44px;
      height: 44px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.2s ease;
      box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
    }
    .lightbox-nav-btn:hover {
      background: var(--color-primary);
      border-color: var(--color-primary);
      transform: translateY(-50%) scale(1.12);
      box-shadow: 0 0 20px rgba(242, 101, 34, 0.7);
    }
    .lightbox-nav-btn.prev {
      left: 14px;
    }
    .lightbox-nav-btn.next {
      right: 14px;
    }
    .lightbox-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding: 14px 20px;
      background: rgba(13, 17, 23, 0.85);
      border-top: 1px solid rgba(255, 255, 255, 0.08);
      flex-wrap: wrap;
    }
    .lightbox-info {
      flex: 1;
      min-width: 240px;
    }
    .lightbox-title {
      font-family: var(--font-heading);
      font-size: 1.15rem;
      font-weight: 800;
      color: #FFFFFF;
      margin-bottom: 4px;
    }
    .lightbox-desc {
      font-size: 0.86rem;
      color: var(--color-text-secondary);
      line-height: 1.4;
      margin: 0;
    }
    .lightbox-actions {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    @media (max-width: 640px) {
      .gallery-lightbox {
        padding: 6px;
      }
      .lightbox-content {
        max-height: 98vh;
      }
      .lightbox-image-stage {
        max-height: 56vh;
      }
      .lightbox-img,
      .lightbox-video {
        max-height: 52vh;
      }
      .lightbox-nav-btn {
        width: 38px;
        height: 38px;
      }
      .lightbox-nav-btn.prev { left: 6px; }
      .lightbox-nav-btn.next { right: 6px; }
      .lightbox-footer {
        padding: 10px 14px;
      }
      .lightbox-title {
        font-size: 1rem;
      }
      .lightbox-desc {
        font-size: 0.78rem;
      }
      .lightbox-raw-link span {
        display: none;
      }
    }

/* ==========================================================
 * UTILIDADES DE MIGRACIÓN DE ESTILOS INLINE EN GALERÍA (CSP)
 * ========================================================== */
.img-pos-c26 { object-position: center 26%; }
.img-cover-center { object-fit: cover; object-position: center; }
.img-cover-c25 { object-fit: cover; object-position: center 25%; }
.img-pos-center { object-position: center; }
.img-cover-c32 { object-fit: cover; object-position: center 32%; }
.img-cover-c42 { object-fit: cover; object-position: center 42%; }
.img-pos-l20 { object-position: left 20%; }
.btn-quote-flex { flex: 1; min-width: 120px; }
.custom-format-banner { background: var(--color-surface-card); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-xl); text-align: center; }
.custom-format-title { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800; color: #FFFFFF; margin-bottom: 0.5rem; }
.custom-format-desc { color: var(--color-text-secondary); max-width: 600px; margin: 0 auto 1.5rem auto; font-size: 0.95rem; }
.custom-format-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
