/* === DESIGN TOKENS === */
:root {
  --bg-deep: #111114;
  --bg-surface: #1a1a1f;
  --bg-card: #222228;
  --bg-card-hover: #2a2a32;
  --accent: #e8913a;
  --accent-dim: #c47a2e;
  --accent-glow: rgba(232, 145, 58, 0.15);
  --copper: #8b6914;
  --trace: #252530;
  --trace-highlight: #2d2d3a;
  --text-primary: #e8e4df;
  --text-secondary: #9a9590;
  --text-muted: #5a5856;
  --green-ok: #5cb85c;
  --green-dim: rgba(92, 184, 92, 0.15);
  --radius: 6px;
  --font-display: 'SF Pro Display', system-ui, -apple-system, sans-serif;
  --font-body: 'SF Pro Text', system-ui, -apple-system, sans-serif;
  --font-mono: 'SF Mono', 'Menlo', 'Consolas', monospace;
}

/* This design deliberately commits to a dark theme — it IS the identity */

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

body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

.content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === NAV === */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--trace);
}
.logo {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
}
.logo span {
  color: var(--text-primary);
}
nav ul {
  display: flex;
  list-style: none;
  gap: 28px;
}
nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color 0.2s;
}
nav a:hover { color: var(--accent); }
.lang-switch {
  display: flex;
  gap: 8px;
}
.lang-switch a {
  font-size: 12px;
  padding: 3px 8px;
  border: 1px solid var(--trace);
  border-radius: 3px;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s;
}
.lang-switch a.active,
.lang-switch a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* === NAV MOBILE TOGGLE === */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}

/* === HERO === */
.hero {
  padding: 100px 0 80px;
  text-align: center;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  text-wrap: balance;
  margin-bottom: 20px;
}
.hero h1 .highlight {
  color: var(--accent);
}
.hero p {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  text-wrap: balance;
}
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  padding: 16px 36px;
  border-radius: 50px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 0 30px rgba(37, 211, 102, 0.2);
}
.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(37, 211, 102, 0.35);
}
.btn-whatsapp svg {
  width: 22px; height: 22px;
  fill: currentColor;
}
.btn-whatsapp.btn-sm {
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 50px;
}

/* === TRUST BAR === */
.trust-bar {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  padding: 40px 0;
  border-top: 1px solid var(--trace);
  border-bottom: 1px solid var(--trace);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 14px;
}
.trust-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green-ok);
  box-shadow: 0 0 8px rgba(92, 184, 92, 0.4);
}

/* === SECTION === */
section {
  padding: 80px 0;
}
section h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 600;
  margin-bottom: 12px;
}
section h2 .accent { color: var(--accent); }
section > p.subtitle {
  color: var(--text-secondary);
  font-size: 17px;
  margin-bottom: 48px;
  max-width: 550px;
}

/* === STEPS === */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.step {
  background: var(--bg-card);
  border: 1px solid var(--trace);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.2s, background 0.2s;
}
.step:hover {
  border-color: var(--accent-dim);
  background: var(--bg-card-hover);
}
.step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.step h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}
.step p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

/* === BRANDS === */
.brands-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.brand-tag {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--trace);
  border-radius: 4px;
  padding: 8px 16px;
  letter-spacing: 0.5px;
}

/* === PRICE CARD === */
.price-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 700px) {
  .price-section { grid-template-columns: 1fr; }
}
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--trace);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.price-card.featured {
  border-color: var(--accent-dim);
  box-shadow: 0 0 40px var(--accent-glow);
}
.price-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}
.price-card .price {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  margin: 16px 0;
}
.price-card .price .unit {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 400;
}
.price-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.price-card li {
  color: var(--text-secondary);
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.price-card li::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--accent-dim);
  flex-shrink: 0;
}

/* === INSURANCE CALLOUT === */
.callout {
  background: var(--bg-card);
  border: 1px solid var(--accent-dim);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-top: 40px;
}
.callout h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}
.callout p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}
.callout a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-dim);
}

/* === FOOTER === */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--trace);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
footer p {
  color: var(--text-muted);
  font-size: 13px;
}
footer a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
}

/* === FLOATING WHATSAPP === */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 100;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
  transition: transform 0.15s;
  text-decoration: none;
}
.wa-float:hover { transform: scale(1.1); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }

/* ===================================================
   INTERNAL PAGES — styles not present in the mockup
   =================================================== */

/* === PAGE HEADER (internal pages) === */
.page-header {
  padding: 60px 0 40px;
  text-align: left;
}

/* === PAGE CONTENT === */
.page-content {
  max-width: 800px;
}
.page-content p {
  margin-bottom: 16px;
  color: var(--text-secondary);
}
.page-content h3 {
  margin-top: 40px;
  margin-bottom: 12px;
}
.page-content ul,
.page-content ol {
  margin-left: 20px;
  margin-bottom: 16px;
  color: var(--text-secondary);
}
.page-content li {
  margin-bottom: 8px;
}
.page-content a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-dim);
  text-decoration: none;
}

/* === LEGAL TEXT (condiciones de servicio) === */
.legal-text {
  font-size: 14px;
  line-height: 1.7;
}
.legal-text h2 {
  font-size: 20px;
  margin-top: 48px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--trace);
  padding-bottom: 8px;
}
.legal-text blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  margin: 20px 0;
  font-style: italic;
  color: var(--text-secondary);
}

/* === PRICE TABLE === */
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.price-table th {
  text-align: left;
  color: var(--text-muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--trace);
}
.price-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--trace);
  color: var(--text-secondary);
}
.price-table td:last-child {
  font-family: var(--font-mono);
  color: var(--accent);
  font-weight: 600;
}

/* === INFO BOX (callout without border-left) === */
.info-box {
  background: var(--bg-card);
  border: 1px solid var(--accent-dim);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-top: 40px;
}

/* === STEPS EXPANDED (como-funciona page) === */
.steps-expanded .step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--trace);
  border-radius: var(--radius);
  padding: 28px 24px;
  margin-bottom: 20px;
  transition: border-color 0.2s, background 0.2s;
}
.steps-expanded .step:hover {
  border-color: var(--accent-dim);
  background: var(--bg-card-hover);
}
.steps-expanded .step-number {
  font-family: var(--font-mono);
  font-size: 28px;
  color: var(--accent);
  font-weight: 700;
}

/* === TIENDA (shop) === */
.tienda-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.tienda-card {
  background: var(--bg-card);
  border: 1px solid var(--trace);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
}
.tienda-card:hover {
  border-color: var(--accent-dim);
  background: var(--bg-card-hover);
}
.tienda-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}
.tienda-card-nofoto {
  width: 100%;
  height: 200px;
  background: var(--bg-surface);
  border-radius: var(--radius) var(--radius) 0 0;
}
.tienda-card .info {
  padding: 20px;
}
.tienda-card .info h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 8px 0 4px;
}
.tienda-card .info p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 12px;
}
.tienda-card .info .price {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
}
.tienda-card .estado {
  font-size: 12px;
  font-family: var(--font-mono);
  padding: 4px 8px;
  border-radius: 3px;
  display: inline-block;
}
.tienda-card .estado.reparada {
  background: var(--green-dim);
  color: var(--green-ok);
}
.tienda-card .estado.piezas {
  background: var(--accent-glow);
  color: var(--accent);
}
.tienda-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.tienda-filters select {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--trace);
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  font-family: var(--font-body);
  cursor: pointer;
  appearance: auto;
}
.tienda-filters select:focus {
  outline: none;
  border-color: var(--accent-dim);
}
.tienda-empty {
  text-align: center;
  padding: 80px 0;
  color: var(--text-muted);
}

/* === CONTACT === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--trace);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color 0.2s, background 0.2s;
}
.contact-card:hover {
  border-color: var(--accent-dim);
  background: var(--bg-card-hover);
}
.contact-card .label {
  font-size: 12px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.contact-card .value {
  font-size: 18px;
}
.contact-card .value a {
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--trace);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  nav ul {
    display: none;
  }
  nav ul.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-deep);
    padding: 20px;
    border-bottom: 1px solid var(--trace);
    z-index: 50;
  }
  nav {
    position: relative;
  }
  .hero { padding: 60px 0 50px; }
  .trust-bar { gap: 20px; }
  section { padding: 50px 0; }
  footer { flex-direction: column; text-align: center; }
  .contact-grid { grid-template-columns: 1fr; }
}
