/* ===========================
   VARIABLES
   =========================== */
:root {
  /* Paleta Tesla-Di Pietro */
  --color-bg:        #F8F8F8;
  --color-bg-mid:    #F2F2F2;
  --color-bg-dark:   #0D0D0D;
  --color-red:       #C41230;
  --color-gold:      #C8A44A;
  --color-steel:     #B8B8B8;
  --color-text:      #1A1A1A;
  --color-text-mid:  #444444;
  --color-text-muted:#888888;
  --color-white:     #FFFFFF;
  --color-border:    #E5E5E5;

  /* Legado (usado en modales y modal-wa) */
  --dark:         #0D0D0D;
  --gold:         #C8A44A;
  --wa:           #25D366;
  --white:        #FFFFFF;
  --light:        #F8F8F8;
  --text:         #1A1A1A;
  --text-muted:   #888888;

  /* Layout */
  --radius:       8px;
  --radius-lg:    12px;
  --shadow:       0 4px 14px rgba(0,0,0,0.06);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
  --transition:   0.3s ease;
  --container:    90%;
  --max-w:        1200px;
  --nav-h:        64px;
}

/* ===========================
   RESET
   =========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-white);
  padding-top: var(--nav-h); /* compensar nav fixed */
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: var(--container);
  max-width: var(--max-w);
  margin: 0 auto;
}

/* Línea roja decorativa antes de títulos de sección */
.section-line {
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-red);
  margin-bottom: 1.5rem;
}

/* Animación reveal global */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===========================
   NAV — siempre negro, logo izquierda, links centrados
   =========================== */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--color-bg-dark);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 48px;
  position: relative;
}

/* Logo — izquierda */
.nav-logo { flex-shrink: 0; }
#logo { height: 2rem; width: auto; }

/* Menú — centrado absolutamente */
.menu {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.1rem;
}
.menu a {
  color: #F5F5F5 !important;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 0.2s ease;
  display: block;
  white-space: nowrap;
}
.menu a:hover {
  background: rgba(255,255,255,0.1);
  text-decoration: none;
}

/* Hamburguesa mobile — right */
.menu-toggle {
  display: none;
  margin-left: auto;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===========================
   HERO
   =========================== */
#hero {
  position: relative;
  background: var(--dark);
  overflow: hidden;
}
#hero-video {
  width: 100%;
  display: block;
  max-height: 90vh;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.42);
  display: flex;
  align-items: flex-end;
  padding-bottom: 8vh;
}
.hero-content {
  width: var(--container);
  max-width: var(--max-w);
  margin: 0 auto;
  color: var(--white);
}
.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  opacity: 0.85;
  margin-bottom: 2rem;
  line-height: 1.6;
}
.btn-hero {
  display: inline-block;
  background: var(--gold);
  color: var(--dark) !important;
  padding: 0.85rem 2.5rem;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  transition: transform var(--transition), box-shadow var(--transition);
}
.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(219,172,99,0.4);
  text-decoration: none;
}

/* ===========================
   CATÁLOGO — Tesla cards
   =========================== */
#catalogo {
  background: var(--color-bg);
  padding-bottom: 5rem;
}
.catalogo-header {
  padding: 5rem 0 3rem;
}
.catalogo-header h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.04em;
  margin-bottom: 0.5rem;
}
.catalogo-header p {
  font-size: 1rem;
  color: var(--color-text-muted);
}
.producto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-bottom: 2rem;
  align-items: start;
  justify-items: stretch;
}
/* Las anclas de categoría no deben ocupar celdas del grid */
.producto-grid > span[id] {
  display: contents;
}
.producto-card {
  display: block;
  height: 100%;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.producto-card:hover {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-hover);
  transform: scale(1.02);
  text-decoration: none;
}
.producto-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center;
  display: block;
}
.producto-label {
  padding: 1rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
}
.producto-label span {
  display: block;
  font-size: 0.8rem;
  color: var(--color-red);
  font-weight: 400;
  margin-top: 0.2rem;
}

/* ===========================
   CATALOGO GRID
   =========================== */
.catalogo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.catalogo-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.catalogo-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Cards solas en la última fila: alinear a la izquierda */
.catalogo-grid .catalogo-card:last-child:nth-child(3n - 1) {
  grid-column: span 1;
}

/* ===========================
   MODALES
   =========================== */
