html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

.nav-link {
  display: inline-block;
  font-weight: 500;
  color: #374151;
  transition: color 150ms ease-in-out;
  padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link:focus {
  color: #2563eb;
}

.admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  border: 1px solid rgba(37, 99, 235, 0.25);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #2563eb;
  text-align: center;
  transition: border-color 150ms ease, color 150ms ease, background-color 150ms ease;
}

.admin-link:hover,
.admin-link:focus {
  border-color: rgba(37, 99, 235, 0.45);
  color: #1d4ed8;
  background-color: rgba(37, 99, 235, 0.08);
}

.service-card {
  background: linear-gradient(135deg, rgba(249, 250, 251, 1), rgba(239, 246, 255, 0.9));
  padding: 2rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 10px 25px -15px rgba(59, 130, 246, 0.5);
  transition: transform 200ms ease, box-shadow 200ms ease;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(37, 99, 235, 0.45);
}

.service-icon {
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1.25rem;
  background-color: #2563eb;
  color: #fff;
  font-size: 2rem;
  margin: 0 auto 1.5rem;
}

.service-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  text-align: center;
  margin-bottom: 0.75rem;
}

.service-description {
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.6;
  text-align: center;
}

.service-list {
  margin-top: 1.5rem;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #374151;
}

.service-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-list li::before {
  content: "";
  display: inline-block;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background-color: #2563eb;
}

.step-number {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background-color: rgba(37, 99, 235, 0.12);
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.step-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
}

.step-description {
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.6;
}

.responsive-pricing {
  width: min(1200px, 100%);
}

.responsive-table {
  width: 100%;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.process-step {
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 0.5rem 0;
}

.process-step .step-description {
  margin-top: 0.35rem;
}

.accessory-card {
  background-color: #fff;
  border-radius: 1.75rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 20px 45px -35px rgba(15, 23, 42, 0.8);
  transition: transform 200ms ease, box-shadow 200ms ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.accessory-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -30px rgba(37, 99, 235, 0.45);
}

.accessory-card--upcoming {
  background: rgba(239, 246, 255, 0.7);
  border-style: dashed;
  border-color: rgba(37, 99, 235, 0.35);
}

.accessory-image {
  position: relative;
}

.accessory-image img {
  display: block;
}

.accessory-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  border-radius: 9999px;
  background-color: #2563eb;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  box-shadow: 0 10px 20px -15px rgba(37, 99, 235, 0.8);
}

.accessory-badge--available {
  background-color: #16a34a;
}

.accessory-badge--inquiry {
  background-color: #f59e0b;
}

.accessory-badge--soon {
  background-color: #f59e0b;
}

.accessory-badge--soldout {
  background-color: #6b7280;
}


.testimonial-slider {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.testimonial {
  flex: 0 0 320px;
  border-radius: 1.75rem;
  border: 1px solid rgba(191, 219, 254, 0.5);
  background: linear-gradient(135deg, #fff 0%, rgba(239, 246, 255, 0.7) 100%);
  padding: 2rem;
  box-shadow: 0 20px 40px -30px rgba(37, 99, 235, 0.35);
  scroll-snap-align: start;
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.testimonial-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid #e0e7ff;
  box-shadow: 0 8px 20px -12px rgba(37, 99, 235, 0.6);
}

.testimonial-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 1rem;
}

.testimonial-meta {
  font-weight: 600;
  color: #2563eb;
  margin: 0;
}

.testimonial-content {
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.7;
}

.faq-item {
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background-color: #fff;
  box-shadow: 0 15px 30px -25px rgba(37, 99, 235, 0.35);
  overflow: hidden;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.faq-question {
  cursor: pointer;
  border: 0;
  background: transparent;
  width: 100%;
  text-align: left;
  padding: 1.5rem 2rem;
  font-weight: 600;
  font-size: 1.1rem;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: color 160ms ease;
}

.faq-question:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: -3px;
}

.faq-item.is-open .faq-question {
  color: #2563eb;
}

.faq-icon {
  margin-left: auto;
  color: #2563eb;
  font-size: 1.2rem;
  line-height: 1;
  transform: rotate(-90deg);
  transition: transform 180ms ease;
}

.faq-item.is-open .faq-icon {
  transform: rotate(0deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 220ms ease, border-color 160ms ease;
  border-top: 1px solid transparent;
}

.faq-answer__content {
  overflow: hidden;
  padding: 0 2rem;
  font-size: 0.98rem;
  line-height: 1.7;
  color: #4b5563;
}

.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
  border-top-color: rgba(148, 163, 184, 0.18);
}

.faq-item.is-open .faq-answer__content {
  padding: 1rem 2rem 1.5rem 2rem;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.45), rgba(255, 255, 255, 0.9));
}

