/* ─── NAV DROPDOWN ──────────────────────────────────────────── */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: default;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  padding: 8px;
  z-index: 200;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--dark) !important;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}

.dropdown-menu a:hover {
  background: var(--lighter);
  color: var(--red) !important;
}

@media (max-width: 768px) {
  .dropdown-menu {
    display: block;
    position: static;
    box-shadow: none;
    background: #111111;
    border-radius: 0;
    padding: 0;
  }

  .dropdown-menu a {
    color: var(--white) !important;
    padding: 14px 40px;
    border-top: 1px solid #222;
  }
}

/* ─── BUTTONS ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 15px 30px;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--red-dark);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--black);
}

.btn-dark {
  background: var(--black);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--red);
}

/* ─── CARDS ─────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--red);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: var(--red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card-icon svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.card h3 {
  font-family: var(--heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 10px;
}

.card p {
  color: var(--mid);
  font-size: 0.95rem;
}

/* card sobre fondo oscuro */
.card-dark {
  background: #111111;
  border: 1px solid #262626;
}

.card-dark h3 {
  color: var(--white);
}

.card-dark p {
  color: #A0A0A0;
}

/* ─── FORM ──────────────────────────────────────────────────── */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--mid);
}

.form-field input,
.form-field textarea {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 16px;
  font-size: 0.95rem;
  color: var(--dark);
  transition: border-color var(--transition);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--red);
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--mid);
}

.form-checkbox input {
  margin-top: 4px;
}

.form-note {
  background: var(--lighter);
  border-left: 3px solid var(--red);
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--mid);
  margin-bottom: 28px;
}

@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-field.full {
    grid-column: auto;
  }
}

/* ─── PRODUCT GALLERY (masonry) ─────────────────────────────── */
.product-gallery {
  column-count: 3;
  column-gap: 20px;
}

.product-gallery figure {
  margin: 0 0 20px;
  break-inside: avoid;
  background: var(--lighter);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-gallery img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform var(--transition);
}

.product-gallery img:hover {
  transform: scale(1.04);
}

@media (max-width: 900px) {
  .product-gallery {
    column-count: 2;
  }
}

@media (max-width: 560px) {
  .product-gallery {
    column-count: 1;
  }
}

/* ─── LIGHTBOX ──────────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  background: var(--lighter);
  padding: 24px;
  box-sizing: border-box;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  border-radius: 999px;
  width: 44px;
  height: 44px;
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--red);
  border-color: var(--red);
}

.lightbox-close {
  top: 24px;
  right: 24px;
}

.lightbox-prev {
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 480px) {
  .lightbox-prev,
  .lightbox-next {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }
}

/* ─── PRODUCT VIDEOS ────────────────────────────────────────── */
.product-videos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.product-videos video {
  width: 100%;
  max-width: 460px;
  max-height: 520px;
  background: var(--black);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 640px) {
  .product-videos video {
    max-width: 260px;
    max-height: 360px;
  }
}

/* ─── PRODUCT SPEC TABLE ────────────────────────────────────── */
.spec-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-table tr {
  border-bottom: 1px solid var(--border);
}

.spec-table tr:last-child {
  border-bottom: none;
}

.spec-table th,
.spec-table td {
  text-align: left;
  padding: 14px 16px;
  font-size: 0.92rem;
}

.spec-table th {
  width: 42%;
  font-family: var(--sans);
  font-weight: 600;
  color: var(--dark);
  background: var(--lighter);
}

.spec-table td {
  color: var(--mid);
}

.product-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.product-badge {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
}

@media (max-width: 640px) {
  .product-gallery {
    grid-template-columns: 1fr;
  }
  .product-gallery img:first-child {
    height: 260px;
  }
}

/* ─── MARQUEE DE PRODUCTOS (scroll infinito) ───────────────── */
.marquee-section {
  overflow: hidden;
  padding: 48px 0;
  background: var(--black);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 22s linear infinite;
}

@media (hover: hover) and (pointer: fine) {
  .marquee-section:hover .marquee-track {
    animation-play-state: paused;
  }
}

.marquee-group {
  display: flex;
  flex-shrink: 0;
  gap: 24px;
  padding-right: 24px;
}

.marquee-track img {
  width: 300px;
  height: 210px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 640px) {
  .marquee-track img {
    width: 220px;
    height: 155px;
  }
}

/* ─── FEATURE SPLIT (iconos + texto referencial) ────────────── */
.feature-split {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 64px;
  align-items: start;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px 32px;
}

.feature-item h3 {
  font-family: var(--heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--black);
  margin: 20px 0 10px;
}

.feature-item p {
  color: var(--mid);
  font-size: 0.92rem;
}

.feature-icon {
  width: 64px;
  height: 64px;
  fill: none;
  stroke: var(--red);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}


.feature-side {
  padding-top: 6px;
  border-left: 1px solid var(--border);
  padding-left: 48px;
}

.feature-side .section-label {
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 6px;
}

@media (max-width: 900px) {
  .feature-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .feature-side {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 32px;
  }
}

@media (max-width: 640px) {
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .feature-icon {
    width: 52px;
    height: 52px;
  }
}