/* ===========================
   MODAL DE PRODUCTO
   =========================== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.modal-overlay.active { display: flex; }

.modal-content {
  background: #FFFFFF;
  border-radius: 16px;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  animation: modalSlideUp 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes modalSlideUp {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #F2F2F2;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #1A1A1A;
  z-index: 10;
  transition: background 0.15s ease;
}
.modal-close:hover { background: #E5E5E5; }

/* Columna izquierda — Galería */
.modal-gallery {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #F8F8F8;
  border-radius: 16px 0 0 16px;
}
.modal-main-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: center;
  background: #F8F8F8;
  border-radius: 8px;
  transition: opacity 0.15s ease;
}
.modal-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.modal-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.6;
  transition: opacity 200ms ease, border-color 200ms ease;
}
.modal-thumb:hover { opacity: 1; }
.modal-thumb.active {
  border-color: #C41230;
  opacity: 1;
}

/* Columna derecha — Info */
.modal-info {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.modal-categoria {
  font-size: 0.75rem;
  font-weight: 600;
  color: #C41230;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0;
}
.modal-nombre {
  font-size: 1.8rem;
  font-weight: 800;
  color: #1A1A1A;
  line-height: 1.1;
  margin: 0;
}
.modal-specs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
}
.modal-specs li {
  padding: 12px 0;
  border-bottom: 1px solid #F2F2F2;
  font-size: 0.9rem;
  color: #444444;
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.modal-specs li::before {
  content: '';
  display: block;
  width: 3px;
  min-height: 16px;
  background: #C41230;
  flex-shrink: 0;
  margin-top: 2px;
  border-radius: 2px;
}
.modal-beneficios {
  display: flex;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-top: 1px solid #F2F2F2;
  border-bottom: 1px solid #F2F2F2;
  margin-bottom: 1.25rem;
}
.modal-beneficio-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  text-align: center;
}
.modal-beneficio-icon {
  width: 36px;
  height: 36px;
}
.modal-beneficio-icon svg {
  width: 100%;
  height: 100%;
}
.modal-beneficio-item span {
  font-size: 0.72rem;
  color: #888888;
  font-weight: 500;
  line-height: 1.3;
}
.modal-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: auto;
  background: #25D366;
  color: #FFFFFF;
  border: none;
  border-radius: 50px;
  padding: 16px 32px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  width: 100%;
  transition: background 200ms ease;
}
.modal-cta:hover { background: #1ea855; }

/* Elementos de conversión — hornos Premium */
.modal-promo-bar {
  background: #C41230;
  color: white;
  padding: 12px 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-radius: 16px 16px 0 0;
  flex-wrap: wrap;
  grid-column: 1 / -1;
}
.modal-promo-icon { font-size: 1rem; }
.modal-promo-texto {
  font-size: 0.85rem;
  font-weight: 700;
  flex: 1;
}
.modal-promo-garantia {
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(255,255,255,0.2);
  padding: 4px 12px;
  border-radius: 50px;
  white-space: nowrap;
}
.sello-garantia {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #FFFBF0;
  border: 1px solid #C8A44A;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 1rem;
}
.sello-titulo {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #C8A44A;
}
.sello-sub {
  display: block;
  font-size: 0.75rem;
  color: #888888;
}
.modal-cta-secundario {
  display: block;
  text-align: center;
  color: #C41230;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: 0.75rem;
  transition: opacity 200ms;
}
.modal-cta-secundario:hover { opacity: 0.7; }

/* Badges sobre cards de catálogo */
.badge-urgencia {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #C41230;
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 50px;
  letter-spacing: 0.03em;
  z-index: 2;
}
.badge-garantia {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #C8A44A;
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 50px;
  letter-spacing: 0.03em;
  z-index: 2;
}

/* Responsive modal */
@media (max-width: 640px) {
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal-content {
    grid-template-columns: 1fr;
    border-radius: 16px 16px 0 0;
    max-height: 95vh;
  }
  .modal-gallery { border-radius: 16px 16px 0 0; }
}

/* ===========================
   EMPRESA — Tesla split
   =========================== */
#empresa { background: var(--color-white); }
.empresa-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}
.empresa-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.empresa-texto {
  padding: 5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}