.faq-accordion--no-animation .faq-answer,
.faq-accordion--no-animation .faq-answer__content,
.faq-accordion--no-animation .faq-icon,
.faq-accordion--no-animation .faq-question,
.faq-accordion--no-animation .faq-item {
  transition: none !important;
}

.logistics-card {
  border-radius: 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background-color: #fff;
  padding: 1.5rem;
  box-shadow: 0 10px 30px -25px rgba(37, 99, 235, 0.5);
}

.logistics-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.5rem;
}

.logistics-text {
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.6;
}

.filter-card {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.9), #fff);
  border-radius: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 18px 45px -30px rgba(37, 99, 235, 0.28);
  padding: 1.5rem;
  width: 100%;
}

.filter-eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #2563eb;
}

.filter-pills {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  overflow-x: auto;
  padding: 0.35rem;
  border-radius: 1rem;
  background: rgba(37, 99, 235, 0.05);
  scrollbar-width: none;
}

.filter-pills::-webkit-scrollbar {
  display: none;
}

.filter-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 999px;
  cursor: pointer;
  min-width: 110px;
}

.filter-pill input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.filter-pill span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.3);
  background: #fff;
  color: #1d4ed8;
  font-weight: 700;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease, background-color 120ms ease, color 120ms ease;
  box-shadow: 0 10px 22px -18px rgba(37, 99, 235, 0.55);
}

.filter-pill input:checked + span {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(59, 130, 246, 0.16));
  border-color: rgba(37, 99, 235, 0.55);
  color: #0f172a;
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -30px rgba(37, 99, 235, 0.7);
}

.filter-pill input:focus-visible + span {
  outline: 2px solid rgba(37, 99, 235, 0.45);
  outline-offset: 4px;
}

.filter-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  width: 100%;
  max-width: 340px;
}

@media (max-width: 480px) {
  .filter-actions {
    grid-template-columns: 1fr;
  }
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-scroll table {
  width: 100%;
  min-width: min(640px, 100%);
  table-layout: auto;
}

.table-scroll th,
.table-scroll td {
  white-space: normal;
}

@media (max-width: 900px) {
  .responsive-pricing {
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .process-step {
    flex-direction: column;
    gap: 0.75rem;
  }

  .table-scroll table {
    font-size: 0.95rem;
  }
}

@media (max-width: 640px) {
  .step-number {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
  }

  .table-scroll th,
  .table-scroll td {
    padding-inline: 0.75rem;
  }

  .accessory-card .btn-primary,
  .accessory-card .btn-secondary {
    width: 100%;
    padding: 0.75rem 0.9rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 767px) {
  #primary-navigation[data-open="true"] {
    display: block;
  }
}

.topbar__shop {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.15rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: linear-gradient(125deg, rgb(61, 210, 186), rgb(1 185 155));
    color: #0f172a;
    box-shadow: 0 10px 24px rgba(56, 189, 248, 0.26);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.topbar__shop:hover,
.topbar__shop:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(56, 189, 248, 0.28);
    outline: none;
}

.topbar__shop-icon { font-size: 0.85rem; }

 .topbar__shop { justify-content: center; }

 @media (max-width: 720px) {

    .topbar__shop {
        width: 100%;
        justify-content: center;
    }
}

.topbar__brand-logo {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    background: linear-gradient(140deg, rgba(37, 99, 235, 0.12), rgba(59, 130, 246, 0.2));
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.35), 0 6px 14px rgba(37, 99, 235, 0.22);
    overflow: hidden;
}

.topbar__brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05) drop-shadow(0 2px 6px rgba(37, 99, 235, 0.2));
}
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.9rem 1rem;
  font-weight: 700;
  border-radius: 0.9rem;
  border: 1px solid transparent;
  transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease, color 150ms ease;
}

