/* ==========================================================================
   JACK Andalucía — Máquinas de coser industriales
   Hoja de estilos principal
   ========================================================================== */

/* ------------------------------- Tokens --------------------------------- */
/* Fuente corporativa para titulares y la palabra "JACK" */
@font-face {
  font-family: "Vipnagorgialla";
  src: url("../assets/fonts/vipnagorgialla-bd-it.otf") format("opentype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Colores de marca */
  --c-brand: #00a8e4;
  --c-primary: #0099cc;
  --c-primary-deep: #006f9c;
  --c-dark: #073b5c;
  --c-darker: #052f49;
  --c-accent: #00c7d9;
  --c-accent-soft: #7de5f2;
  --c-white: #ffffff;
  --c-bg-light: #f4f8fa;
  --c-text: #102a43;
  --c-text-soft: #486581;
  --c-line: #d9e4ec;
  --c-warm: #ff8a00;

  /* Tipografía */
  --font-display: "Sora", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-heading: "Vipnagorgialla", "Sora", system-ui, -apple-system, sans-serif;

  /* Radios */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* Sombras */
  --shadow-sm: 0 1px 2px rgba(16, 42, 67, 0.06);
  --shadow-md: 0 10px 30px -10px rgba(16, 42, 67, 0.18);
  --shadow-lg: 0 24px 60px -20px rgba(7, 59, 92, 0.35);
  --shadow-primary: 0 10px 26px -8px rgba(0, 153, 204, 0.5);

  /* Layout */
  --container: 1200px;
  --nav-h: 76px;

  /* Transiciones */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* -------------------------------- Reset --------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--c-text);
  background: var(--c-white);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

[hidden] {
  display: none !important;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* ------------------------------ Utilidades ------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.container--narrow {
  max-width: 820px;
}

.icon {
  width: 1.1em;
  height: 1.1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ------------------------------- Botones -------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  padding: 14px 24px;
  border-radius: var(--r-md);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
    background-color 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease);
  white-space: nowrap;
}

.btn--lg {
  padding: 17px 30px;
  font-size: 1.02rem;
}

.btn--block {
  width: 100%;
}

.btn--primary {
  background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-primary) 100%);
  color: #fff;
  box-shadow: var(--shadow-primary);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -10px rgba(0, 153, 204, 0.65);
}
.btn--primary:active {
  transform: translateY(0);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
}

.btn--outline {
  background: #fff;
  color: var(--c-primary-deep);
  border: 2px solid var(--c-primary);
}
.btn--outline:hover {
  background: var(--c-primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn--whatsapp {
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 26px -8px rgba(37, 211, 102, 0.55);
}
.btn--whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -10px rgba(37, 211, 102, 0.65);
}
.btn--whatsapp .icon {
  fill: currentColor;
  stroke: none;
}

.btn--nav {
  padding: 12px 20px;
  font-size: 0.9rem;
}

/* -------------------------------- Navegación ---------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.nav.is-scrolled {
  border-bottom-color: var(--c-line);
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--nav-h);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}
.nav__logo {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.nav__brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1.1;
}
.nav__wordmark {
  height: 24px;
  width: auto;
  display: block;
}
.nav__brand-text small {
  font-size: 0.72rem;
  color: var(--c-text-soft);
  font-weight: 500;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav__link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--c-brand);
  padding: 10px 14px;
  border-radius: var(--r-sm);
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.nav__link:hover {
  color: var(--c-primary-deep);
  background: rgba(0, 153, 204, 0.07);
}

.nav__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--c-primary-deep);
  padding: 10px 12px;
  transition: color 0.18s var(--ease);
}
.nav__phone:hover {
  color: var(--c-dark);
}
.nav__phone .icon {
  stroke: var(--c-primary);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
  border-radius: var(--r-sm);
}
.nav__toggle-bar {
  width: 24px;
  height: 2px;
  background: var(--c-brand);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------- Hero --------------------------------- */
.hero {
  position: relative;
  padding: 72px 0 96px;
  background: linear-gradient(160deg, var(--c-dark) 0%, var(--c-primary-deep) 45%, var(--c-primary) 100%);
  color: #fff;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(800px 500px at 85% 20%, rgba(0, 199, 217, 0.35) 0%, transparent 60%),
    radial-gradient(600px 500px at 10% 90%, rgba(0, 199, 217, 0.22) 0%, transparent 55%);
}
.hero__bg::before,
.hero__bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(125, 229, 242, 0.25);
}
.hero__bg::before {
  width: 520px;
  height: 520px;
  top: -160px;
  right: -120px;
}
.hero__bg::after {
  width: 340px;
  height: 340px;
  bottom: -120px;
  left: -80px;
}