.empresa-texto h2 {
  font-size: clamp(2rem, 3vw, 3.2rem);
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.empresa-texto p { font-size: 1rem; line-height: 1.7; color: var(--color-text-mid); }
.empresa-texto p strong { color: var(--color-text); }
.garantia-badge { width: 7rem; margin-top: 1rem; }

/* ===========================
   FINANCIACIÓN — Tesla light
   =========================== */
#financiacion {
  background: #FFFFFF;
  padding: 6rem 6%;
}

.financiacion-header {
  max-width: 600px;
  margin-bottom: 4rem;
}

.financiacion-header h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  color: #1A1A1A;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 1rem 0;
}

.financiacion-header p {
  font-size: 1.05rem;
  color: #888888;
  line-height: 1.7;
  max-width: 480px;
}

.financiacion-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.financiacion-card {
  padding: 2.5rem 2rem;
  border: 1px solid #E5E5E5;
  border-radius: 16px;
  background: #FAFAFA;
  transition: border-color 200ms, box-shadow 200ms;
}

.financiacion-card:hover {
  border-color: #C41230;
  box-shadow: 0 8px 30px rgba(196,18,48,0.08);
}

.financiacion-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 1.5rem;
}

.financiacion-icon svg {
  width: 100%;
  height: 100%;
}

.financiacion-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1A1A1A;
  margin-bottom: 0.75rem;
}

.financiacion-card p {
  font-size: 0.9rem;
  color: #666666;
  line-height: 1.7;
}

.financiacion-cta {
  text-align: left;
}

.btn-outline-dark {
  display: inline-block;
  border: 1.5px solid #1A1A1A;
  color: #1A1A1A;
  padding: 14px 40px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 200ms, color 200ms;
}

.btn-outline-dark:hover {
  background: #1A1A1A;
  color: #FFFFFF;
}

.section-line-red {
  width: 60px;
  height: 3px;
  background: #C41230;
  margin-bottom: 1.5rem;
}

/* ===========================
   FRASE IMPACTO
   =========================== */
#frase-impacto {
  background: var(--color-bg-dark);
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.frase-impacto-inner {
  text-align: center;
  padding: 0 6%;
}
.frase-impacto-text {
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 800;
  color: #F5F5F5;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.1;
  letter-spacing: -0.02em;
  min-height: 1.2em;
}
.frase-linea-roja {
  display: block;
  width: 80px;
  height: 3px;
  background: var(--color-red);
  margin: 2rem auto 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.frase-linea-roja.visible { opacity: 1; }

/* ===========================
   EQUIPO COMERCIAL
   =========================== */
#equipo {
  background: var(--color-white);
  padding: 5rem 0;
}
.equipo-titulo {
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.04em;
  margin-bottom: 0.5rem;
}
.equipo-subtitulo {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: 3rem;
}
.equipo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.equipo-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-top-width: 3px;
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.equipo-card-full {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  padding: 1.5rem 2rem;
  gap: 1.5rem;
}
.equipo-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-white);
  flex-shrink: 0;
}
.equipo-info { flex: 1; }
.equipo-nombre {
  font-weight: 700;
  color: var(--color-text);
  font-size: 1rem;
  margin-bottom: 0.15rem;
}
.equipo-rol {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}
.equipo-cel {
  font-size: 0.9rem;
  color: var(--color-text-mid);
}
.btn-wa-equipo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #25D366;
  color: var(--color-white) !important;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s ease;
  white-space: nowrap;
  align-self: flex-start;
}
.btn-wa-equipo:hover { background: #1ebe5a; text-decoration: none; }

/* ===========================
   EXPORTACIÓN
   =========================== */
#exportacion {
  background: var(--color-bg);
  padding: 5rem 0;
}
.export-titulo {
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.04em;
  margin-bottom: 0.5rem;
}
.export-subtitulo {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: 3rem;
}
.export-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}
.export-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
  cursor: default;
}
.export-card:hover {
  border-color: var(--color-gold);
  transform: scale(1.03);
}
.export-flag { font-size: 2.5rem; line-height: 1; }
.export-pais { font-size: 0.85rem; color: var(--color-text-mid); font-weight: 500; }

/* ===========================
   BANNER PROMOCIONES
   =========================== */
