/* VORTEC.ing — capa atmosférica y utilidades de sección */
:root {
  --vt-brand: #1158c3;
  --vt-brand-soft: rgba(17, 88, 195, 0.12);
  --vt-slate-deep: #f8fafc;
  --vt-ring: rgba(148, 163, 184, 0.2);
}

.site-body {
  background-color: #ffffff;
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(17, 88, 195, 0.06), transparent 55%),
    radial-gradient(ellipse 90% 60% at 100% 50%, rgba(241, 245, 249, 0.9), transparent 50%),
    radial-gradient(ellipse 70% 50% at 0% 80%, rgba(226, 232, 240, 0.5), transparent 45%);
  background-attachment: fixed;
}

::selection {
  background: rgba(17, 88, 195, 0.22);
  color: #0f172a;
}

.hero-slide {
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide img {
  transform: scale(1.04);
  transition: transform 8s ease-out;
}

.hero-slide.opacity-100 img {
  transform: scale(1);
}

.hero-dot {
  height: 0.5rem;
  border-radius: 9999px;
  border-width: 1px;
  border-style: solid;
  transition:
    width 0.3s ease,
    border-color 0.3s ease,
    background-color 0.3s ease,
    box-shadow 0.3s ease;
}

.hero-dot:not(.hero-dot-active) {
  width: 0.5rem;
  border-color: rgb(203 213 225);
  background-color: rgb(226 232 240 / 0.95);
}

.hero-dot:not(.hero-dot-active):hover {
  background-color: rgb(203 213 225);
}

.hero-dot.hero-dot-active {
  width: 2.5rem;
  border-color: rgb(125 168 234);
  background-color: var(--vt-brand);
  box-shadow: 0 0 12px rgba(17, 88, 195, 0.5);
}

.section-header {
  margin-bottom: clamp(2.5rem, 6vw, 3.5rem);
}

.section-eyebrow {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgb(17 88 195 / 0.92);
}

/* Hero: texto sobre imagen oscura */
#inicio .section-eyebrow {
  color: rgb(191 219 254 / 0.95);
}

.section-title {
  font-family: Syne, ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-rule {
  height: 3px;
  width: 3rem;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--vt-brand), rgba(17, 88, 195, 0.35));
  box-shadow: 0 0 24px rgba(17, 88, 195, 0.25);
}

.product-card {
  border-radius: 1rem;
  transition:
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.35s ease;
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-card-media {
  overflow: hidden;
}

/* Lightbox de imagen de producto (<dialog>) */
.product-image-dialog::backdrop {
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(4px);
}

@media (prefers-reduced-motion: reduce) {
  .product-image-dialog::backdrop {
    backdrop-filter: none;
  }
}

.product-card-media img {
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-card-media img {
  transform: scale(1.05);
}

.team-card {
  border-radius: 1rem;
  transition:
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.35s ease;
}

.team-card:hover {
  transform: translateY(-4px);
}

.team-card-media img {
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card:hover .team-card-media img {
  transform: scale(1.05);
}

/* FAQ: acordeón nativo <details> */
.faq-details[open] .faq-chevron {
  border-color: rgb(17 88 195 / 0.45);
  background-color: rgb(17 88 195 / 0.1);
  color: var(--vt-brand);
}

.faq-details .faq-chevron i {
  transition: transform 0.2s ease;
}

.faq-details[open] .faq-chevron i {
  transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {
  .faq-chevron i {
    transition: none;
  }
}

.focus-ring:focus {
  outline: 2px solid rgb(17 88 195);
  outline-offset: 2px;
}

input.focus-ring,
textarea.focus-ring {
  border-radius: 0.375rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

input.focus-ring:focus,
textarea.focus-ring:focus {
  border-color: rgb(17 88 195 / 0.65);
  box-shadow: 0 0 0 3px rgba(17, 88, 195, 0.18);
}

/* Navegación: menú hamburguesa bajo 768px */
@media (max-width: 767.98px) {
  #site-nav:not(.is-open) {
    display: none !important;
  }

  #site-nav.is-open {
    display: flex !important;
    flex-direction: column;
  }

  #site-nav.is-open a {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (min-width: 768px) {
  #site-nav {
    display: flex !important;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide img,
  .product-card,
  .product-card-media img,
  .team-card,
  .team-card-media img {
    transition: none;
  }

  .hero-slide.opacity-100 img {
    transform: none;
  }

  .product-card:hover {
    transform: none;
  }

  .product-card:hover .product-card-media img {
    transform: none;
  }

  .team-card:hover {
    transform: none;
  }

  .team-card:hover .team-card-media img {
    transform: none;
  }
}