.hero__dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
}
.hero__dots img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero__eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-accent-soft);
  padding: 8px 16px;
  border: 1px solid rgba(125, 229, 242, 0.4);
  border-radius: 999px;
  margin-bottom: 22px;
  background: rgba(0, 199, 217, 0.08);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero__subtitle {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: rgba(255, 255, 255, 0.88);
  max-width: 560px;
  margin-bottom: 28px;
}

.hero__list {
  display: grid;
  gap: 12px;
  margin-bottom: 32px;
}
.hero__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 500;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.95);
}
.hero__list li::before {
  content: "";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: rgba(0, 199, 217, 0.25)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237de5f2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / 13px no-repeat;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.hero__trust li {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero__trust li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
}

/* Visual del hero */
.hero__visual {
  position: relative;
}

.hero__machine {
  position: relative;
}
.hero__machine > img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 45px rgba(2, 32, 56, 0.55));
  animation: floatMachine 6s ease-in-out infinite;
}
@keyframes floatMachine {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

.hero__glow {
  position: absolute;
  inset: -30% -20%;
  z-index: 0;
  background: radial-gradient(closest-side, rgba(0, 199, 217, 0.28), transparent 70%);
  pointer-events: none;
  animation: heroGlow 5s ease-in-out infinite;
}
@keyframes heroGlow {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

.hero__card {
  position: absolute;
  z-index: 2;
  background: #fff;
  color: var(--c-text);
  border-radius: var(--r-md);
  padding: 12px 16px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  animation: floatCard 5s ease-in-out infinite;
}
.hero__card--1 {
  top: 34px;
  left: -14px;
}
.hero__card--2 {
  bottom: 34px;
  right: -10px;
  animation-delay: 1.4s;
}
.hero__card-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--c-primary-deep);
}
.hero__card-label {
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--c-text-soft);
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------------------------- Barra de confianza ------------------------ */
.trustbar {
  background: var(--c-dark);
  padding: 22px 0;
  color: #fff;
}
.trustbar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.trustbar__item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}
.trustbar__icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(0, 199, 217, 0.15);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.trustbar__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--c-accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.trustbar__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.trustbar__tags span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

/* ------------------------------- Secciones ------------------------------ */
.section {
  padding: 88px 0;
}
.section--light {
  background: var(--c-bg-light);
}
.section--dark {
  background: linear-gradient(170deg, var(--c-darker) 0%, var(--c-dark) 60%, var(--c-primary-deep) 100%);
  color: #fff;
}
.section--form {
  background:
    radial-gradient(700px 400px at 90% 10%, rgba(0, 199, 217, 0.18), transparent 60%),
    linear-gradient(160deg, var(--c-dark) 0%, var(--c-primary-deep) 100%);
}

.section__head {
  max-width: 680px;
  margin-bottom: 48px;
}
.section__head--light {
  margin-inline: auto;
  text-align: center;
}
.section__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.section__head--light .section__title {
  color: #fff;
}
.section__lead {
  font-size: 1.08rem;
  color: var(--c-text-soft);
}
.section__head--light .section__lead {
  color: rgba(255, 255, 255, 0.8);
}

/* -------------------- Titulares con fuente corporativa ------------------- */
.hero__title,
.section__title,
.cat-card h3,
.model-card h3,
.adv-card h3,
.seg-card h3,
.step h3,
.form-intro__title,
.cta-final h2,
.footer__col h3 {
  font-family: var(--font-heading);
}

/* Logo "JACK" inline (wordmark) — tamaño proporcional al texto */
.brand-mark {
  display: inline-block;
  height: 0.7em;
  width: auto;
  vertical-align: -0.14em;
  line-height: 1;
}

/* ------------------------------- Grids ---------------------------------- */
.grid {
  display: grid;
  gap: 24px;
}
.grid--categories {
  grid-template-columns: repeat(5, 1fr);
}
.grid--advantages {
  grid-template-columns: repeat(3, 1fr);
}
.grid--segments {
  grid-template-columns: repeat(3, 1fr);
}