#promociones {
  background: var(--color-red);
  padding: 4rem 6%;
}
.promo-titulo {
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 2rem;
  letter-spacing: -0.03em;
}
.promo-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.promo-texto {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
}
.btn-promo {
  background: var(--color-white);
  color: var(--color-red) !important;
  font-weight: 700;
  padding: 12px 32px;
  border-radius: 4px;
  font-size: 1rem;
  transition: background 0.2s ease;
  white-space: nowrap;
}
.btn-promo:hover { background: #f0f0f0; text-decoration: none; }

/* ===========================
   PROMO OFERTA — fondo blanco, imagen izq, texto der
   =========================== */
#promociones {
  background: #fff;
  padding: 0;
}
.promo-card--oferta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 420px;
}
.promo-oferta-img {
  overflow: hidden;
  margin: 0;
  padding: 0;
  height: 100%;
  line-height: 0;
}
.promo-oferta-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  padding: 0;
}
.promo-oferta-texto {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.4rem;
  padding: 3.5rem 4rem;
}
.promo-titulo-oferta {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 900;
  color: #0D0D0D;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}
.promo-headline {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  color: #333;
  line-height: 1.5;
  margin: 0;
}
.promo-headline strong { font-weight: 700; color: #0D0D0D; }
.promo-vencida {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-red);
}

/* Timer — números negros */
.promo-timer {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.promo-timer-bloque {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f2f2f2;
  border-radius: 6px;
  padding: 8px 14px;
  min-width: 58px;
}
.promo-timer-num {
  font-size: 1.9rem;
  font-weight: 900;
  color: #C41230;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.promo-timer-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}
.promo-timer-sep {
  font-size: 1.6rem;
  font-weight: 900;
  color: #ccc;
  line-height: 1;
  margin-bottom: 14px;
}

/* Botón rojo, muy redondeado, a sangre con el texto */
.btn-promo-oferta {
  display: block;
  background: var(--color-red);
  color: #fff !important;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  padding: 16px 0;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
  width: 100%;
}
.btn-promo-oferta:hover {
  background: #c0120e;
  transform: translateY(-1px);
  text-decoration: none;
}

@media (max-width: 768px) {
  .promo-card--oferta {
    grid-template-columns: 1fr;
  }
  .promo-oferta-img {
    height: 260px;
  }
  .promo-oferta-texto {
    padding: 2.5rem 1.5rem;
  }
  .promo-timer-bloque { min-width: 48px; padding: 6px 10px; }
  .promo-timer-num { font-size: 1.5rem; }
}

/* ===========================
   CONTACTO
   =========================== */
#contacto {
  background-image: url(../img/bg02.jpg);
  background-size: cover;
  background-position: center;
}
.contacto-overlay {
  background: rgba(0,0,0,0.62);
  padding: 6rem 0;
}
.contacto-overlay .container { color: var(--white); }
.contacto-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contacto-intro h2 {
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  margin-bottom: 1rem;
}
.contacto-intro p { font-size: 1.05rem; opacity: 0.85; line-height: 1.6; }
.contacto-datos { display: flex; flex-direction: column; gap: 0; }
.contacto-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0;
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  transition: color var(--transition);
  color: var(--white) !important;
}
.contacto-item:hover { color: var(--gold) !important; text-decoration: none; }
.contacto-item i { width: 1.25rem; text-align: center; opacity: 0.8; flex-shrink: 0; }

/* ===========================
   FAQ
   =========================== */
#faq {
  background: var(--color-bg);
  padding: 5rem 0;
}
.faq-titulo {
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.04em;
  margin-bottom: 0.5rem;
}
.faq-subtitulo {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: 3rem;
}
.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--color-border);
}
.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 0;
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text);
  cursor: pointer;
  user-select: none;
  transition: color var(--transition);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--color-red); }
.faq-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), border-color var(--transition);
}
.faq-chevron svg { transition: transform var(--transition); }
.faq-item[open] summary { color: var(--color-red); }
.faq-item[open] .faq-chevron { border-color: var(--color-red); transform: rotate(45deg); }
.faq-respuesta {
  padding: 0 0 1.4rem 0;
  font-size: 0.95rem;
  color: var(--color-text-mid);
  line-height: 1.75;
  max-width: 680px;
}

/* ===========================
   FOOTER — Tesla style
   =========================== */
