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

:root {
  --primary: rgb(37, 39, 40);
  --primary-light: rgb(76, 76, 76);
  --accent: rgb(76, 76, 76);
  --accent-hover: rgb(113, 113, 113);
  --accent-glow: rgba(76, 76, 76, 0.25);
  --green: #25d366;
  --text: rgb(37, 39, 40);
  --text-light: rgb(113, 113, 113);
  --bg: #ffffff;
  --bg-alt: rgb(239, 239, 239);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --max-width: 1100px;
  --header-h: 64px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Animaciones al scroll (solo con JS activo para no ocultar contenido) */
.js .animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .animate.animate--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  z-index: 100;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.header--scrolled {
  border-bottom-color: #eef2f6;
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo img {
  height: 36px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav__link {
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width var(--transition);
}
.nav__link:hover {
  color: var(--accent);
}
.nav__link:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}
.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, rgb(37, 39, 40) 0%, rgb(37, 39, 40) 30%, rgb(76, 76, 76) 70%, rgb(113, 113, 113) 100%);
  color: white;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(76, 76, 76, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(76, 76, 76, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}

.hero__content h1 {
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1.5px;
  font-weight: 800;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
}
.hero__badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f5b342;
  box-shadow: 0 0 0 0 rgba(245, 179, 66, 0.5);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 179, 66, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(245, 179, 66, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 179, 66, 0); }
}

.hero__content p {
  font-size: 1.15rem;
  opacity: 0.85;
  margin-bottom: 32px;
  max-width: 480px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero__slider {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.slider__track {
  display: flex;
  width: 100%;
  height: 100%;
}

.slider__slide {
  flex: 0 0 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  position: absolute;
  inset: 0;
}

.slider__slide.active {
  opacity: 1;
  position: relative;
}

.slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}

.slider__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  padding: 0;
}

.slider__dot.active {
  background: white;
  transform: scale(1.3);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  font-family: inherit;
  line-height: 1;
}

.btn--primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  box-shadow: 0 4px 16px var(--accent-glow);
}
.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 6px 24px var(--accent-glow);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.4);
}
.btn--outline:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

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

/* Section styling */
.section__title {
  font-size: 2.1rem;
  color: var(--primary);
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
  font-weight: 800;
}

.section__subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 48px;
  font-size: 1.05rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Modelos */
.modelos {
  padding: 90px 0;
}

.modelos__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.modelo-card {
  background: var(--bg);
  border: 1px solid #eef2f6;
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.modelo-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-6px);
  border-color: #dce3ec;
}

.modelo-card__icon {
  width: 100%;
  height: 140px;
  margin: 0 auto 20px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.modelo-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modelo-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--primary);
  font-weight: 700;
}

.modelo-card p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Stats */
.stats {
  padding: 90px 0;
  background: linear-gradient(135deg, rgb(37, 39, 40) 0%, rgb(76, 76, 76) 100%);
  color: white;
}

.stats .section__title {
  color: white;
}

.stats .section__subtitle {
  color: rgba(255, 255, 255, 0.7);
}

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

.stat-card {
  text-align: center;
  padding: 24px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  transition: background var(--transition), transform var(--transition);
}
.stat-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

.stat-card__num {
  display: block;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 6px;
  color: white;
}

.stat-card p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.7);
}

/* FAQ */
.faq {
  padding: 90px 0;
}

.faq__list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid #eef2f6;
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.faq-item:hover {
  box-shadow: var(--shadow-sm);
}

.faq-item__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  line-height: 1.4;
  transition: background var(--transition);
}
.faq-item__question:hover {
  background: #fafcff;
}