/* --------------------------- Tarjetas categoría ------------------------- */
.cat-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
}
.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-accent);
}
.cat-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--c-accent), var(--c-primary));
  display: grid;
  place-items: center;
  margin-bottom: 6px;
}
.cat-card__icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cat-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--c-dark);
}
.cat-card p {
  font-size: 0.92rem;
  color: var(--c-text-soft);
  flex-grow: 1;
}
.cat-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--c-primary-deep);
  margin-top: 4px;
}
.cat-card__link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s var(--ease);
}
.cat-card__link:hover svg {
  transform: translateX(4px);
}

/* ------------------------------- Filtro --------------------------------- */
.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}
.filter__btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--c-text);
  padding: 10px 20px;
  border: 1.5px solid var(--c-line);
  border-radius: 999px;
  background: #fff;
  transition: all 0.2s var(--ease);
}
.filter__btn:hover {
  border-color: var(--c-primary);
  color: var(--c-primary-deep);
}
.filter__btn.is-active {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
  box-shadow: var(--shadow-primary);
}

/* --------------------------- Tarjetas modelo ---------------------------- */
/* ------------------------------- Slider ---------------------------------- */
.slider {
  position: relative;
}
.slider__viewport {
  overflow: hidden;
}
.slider__track {
  display: flex;
  gap: 24px;
  transition: transform 0.55s var(--ease);
}
.slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  color: var(--c-primary-deep);
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-md);
  display: grid;
  place-items: center;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.slider__btn:hover {
  background: var(--c-primary);
  color: #fff;
}
.slider__btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.slider__btn--prev {
  left: -18px;
}
.slider__btn--next {
  right: -18px;
}
.slider__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--c-line);
  transition: background-color 0.25s var(--ease), width 0.25s var(--ease);
}
.slider__dot.is-active {
  background: var(--c-primary);
  width: 26px;
}

/* --------------------------- Búsqueda de modelos ------------------------- */
.model-search {
  position: relative;
  margin-bottom: 24px;
}
.model-search__icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--c-text-soft);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.model-search__input {
  width: 100%;
  padding: 14px 16px 14px 48px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--c-text);
  background: #fff;
  border: 1.5px solid var(--c-line);
  border-radius: var(--r-md);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.model-search__input::placeholder {
  color: #9fb3c8;
}
.model-search__input:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 4px rgba(0, 153, 204, 0.14);
}

/* -------------------------------- Modal ---------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 59, 92, 0.62);
}
.modal__dialog {
  position: relative;
  background: #fff;
  border-radius: var(--r-lg);
  padding: 36px 28px 28px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--c-bg-light);
  color: var(--c-text-soft);
  font-size: 1.4rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.modal__close:hover {
  background: var(--c-line);
  color: var(--c-text);
}
.modal__text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--c-dark);
  margin-bottom: 24px;
}

/* -------------------------------- 404 ------------------------------------ */
.notfound {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(160deg, var(--c-primary) 0%, var(--c-dark) 100%);
}
.notfound__inner {
  text-align: center;
  max-width: 440px;
}
.notfound__code {
  font-family: var(--font-heading);
  font-size: clamp(5rem, 18vw, 9rem);
  line-height: 1;
  color: var(--c-white);
  margin-bottom: 8px;
}
.notfound__title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--c-white);
  margin-bottom: 12px;
}
.notfound__text {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--c-accent-soft);
  margin-bottom: 28px;
}

.model-card {
  flex: 0 0 auto;
  width: calc((100% - 72px) / 4);
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.model-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.model-card.is-hidden {
  display: none;
}
.model-card__media {
  background: #fff;
  padding: 16px;
}
.model-card__media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}
.model-card__body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}
.model-card__tag {
  align-self: flex-start;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-primary-deep);
  background: rgba(0, 153, 204, 0.1);
  padding: 5px 12px;
  border-radius: 999px;
}
.model-card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--c-dark);
  white-space: nowrap;
}
.model-card h3 .brand-mark {
  height: 0.6em;
}
.model-card__code {
  font-size: 0.85rem;
  font-weight: 700;
}
.model-card__desc {
  font-size: 0.92rem;
  color: var(--c-text-soft);
}
.model-card__features {
  display: grid;
  gap: 8px;
  margin: 4px 0 14px;
}
.model-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--c-text);
}
.model-card__features li::before {
  content: "";
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  border-radius: 50%;
  background: rgba(0, 153, 204, 0.12)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23006f9c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / 10px no-repeat;
}
.model-card .btn {
  margin-top: auto;
}

