/* ═══════════════════════════════════════════════════ */
/* INTERFLOT — Seguridad Dinámica (Accordion Hover)    */
/* ═══════════════════════════════════════════════════ */

.sec-accordion-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
  margin: 40px 0;
}

.sec-card {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--black-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.sec-card:hover {
  transform: scale(1.02);
  border-color: rgba(227, 6, 19, 0.4);
  box-shadow: 0 0 30px rgba(227, 6, 19, 0.2);
}

/* Red Laser Scan Effect on Hover */
.sec-card::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--red);
  box-shadow: 0 0 15px 5px rgba(227,6,19,0.6);
  opacity: 0;
  pointer-events: none;
  z-index: 10;
}

.sec-card:hover::before {
  opacity: 1;
  animation: secLaserScan 2.5s ease-out forwards;
}

@keyframes secLaserScan {
  0% { top: -20px; opacity: 1; }
  100% { top: 110%; opacity: 0; }
}

/* Background Video inside Card */
.sec-card-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 0;
  pointer-events: none;
}

.sec-card:hover .sec-card-video {
  opacity: 0.6; /* Video reveals on hover */
}

/* Base Gradient Overlay to keep text readable */
.sec-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
  z-index: 1;
  transition: opacity 0.6s;
}

/* The Front Product Image */
.sec-product-img {
  position: absolute;
  top: 40%; left: 50%;
  transform: translate(-50%, -50%) scale(1);
  max-width: 80%;
  max-height: 50%;
  object-fit: contain;
  z-index: 2;
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.6s ease;
  filter: sepia(100%) hue-rotate(180deg) saturate(150%) brightness(0.4) contrast(1.2);
}

/* On hover, move the camera image to the side or top, make it smaller */
.sec-card:hover .sec-product-img {
  top: 15%;
  left: 20px;
  transform: translate(0, 0) scale(0.4);
  opacity: 0.8;
  filter: grayscale(0%) contrast(1) brightness(1);
}

/* The Tech Specs (Captura de pantalla) */
.sec-specs-glass {
  position: absolute;
  top: 20px;
  right: -150px;
  width: 60%;
  max-height: 70%;
  border-radius: 12px;
  overflow: hidden;
  opacity: 0;
  transform: perspective(1000px) rotateY(20deg) translateX(50px);
  z-index: 3;
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.sec-specs-glass img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);
}

.sec-card:hover .sec-specs-glass {
  opacity: 1;
  right: 20px;
  transform: perspective(1000px) rotateY(0deg) translateX(0);
}

/* Card Content (Title, Subtitle) */
.sec-card-content {
  position: relative;
  z-index: 4;
  padding: 30px;
  transform: translateY(20px);
  transition: transform 0.6s ease;
}

.sec-card:hover .sec-card-content {
  transform: translateY(0);
}

.sec-card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Clases específicas para títulos de tarjetas que coinciden EXACTAMENTE con el Hero pero con sombra ligera */
.card-metal-silver {
  background: linear-gradient(to bottom, #ffffff 0%, #cccccc 35%, #737373 50%, #e6e6e6 52%, #ffffff 80%, #666666 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  position: relative;
  filter: drop-shadow(0px 3px 5px rgba(0, 0, 0, 0.6));
}
.card-metal-silver::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1;
  -webkit-text-fill-color: transparent;
  text-shadow: 0px 2px 4px rgba(0,0,0,0.6);
}

.card-metal-red {
  background: linear-gradient(to bottom, #ff9999 0%, #e60000 35%, #800000 50%, #ff1a1a 52%, #ff6666 80%, #4d0000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  position: relative;
  filter: drop-shadow(0px 3px 5px rgba(0, 0, 0, 0.6));
}
.card-metal-red::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1;
  -webkit-text-fill-color: transparent;
  text-shadow: 0px 2px 4px rgba(0,0,0,0.6);
}

.sec-card p {
  font-size: 0.95rem;
  font-weight: 500;
  margin-top: 10px;
  max-width: 80%;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
  transition-delay: 0s;
  color: rgba(255, 255, 255, 0.8);
  filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.5));
}

.sec-card:hover p {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

/* Responsive */
@media (max-width: 900px) {
  .sec-accordion-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .sec-accordion-container {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}

/* ═══════════════════════════════════════════════════ */
/* VIDEO POPUP PLAYER                                  */
/* ═══════════════════════════════════════════════════ */

.vid-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.vid-popup-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.vid-popup-player {
  position: relative;
  width: 640px;
  max-width: 92vw;
  background: #0d0d0d;
  border: 1px solid rgba(227, 6, 19, 0.4);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(227, 6, 19, 0.25), 0 30px 80px rgba(0,0,0,0.8);
  transform: scale(0.92) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.vid-popup-overlay.active .vid-popup-player {
  transform: scale(1) translateY(0);
}

.vid-popup-player video {
  width: 100%;
  display: block;
  border-radius: 0 0 16px 16px;
}

.vid-popup-title {
  padding: 14px 20px 10px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.vid-popup-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 10;
  transition: color 0.2s;
  line-height: 1;
  padding: 4px 8px;
}

.vid-popup-close:hover {
  color: #E30613;
}