.btn-primary {
  background-color: #2563eb;
  color: #fff;
  box-shadow: 0 16px 35px -20px rgba(37, 99, 235, 0.8);
  border-color: rgba(37, 99, 235, 0.5);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-1px);
  background-color: #1d4ed8;
  box-shadow: 0 18px 40px -18px rgba(37, 99, 235, 0.9);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background-color: #fff;
  color: #2563eb;
  border-color: rgba(37, 99, 235, 0.35);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background-color: #eff6ff;
  border-color: rgba(37, 99, 235, 0.65);
  transform: translateY(-1px);
}

.accessory-figure {
  display: block;
  width: 100%;
  text-align: left;
}

.accessory-figure:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 6px;
}

.accessory-admin-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.admin-action {
  border-radius: 0.75rem;
  padding: 0.55rem 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.admin-action--secondary {
  border-color: rgba(37, 99, 235, 0.35);
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.08);
}

.admin-action--secondary:hover,
.admin-action--secondary:focus-visible {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.6);
}

.admin-action--danger {
  border-color: rgba(239, 68, 68, 0.25);
  color: #dc2626;
  background: rgba(239, 68, 68, 0.08);
}

.admin-action--danger:hover,
.admin-action--danger:focus-visible {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.45);
}

.cart-helper {
  margin: 3rem 0;
  padding: 1.5rem 1.75rem;
  border-radius: 1.25rem;
  background: linear-gradient(120deg, rgba(37, 99, 235, 0.08), rgba(59, 130, 246, 0.12));
  border: 1px solid rgba(37, 99, 235, 0.18);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cart-toggle {
  background: #fff;
  color: #1d4ed8;
  border: 1px solid rgba(37, 99, 235, 0.35);
  padding: 0.9rem 1.2rem;
  border-radius: 1rem;
  font-weight: 700;
  box-shadow: 0 18px 35px -25px rgba(37, 99, 235, 0.55);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.cart-toggle--nav {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.1rem;
}

.cart-toggle:hover,
.cart-toggle:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 24px 50px -30px rgba(37, 99, 235, 0.6);
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(4px);
  z-index: 50;
}

.cart-panel {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: min(420px, calc(100% - 2.5rem));
  max-height: calc(100vh - 4rem);
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 30px 70px -40px rgba(15, 23, 42, 0.65);
  z-index: 60;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.cart-panel__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.25rem 0.75rem;
}

.cart-panel__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1d4ed8;
}

.cart-panel__title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
}

.cart-close {
  border: 1px solid rgba(148, 163, 184, 0.35);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.9rem;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #334155;
  background: #fff;
}

.cart-panel__note {
  padding: 0 1.25rem 1rem;
  font-size: 0.95rem;
  color: #475569;
}

.cart-items {
  padding: 0 1.25rem;
  display: grid;
  gap: 1rem;
  overflow-y: auto;
}

.cart-empty {
  padding: 1rem 1.25rem 1.5rem;
  color: #1d4ed8;
  font-weight: 600;
}

.cart-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.85rem;
  border-radius: 1rem;
  background: #f8fafc;
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.cart-item__media img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 0.85rem;
}

.cart-item__title {
  font-weight: 700;
  color: #0f172a;
}

.cart-item__meta {
  color: #475569;
  font-size: 0.9rem;
}

.cart-item__remove {
  color: #dc2626;
  font-weight: 700;
}

.cart-panel__summary {
  padding: 1.25rem;
  margin-top: auto;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.9), #fff);
  display: grid;
  gap: 0.85rem;
}

.cart-panel__summary-title {
  font-size: 0.95rem;
  color: #475569;
  font-weight: 600;
}

.cart-panel__summary-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f172a;
}

.cart-panel__footnote {
  font-size: 0.85rem;
  color: #64748b;
}

.cart-panel__actions {
  display: grid;
  gap: 0.75rem;
}

.accessory-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 70;
}

.accessory-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
}

.accessory-modal__content {
  position: relative;
  background: #fff;
  border-radius: 1.5rem;
  max-width: 720px;
  width: calc(100% - 2rem);
  box-shadow: 0 30px 70px -35px rgba(15, 23, 42, 0.7);
  overflow: hidden;
}

.accessory-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.35);
  font-weight: 700;
  color: #0f172a;
}

.accessory-modal__image {
  background: #0b1626;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.accessory-modal__image img {
  width: 100%;
  max-height: 380px;
  object-fit: contain;
}