footer {
  background: var(--color-bg-dark);
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
.footer-logo { height: 2.5rem; opacity: 0.6; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1rem;
}
.footer-nav a {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}
.footer-nav a:hover { color: var(--color-white); }
.footer-copy {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* ===========================
   BOTÓN WA FLOTANTE — alterna Emiliano/Betina
   =========================== */
#wa-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 150;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#wa-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

/* ===========================
   RESPONSIVE — TABLET
   =========================== */
@media (max-width: 900px) {
  .empresa-layout { grid-template-columns: 1fr; }
  .empresa-foto { max-height: 320px; overflow: hidden; }
  .empresa-foto img { max-height: 320px; }
  .empresa-texto { padding: 3rem 2rem; }
  .contacto-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .financiacion-grid { grid-template-columns: 1fr; gap: 1rem; }
  .export-grid { grid-template-columns: repeat(3, 1fr); }
  .equipo-grid { grid-template-columns: 1fr; }
  .equipo-card-full { flex-direction: column; align-items: flex-start; }
  /* Carrusel: 2 columnas en tablet */
  .categorias-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-card:last-child { grid-column: 1 / -1; height: 320px; }
  /* Banners: 1 columna */
  .banners-grid { grid-template-columns: 1fr; }
  /* Stats: 1 columna */
  .stats-grid { grid-template-columns: 1fr; gap: 3rem; }
}

/* ===========================
   RESPONSIVE — MOBILE
   =========================== */
@media (max-width: 768px) {
  /* Nav */
  .nav-inner { padding: 0 20px; }
  .menu {
    position: static;
    transform: none;
    display: none;
  }
  .menu-toggle { display: flex; }
  .menu.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg-dark);
    padding: 0.5rem 5%;
    flex-direction: column;
    align-items: flex-start;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .menu.open > li { width: 100%; }
  .menu.open a { padding: 0.75rem 0; font-size: 1rem; }
  /* Carrusel: 1 columna en mobile — apilado vertical */
  .categorias-grid {
    grid-template-columns: 1fr;
    overflow-x: visible;
  }
  .cat-card {
    height: 280px;
    width: 100%;
  }
  /* Resetear la regla de tablet que expande la última card */
  .cat-card:last-child {
    grid-column: auto;
    height: 280px;
  }

  /* Stats: 1 columna */
  .stats-grid { grid-template-columns: 1fr; }

  /* Catálogo */
  .producto-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  #catalogo { padding-bottom: 2rem; }

  /* Empresa */
  .empresa-texto { padding: 2.5rem 5%; }

  /* Exportación */
  .export-grid { grid-template-columns: repeat(3, 1fr); }

  /* Banner — texto wrap correcto, height auto en mobile */
  .promo-card { flex-direction: column; }
  .banner-card {
    height: auto;
    min-height: 220px;
    overflow: visible;
  }
  .banner-titulo,
  .banner-sub,
  .financiacion-card h3,
  .financiacion-card p {
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .producto-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .export-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===========================
   CARRUSEL CATEGORÍAS — estilo Tesla
   =========================== */
#categorias { background: var(--color-white); }
.categorias-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.cat-card {
  position: relative;
  height: 500px;
  overflow: hidden;
  cursor: pointer;
  display: block;
  text-decoration: none;
}
.cat-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.cat-card:hover .cat-bg { transform: scale(1.04); }
.cat-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  transition: background 0.3s ease;
}
.cat-card:hover .cat-overlay { background: rgba(0,0,0,0.48); }
.cat-content {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
  z-index: 1;
}
.cat-eyebrow {
  color: rgba(255,255,255,0.7);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.4rem;
}
.cat-titulo {
  color: var(--color-white);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  line-height: 1;
}
.cat-btn {
  display: inline-block;
  background: var(--color-white);
  color: var(--color-text);
  border-radius: 50px;
  padding: 10px 28px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: background 0.2s ease, color 0.2s ease;
}
.cat-card:hover .cat-btn {
  background: rgba(255,255,255,0.9);
}

/* ===========================
   DOS BANNERS — estilo Tesla
   =========================== */
#banners { background: var(--color-bg-mid); padding: 12px; }
.banners-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.banner-card {
  border-radius: var(--radius-lg);
  height: 280px;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  cursor: pointer;
}
.banner-light {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
}
.banner-dark { background: var(--color-bg-dark); }
.banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.banner-card:hover .banner-bg { transform: scale(1.04); }
.banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  transition: background 0.3s ease;
}
.banner-card:hover .banner-overlay { background: rgba(0,0,0,0.55); }
.banner-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}
.banner-titulo {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.banner-light .banner-titulo { color: var(--color-text); }
.banner-dark .banner-titulo { color: var(--color-white); }
.banner-sub { font-size: 0.95rem; }
.banner-light .banner-sub { color: var(--color-text-muted); }
.banner-dark .banner-sub { color: rgba(255,255,255,0.8); }
.banner-btn {
  display: inline-block;
  border-radius: 50px;
  padding: 10px 28px;
  font-weight: 600;
  font-size: 0.85rem;
  align-self: flex-start;
  transition: background 0.2s ease, color 0.2s ease;
}
.banner-btn-dark {
  border: 1px solid var(--color-text);
  color: var(--color-text);
  background: transparent;
}
.banner-light:hover .banner-btn-dark {
  background: var(--color-text);
  color: var(--color-white);
}
.banner-btn-white {
  border: 1px solid var(--color-white);
  color: var(--color-white);
  background: transparent;
}
.banner-dark:hover .banner-btn-white {
  background: var(--color-white);
  color: var(--color-text);
}

/* ===========================
   ESTADÍSTICAS
   =========================== */
#estadisticas {
  background: var(--color-bg-dark);
  padding: 5rem 6%;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.stat-item { text-align: center; }
.stat-num {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-desc {
  font-size: 1rem;
  color: var(--color-steel);
}

/* ===========================
   HERO SCROLL (Apple-style)
   =========================== */

.hero-scroll-section {
  height: 120vh;
  position: relative;
}

.hero-scroll-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: #0D0D0D;
}

/* Imagen fullscreen */
.hero-image-col {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-frames {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  border-radius: 0;
  box-shadow: none;
  animation: none;
}

.hero-frame.active { opacity: 1; }

.hero-frame.glow {
  filter: brightness(1.05);
}

/* Overlay degradado */
.hero-image-col::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.0) 40%,
    rgba(0,0,0,0.75) 100%
  );
  z-index: 1;
}