.section__cta {
  margin-top: 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.section__cta p {
  color: var(--c-text-soft);
}

/* ------------------------------ Ventajas -------------------------------- */
.adv-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-lg);
  padding: 30px 26px;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}
.adv-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(125, 229, 242, 0.4);
}
.adv-card__icon {
  width: 54px;
  height: 54px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--c-accent), var(--c-primary));
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.adv-card__icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.adv-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  margin-bottom: 10px;
}
.adv-card p {
  font-size: 0.93rem;
  color: rgba(255, 255, 255, 0.75);
}

/* ------------------------------ Segmentos ------------------------------- */
.seg-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 28px 26px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.seg-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--c-accent), var(--c-primary));
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.seg-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.seg-card:hover::before {
  opacity: 1;
}
.seg-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--c-dark);
  margin-bottom: 10px;
}
.seg-card p {
  font-size: 0.93rem;
  color: var(--c-text-soft);
}

/* -------------------------------- Pasos --------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  background: var(--c-bg-light);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 34px 28px;
  position: relative;
}
.step__num {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-accent), var(--c-primary));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  margin-bottom: 18px;
  box-shadow: var(--shadow-primary);
}
.step h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--c-dark);
  margin-bottom: 10px;
}
.step p {
  font-size: 0.94rem;
  color: var(--c-text-soft);
}

.process-note {
  margin-top: 36px;
  text-align: center;
  font-size: 0.95rem;
  color: var(--c-text-soft);
}

/* ------------------------------ Formulario ------------------------------ */
.form-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
  background: #fff;
  border-radius: var(--r-xl);
  padding: 52px;
  box-shadow: var(--shadow-lg);
}

.form-intro__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--c-dark);
  margin-bottom: 16px;
}
.form-intro__subtitle {
  font-size: 1.08rem;
  color: var(--c-text-soft);
  margin-bottom: 28px;
}
.form-intro__bullets {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form-intro__bullets li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--c-text);
}
.form-intro__bullets li::before {
  content: "";
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 153, 204, 0.12)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230099cc' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}

.form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.field--full {
  grid-column: 1 / -1;
}
.field label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--c-text);
}
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--c-text);
  background: var(--c-bg-light);
  border: 1.5px solid var(--c-line);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  width: 100%;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease),
    background-color 0.18s var(--ease);
}
.field textarea {
  resize: vertical;
  min-height: 90px;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #9fb3c8;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--c-primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 153, 204, 0.14);
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #e11d48;
  background: #fff5f7;
}
.field__error {
  display: none;
  font-size: 0.8rem;
  font-weight: 500;
  color: #e11d48;
}
.field.has-error .field__error {
  display: block;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 20px 0 6px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--c-text-soft);
}
.check input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.check__box {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 2px solid var(--c-line);
  border-radius: 6px;
  background: #fff;
  margin-top: 1px;
  display: grid;
  place-items: center;
  transition: all 0.18s var(--ease);
}
.check input:checked + .check__box {
  background: var(--c-primary);
  border-color: var(--c-primary);
}
.check input:checked + .check__box::after {
  content: "";
  width: 11px;
  height: 11px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / contain no-repeat;
}
.check input:focus-visible + .check__box {
  outline: 3px solid rgba(0, 153, 204, 0.4);
  outline-offset: 2px;
}
.check.has-error .check__box {
  border-color: #e11d48;
}
.field__error--check {
  display: none;
  font-size: 0.8rem;
  color: #e11d48;
  margin: 0 0 14px;
}
.field__error--check.is-visible {
  display: block;
}

.form .btn {
  margin-top: 6px;
}

.form__success {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
  border-radius: var(--r-md);
  padding: 18px 20px;
  font-weight: 500;
}
.form__success svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: #10b981;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* --------------------------------- FAQ ---------------------------------- */
.faq {
  display: grid;
  gap: 12px;
}
.faq__item {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.faq__item.is-open {
  border-color: var(--c-accent);
  box-shadow: var(--shadow-sm);
}
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  padding: 20px 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--c-dark);
}
.faq__q svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--c-primary);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s var(--ease);
}
.faq__item.is-open .faq__q svg {
  transform: rotate(180deg);
}
.faq__a {
  padding: 0 24px 20px;
  color: var(--c-text-soft);
  font-size: 0.95rem;
}
.faq__a p {
  max-width: 640px;
}