.accessory-modal__body {
  padding: 1.5rem;
  display: grid;
  gap: 0.5rem;
}

.accessory-modal__status {
  font-size: 0.9rem;
  color: #1d4ed8;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.accessory-modal__title {
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
}

.accessory-modal__price {
  font-size: 1.2rem;
  font-weight: 700;
  color: #2563eb;
}

.accessory-modal__note {
  color: #475569;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .cart-panel {
    inset: auto 0 0 0;
    margin: 0 1rem 1rem;
    width: auto;
  }
}

/* Efecto de ocultar/mostrar el nav solo en móviles/tablets */
@media (max-width: 1024px) {
  #main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    transition: transform 0.25s ease-in-out;
    background-color: #fffffff8;
  }

  #main-nav.nav-hidden {
    transform: translateY(-100%);
  }

  #inicio, #servicios, #reparacion_dualsense, #galeria, #contacto {
    padding-top: 2rem; 
  }

  #articulo1 {
    margin-top: 2rem; 
  }
}
.gallery-slider {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  margin-top: 2.5rem;
}

.gallery-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.25rem 0.5rem 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #e2e8f0;
  cursor: grab;
}

.gallery-track::-webkit-scrollbar {
  height: 10px;
}

.gallery-track::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

.gallery-track::-webkit-scrollbar-track {
  background: #e2e8f0;
  border-radius: 999px;
}

.gallery-track.is-dragging {
  scroll-behavior: auto;
  cursor: grabbing;
}

.gallery-card {
  background: #fff;
  border-radius: 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 18px 40px -30px rgba(37, 99, 235, 0.6);
  min-width: min(360px, 80vw);
  overflow: hidden;
  position: relative;
  scroll-snap-align: start;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 60px -28px rgba(37, 99, 235, 0.55);
}

.gallery-card__actions {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  gap: 0.35rem;
  z-index: 2;
}

.gallery-card__media {
  display: block;
  width: 100%;
  border: none;
  padding: 0;
  background: transparent;
}

.gallery-media {
  position: relative;
  overflow: hidden;
  height: 230px;
  background: linear-gradient(145deg, #0f172a, #1e293b);
}

.gallery-media img,
.gallery-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-media--video video {
  filter: saturate(1.1);
}

.gallery-play {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.75);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  box-shadow: 0 10px 25px -18px rgba(0, 0, 0, 0.6);
}

.gallery-card__body {
  padding: 1.25rem 1.35rem 1.5rem;
  display: grid;
  gap: 0.5rem;
}

.gallery-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
}

.gallery-card__description {
  color: #475569;
  line-height: 1.5;
}

.gallery-nav {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: #fff;
  color: #0f172a;
  font-weight: 700;
  box-shadow: 0 14px 36px -24px rgba(15, 23, 42, 0.65);
}

.gallery-hint {
  margin-top: 1rem;
  text-align: center;
  color: #475569;
  font-size: 0.95rem;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 80;
}

.gallery-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(3px);
}

.gallery-modal__content {
  position: relative;
  background: #fff;
  width: min(1040px, calc(100% - 2rem));
  max-height: calc(100vh - 3rem);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 40px 90px -50px rgba(15, 23, 42, 0.8);
  display: grid;
  grid-template-columns: 1.35fr 1fr;
}

.gallery-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.35);
  font-weight: 700;
  color: #0f172a;
  z-index: 2;
}

.gallery-modal__media {
  background: #0b1626;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.gallery-modal__media img,
.gallery-modal__media video {
  width: 100%;
  height: auto;
  max-height: calc(100vh - 6rem);
  object-fit: contain;
  border-radius: 1rem;
}

.gallery-modal__body {
  padding: 1.75rem;
  display: grid;
  gap: 0.65rem;
  align-content: center;
}

.gallery-modal__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  color: #2563eb;
  font-weight: 700;
}

.gallery-modal__title {
  font-size: 1.75rem;
  color: #0f172a;
  font-weight: 800;
}

.gallery-modal__description {
  color: #475569;
  line-height: 1.6;
  font-size: 1rem;
}

@media (max-width: 1024px) {
  .gallery-slider {
    grid-template-columns: 1fr;
  }

  .gallery-nav {
    display: none;
  }

  .gallery-modal__content {
    grid-template-columns: 1fr;
  }
}