.faq-item__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition);
  color: var(--accent);
}
.faq-item.open .faq-item__icon {
  transform: rotate(45deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 24px;
}
.faq-item.open .faq-item__answer {
  max-height: 300px;
  padding: 0 24px 20px;
}

.faq-item__answer p {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* Pedido / Form */
.pedido {
  padding: 90px 0;
  background: var(--bg-alt);
}

.pedido__card {
  background: white;
  border-radius: var(--radius);
  padding: 48px 40px;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}

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

.form__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form__group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.form__group input,
.form__group select,
.form__group textarea {
  padding: 12px 16px;
  border: 1px solid #dde3e9;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: white;
  color: var(--text);
}

.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form__group textarea {
  resize: vertical;
}

.form__optional {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-light);
}

.file-upload {
  position: relative;
  border: 2px dashed #dde3e9;
  border-radius: var(--radius-sm);
  background: #fafbfc;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  overflow: hidden;
}
.file-upload:hover,
.file-upload:focus-within {
  border-color: var(--accent);
  background: #f4f6f8;
}
.file-upload input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}
.file-upload__hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 28px 16px;
  text-align: center;
  color: var(--text-light);
}
.file-upload__icon {
  color: var(--accent);
  margin-bottom: 6px;
}
.file-upload__hint p {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
}
.file-upload__hint span {
  font-size: 0.8rem;
}
.file-upload__preview {
  display: none;
}
.file-upload.has-file .file-upload__hint {
  display: none;
}
.file-upload.has-file .file-upload__preview {
  display: block;
}
.file-upload.has-file input[type="file"] {
  z-index: 0;
}
.file-upload__preview img {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: contain;
}
.file-upload__remove {
  margin-top: 8px;
  background: none;
  border: none;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  align-self: flex-start;
  padding: 4px 0;
}
.file-upload__remove:hover {
  text-decoration: underline;
}

.form__footnote {
  font-size: 0.8rem;
  color: var(--text-light);
  text-align: center;
}

.form__status {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px;
  border-radius: var(--radius-sm);
  display: none;
}
.form__status.success {
  display: block;
  background: #e8f8ee;
  color: #1a7a3a;
}
.form__status.error {
  display: block;
  background: #fde8e8;
  color: #b33;
}

/* Contacto */
.contacto {
  padding: 90px 0;
}

.contacto__grid {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.contacto__item {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 500;
  transition: color var(--transition);
}
.contacto__item:hover {
  color: var(--accent);
}

.contacto__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  border-radius: 50%;
  color: var(--accent);
  transition: background var(--transition), transform var(--transition);
}
.contacto__item:hover .contacto__icon {
  background: var(--accent);
  color: white;
  transform: scale(1.05);
}

.contacto__icon svg {
  width: 22px;
  height: 22px;
}

/* Footer */
.footer {
  padding: 32px 0;
  border-top: 1px solid #eee;
  text-align: center;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer p {
  font-size: 0.8rem;
  color: var(--text-light);
}

.footer__disclaimer {
  font-size: 0.7rem;
  opacity: 0.6;
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  z-index: 99;
  transition: transform var(--transition), box-shadow var(--transition);
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
}
.whatsapp-float svg {
  width: 28px;
  height: 28px;
}

/* Cookies Banner */
.cookies-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary);
  color: white;
  padding: 16px 24px;
  z-index: 200;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.cookies-banner.show {
  transform: translateY(0);
}

.cookies-banner__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookies-banner p {
  font-size: 0.85rem;
  opacity: 0.9;
  line-height: 1.5;
}

.cookies-banner__btn {
  flex-shrink: 0;
  background: var(--accent);
  color: white;
  border: none;
  padding: 10px 28px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--transition);
}
.cookies-banner__btn:hover {
  background: var(--accent-hover);
}

/* Modal de bienvenida */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 16, 17, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: white;
  border-radius: var(--radius);
  max-width: 460px;
  width: 100%;
  padding: 40px 36px 28px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform 0.35s ease;
}
.modal-overlay.show .modal {
  transform: translateY(0);
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
}
.modal__close:hover {
  background: var(--bg-alt);
  color: var(--text);
}

.modal__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: white;
  box-shadow: 0 8px 24px var(--accent-glow);
}

.modal h2 {
  font-size: 1.4rem;
  color: var(--primary);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}

.modal p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 24px;
}

.modal .btn {
  margin-bottom: 12px;
}

.modal__later {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  padding: 8px;
  transition: color var(--transition);
}
.modal__later:hover {
  color: var(--text);
}

/* Responsive */
@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero__content p {
    margin-left: auto;
    margin-right: auto;
  }
  .hero__actions {
    justify-content: center;
  }
  .modelos__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero__content h1 {
    font-size: 2.2rem;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid #eee;
    display: none;
    box-shadow: var(--shadow);
  }
  .nav.nav--open {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .modelos__grid {
    grid-template-columns: 1fr;
  }

  .pedido__card {
    padding: 32px 20px;
  }

  .section__title {
    font-size: 1.65rem;
  }

  .hero__content h1 {
    font-size: 1.9rem;
  }

  .cookies-banner__inner {
    flex-direction: column;
    text-align: center;
  }
}

/* Respeta preferencias de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .animate {
    opacity: 1;
    transform: none;
  }
}