/* ------------------------------- CTA final ------------------------------ */
.cta-final {
  padding: 88px 0;
  background: linear-gradient(150deg, var(--c-dark) 0%, var(--c-primary-deep) 70%, var(--c-primary) 100%);
  color: #fff;
  text-align: center;
}
.cta-final__inner {
  max-width: 700px;
  margin-inline: auto;
}
.cta-final h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.cta-final p {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 30px;
}
.cta-final__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* -------------------------------- Footer -------------------------------- */
.footer {
  background: var(--c-darker);
  color: rgba(255, 255, 255, 0.8);
  padding: 64px 0 28px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.footer__logo > img {
  width: 44px;
  height: 44px;
}
.footer__logo span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: #fff;
}
.footer__logo small {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--c-accent);
  display: block;
  letter-spacing: 0.02em;
}
.footer__desc {
  font-size: 0.92rem;
  max-width: 320px;
}
.footer__col h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 16px;
}
.footer__col ul {
  display: grid;
  gap: 10px;
}
.footer__col a {
  font-size: 0.9rem;
  transition: color 0.18s var(--ease);
}
.footer__col a:hover {
  color: var(--c-accent);
}
.footer__bottom {
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ------------------------------ Barra móvil ----------------------------- */
.mobile-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  grid-template-columns: 1fr 1fr;
  background: #fff;
  border-top: 1px solid var(--c-line);
  box-shadow: 0 -6px 24px -12px rgba(16, 42, 67, 0.3);
}
.mobile-bar__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
}
.mobile-bar__btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mobile-bar__btn--call {
  color: var(--c-primary-deep);
  background: var(--c-bg-light);
}
.mobile-bar__btn--wa {
  color: #fff;
  background: #25d366;
}
.mobile-bar__btn--wa svg {
  fill: currentColor;
  stroke: none;
}

/* -------------------------- Animación de aparición ----------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ------------------------------ Focus visible --------------------------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --------------------------- Reduced motion ----------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .grid--categories {
    grid-template-columns: repeat(3, 1fr);
  }
  .model-card {
    width: calc((100% - 24px) / 2);
  }
  .hero__grid {
    gap: 40px;
  }
}

@media (max-width: 960px) {
  .nav__menu {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: #fff;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--c-line);
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease),
      visibility 0.22s;
  }
  .nav__menu.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav__link,
  .nav__phone {
    padding: 14px 12px;
    font-size: 1rem;
  }
  .nav__link {
    border-bottom: 1px solid var(--c-bg-light);
  }
  .btn--nav {
    margin-top: 10px;
    width: 100%;
  }
  .nav__toggle {
    display: flex;
  }

  .hero {
    padding: 48px 0 72px;
  }
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .hero__visual {
    order: -1;
  }
  .hero__card--1 {
    left: 8px;
  }
  .hero__card--2 {
    right: 8px;
  }

  .trustbar__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid--advantages,
  .grid--segments,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-wrap {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 36px;
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .section {
    padding: 64px 0;
  }
  .container {
    padding-inline: 18px;
  }

  .hero__title {
    font-size: 0.8rem;
  }
  .hero__actions .btn {
    width: 100%;
  }
  .hero__trust {
    flex-direction: column;
    gap: 10px;
  }
  .hero__card {
    padding: 10px 13px;
  }
  .hero__card-num {
    font-size: 1.1rem;
  }
  .hero__card--1 {
    top: 12px;
  }
  .hero__card--2 {
    bottom: 14px;
  }

  .trustbar__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .trustbar__tags {
    justify-content: center;
  }

  .grid--categories,
  .grid--advantages,
  .grid--segments,
  .steps {
    grid-template-columns: 1fr;
  }

  .model-card {
    width: 100%;
  }

  .slider__btn {
    width: 40px;
    height: 40px;
  }
  .slider__btn--prev {
    left: -10px;
  }
  .slider__btn--next {
    right: -10px;
  }

  .form__grid {
    grid-template-columns: 1fr;
  }
  .field--full {
    grid-column: auto;
  }
  .form-wrap {
    padding: 26px 20px;
    border-radius: var(--r-lg);
  }
  .form-intro__title {
    font-size: 1.6rem;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .mobile-bar {
    display: grid;
  }

  /* Dejar espacio para la barra móvil */
  body {
    padding-bottom: 62px;
  }
}

@media (max-width: 380px) {
  .hero__card--1 {
    left: 0;
  }
  .hero__card--2 {
    right: 0;
  }
}