/* Texto — esquina derecha */
.hero-text-col {
  position: absolute;
  top: 0;
  right: 0;
  width: 42%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 6% 0 2%;
  z-index: 2;
}

.hero-eyebrow {
  font-size: 0.75rem;
  color: #C41230;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.hero-title {
  font-size: clamp(1.8rem, 3vw, 3.2rem);
  font-weight: 800;
  color: #F5F5F5;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1rem;
  color: #C8A44A;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Specs */
.hero-specs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hero-specs.visible { opacity: 1; }

.spec-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #F5F5F5;
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0;
  transform: translateX(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.spec-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.spec-line {
  display: block;
  width: 3px;
  height: 24px;
  background: #C41230;
  flex-shrink: 0;
}

/* CTA */
.hero-cta {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hero-cta.visible { opacity: 1; }

.btn-primary {
  background: #C41230;
  color: white;
  padding: 16px 48px;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50px;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s ease;
}

.btn-primary:hover { background: #A00E26; }

/* MOBILE */
@media (max-width: 768px) {
  .hero-image-col::after {
    background: linear-gradient(
      to top,
      rgba(0,0,0,0.85) 0%,
      rgba(0,0,0,0.2) 50%,
      rgba(0,0,0,0.0) 100%
    );
  }
  .hero-text-col {
    width: 100%;
    top: auto;
    bottom: 0;
    height: auto;
    padding: 2rem 6% 3rem;
    justify-content: flex-end;
  }
  .hero-title {
    font-size: clamp(1.6rem, 6vw, 2.4rem);
  }
}

/* ===========================
   OVERRIDE MOBILE — va al final para ganar la cascada sobre reglas base
   que están definidas después de los media queries anteriores
   =========================== */
@media (max-width: 768px) {
  /* PROBLEMA 1 — Categorías: forzar 1 columna */
  .categorias-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    overflow-x: visible !important;
  }
  .cat-card {
    height: 260px !important;
    width: 100% !important;
  }
  .cat-card:last-child {
    grid-column: auto !important;
    height: 260px !important;
  }

  /* PROBLEMA 2 — Banners: 1 columna, texto legible */
  .banners-grid {
    grid-template-columns: 1fr !important;
  }
  .banner-card {
    height: auto !important;
    min-height: 200px !important;
    padding: 1.8rem !important;
    overflow: visible !important;
  }
  .banner-titulo {
    font-size: 1.3rem !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
  }
  .banner-sub {
    font-size: 0.85rem !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }
  .financiacion-grid {
    grid-template-columns: 1fr !important;
  }
  .financiacion-card h3 {
    font-size: 1rem !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }
  .financiacion-card p {
    font-size: 0.85rem !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }
}
