/* ==========================================================================
   MIDASS MARKET — Prototipo
   Design system + componentes + páginas
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand — rojo como color primario de identidad */
  --c-primary: #C41413;
  --c-primary-dark: #8E0E0E;
  --c-primary-light: #E53E3E;
  --c-red: #C41413;
  --c-red-dark: #8E0E0E;
  --c-yellow: #F8B916;
  --c-yellow-dark: #D99E00;
  --c-dark: #1A1A1A;       /* fondo oscuro para contrastes */

  /* Neutrals */
  --c-ink: #1A1A1A;
  --c-ink-2: #3D3D3D;
  --c-ink-3: #6B7280;
  --c-line: #E5E7EB;
  --c-surface: #F5F6F8;
  --c-surface-2: #FAFBFC;
  --c-white: #FFFFFF;

  /* Feedback */
  --c-success: #16A34A;
  --c-success-bg: #DCFCE7;
  --c-error: #DC2626;
  --c-error-bg: #FEE2E2;

  /* Type */
  --f-head: 'Poppins', system-ui, -apple-system, sans-serif;
  --f-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
  --sp-10: 128px;

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 9999px;

  /* Shadows */
  --sh-sm: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.04);
  --sh-md: 0 4px 8px rgba(16,24,40,.06), 0 8px 24px rgba(16,24,40,.08);
  --sh-lg: 0 12px 32px rgba(16,24,40,.12);

  /* Layout */
  --wrap: 1240px;
  --wrap-narrow: 980px;
  --header-h: 88px;

  /* Transitions */
  --t-fast: 150ms ease;
  --t-base: 220ms ease;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
a { color: var(--c-primary); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--c-primary-dark); }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--f-head); font-weight: 700; line-height: 1.2; color: var(--c-ink); }
p { margin: 0; }

/* ---------- 3. Layout ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--sp-5); }
.wrap-narrow { max-width: var(--wrap-narrow); margin: 0 auto; padding: 0 var(--sp-5); }
.section { padding: var(--sp-9) 0; }
.section-sm { padding: var(--sp-7) 0; }
.section-tight { padding: var(--sp-6) 0; }

/* ---------- 4. Type ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--f-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: var(--sp-3);
}
.h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -.02em; }
.h2 { font-size: clamp(28px, 3.5vw, 40px); letter-spacing: -.015em; }
.h3 { font-size: clamp(22px, 2.5vw, 28px); }
.h4 { font-size: 20px; }
.lead { font-size: 18px; color: var(--c-ink-2); line-height: 1.6; }
.muted { color: var(--c-ink-3); }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 14px 26px;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--r-md);
  transition: all var(--t-base);
  white-space: nowrap;
  line-height: 1;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--c-primary);
  color: var(--c-white);
}
.btn-primary:hover {
  background: var(--c-primary-dark);
  color: var(--c-white);
  transform: translateY(-1px);
  box-shadow: var(--sh-md);
}
.btn-red {
  background: var(--c-red);
  color: var(--c-white);
}
.btn-red:hover { background: var(--c-red-dark); color: var(--c-white); transform: translateY(-1px); box-shadow: var(--sh-md); }
.btn-yellow {
  background: var(--c-yellow);
  color: var(--c-ink);
}
.btn-yellow:hover { background: var(--c-yellow-dark); color: var(--c-ink); transform: translateY(-1px); box-shadow: var(--sh-md); }
.btn-outline {
  background: transparent;
  color: var(--c-primary);
  box-shadow: inset 0 0 0 2px var(--c-primary);
}
.btn-outline:hover {
  background: var(--c-primary);
  color: var(--c-white);
}
.btn-ghost { background: transparent; color: var(--c-ink); }
.btn-ghost:hover { background: var(--c-surface); color: var(--c-ink); }
.btn-lg { padding: 18px 34px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; pointer-events: none; }

/* ---------- 6. Header ---------- */
.topbar {
  background: var(--c-dark);
  color: rgba(255,255,255,.9);
  font-size: 13px;
  padding: 10px 0;
  border-bottom: 2px solid var(--c-primary);
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-5); }
.topbar a { color: rgba(255,255,255,.9); }
.topbar a:hover { color: var(--c-yellow); }
.topbar-left, .topbar-right { display: flex; gap: var(--sp-5); align-items: center; }
.topbar-right a { display: inline-flex; align-items: center; gap: 6px; }

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--c-white);
  border-bottom: 1px solid var(--c-line);
  box-shadow: 0 1px 0 rgba(16,24,40,.02);
}
.header .wrap {
  display: flex;
  align-items: center;
  height: var(--header-h);
  gap: var(--sp-5);
}
.logo {
  font-family: var(--f-head);
  font-weight: 800;
  font-size: 22px;
  color: var(--c-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo img { height: 52px; width: auto; display: block; }
.logo-mark {
  width: 44px; height: 44px;
  background: var(--c-primary);
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  color: var(--c-yellow);
  font-family: var(--f-head);
  font-weight: 800;
  font-size: 22px;
  box-shadow: 0 2px 8px rgba(196,20,19,.3);
}
.logo-text { color: var(--c-dark); }
.logo-text span { color: var(--c-primary); }

.nav {
  display: flex;
  gap: var(--sp-2);
  margin-left: var(--sp-4);
  flex: 1;
}
.nav a {
  padding: 10px 14px;
  font-family: var(--f-head);
  font-weight: 500;
  font-size: 15px;
  color: var(--c-ink);
  border-radius: var(--r-md);
  transition: all var(--t-fast);
}
.nav a:hover { background: var(--c-surface); color: var(--c-primary); }
.nav a.active { color: var(--c-primary); font-weight: 600; }

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-left: auto;
}
.icon-btn {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  color: var(--c-ink);
  position: relative;
  transition: background var(--t-fast);
}
.icon-btn:hover { background: var(--c-surface); color: var(--c-primary); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn .badge {
  position: absolute;
  top: 4px; right: 4px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  background: var(--c-red);
  color: var(--c-white);
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--r-full);
  display: grid;
  place-items: center;
}

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: var(--r-md);
}
.menu-toggle svg { width: 26px; height: 26px; }

/* ---------- 7. Hero ---------- */
.hero {
  background: linear-gradient(135deg, #1A1A1A 0%, #2A0A0A 45%, var(--c-primary-dark) 100%);
  color: var(--c-white);
  padding: var(--sp-9) 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--c-primary) 0%, transparent 60%);
  opacity: .35;
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--c-yellow) 0%, transparent 60%);
  opacity: .12;
  border-radius: 50%;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--sp-8);
  align-items: center;
}
.hero h1 { color: var(--c-white); font-size: clamp(38px, 5vw, 62px); }
.hero h1 span { color: var(--c-yellow); }
.hero p {
  font-size: 19px;
  color: rgba(255,255,255,.85);
  margin: var(--sp-5) 0 var(--sp-6);
  max-width: 540px;
}
.hero-cta { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.hero-bullets {
  display: flex;
  gap: var(--sp-5);
  margin-top: var(--sp-7);
  flex-wrap: wrap;
}
.hero-bullet {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  color: rgba(255,255,255,.9);
  font-size: 14px;
  font-weight: 500;
}
.hero-bullet svg { width: 20px; height: 20px; color: var(--c-yellow); }

.hero-visual {
  position: relative;
  aspect-ratio: 1/1;
  max-width: 520px;
  margin-left: auto;
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--r-xl);
  display: grid;
  place-items: center;
  padding: var(--sp-5);
}
.hero-visual-inner {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: var(--r-lg);
  background:
    radial-gradient(circle at 30% 30%, rgba(248,185,22,.25) 0%, transparent 60%),
    linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.5);
  font-family: var(--f-head);
  font-size: 14px;
  border: 1px dashed rgba(255,255,255,.2);
}

/* ---------- 8. Quick access tiles ---------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
  margin-top: calc(var(--sp-8) * -1);
  position: relative;
  z-index: 5;
}
.tile {
  background: var(--c-white);
  border-radius: var(--r-lg);
  padding: var(--sp-5) var(--sp-5) var(--sp-5);
  box-shadow: var(--sh-md);
  border: 1px solid var(--c-line);
  transition: all var(--t-base);
  display: block;
  color: var(--c-ink);
}
.tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
  color: var(--c-ink);
  border-color: var(--c-primary);
}
.tile-icon {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  background: var(--c-surface);
  color: var(--c-primary);
  margin-bottom: var(--sp-4);
}
.tile-icon svg { width: 28px; height: 28px; }
.tile-1 .tile-icon { background: #FBE3E3; color: var(--c-primary); }
.tile-2 .tile-icon { background: #FDF2D8; color: var(--c-yellow-dark); }
.tile-3 .tile-icon { background: #FFE8CC; color: #E67E22; }
.tile-4 .tile-icon { background: #E8E8E8; color: var(--c-dark); }
.tile h3 { font-size: 18px; margin-bottom: 4px; }
.tile p { font-size: 14px; color: var(--c-ink-3); }
.tile-arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: var(--sp-3);
  font-size: 13px;
  font-weight: 600;
  color: var(--c-primary);
}

/* ---------- 9. Section heads ---------- */
.section-head { text-align: center; margin-bottom: var(--sp-7); }
.section-head.left { text-align: left; }
.section-head p { margin-top: var(--sp-3); max-width: 680px; margin-left: auto; margin-right: auto; }
.section-head.left p { margin-left: 0; margin-right: 0; }
.section-bar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: var(--sp-6);
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.section-bar .section-head { text-align: left; margin-bottom: 0; }
.section-bar .section-head p { margin-left: 0; }

/* ---------- 10. Product grid ---------- */
.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
}
.product {
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all var(--t-base);
  display: flex;
  flex-direction: column;
}
.product:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
  border-color: var(--c-primary-light);
}
.product-media {
  aspect-ratio: 1/1;
  background: var(--c-surface);
  display: grid;
  place-items: center;
  position: relative;
  color: var(--c-ink-3);
  font-size: 12px;
  font-family: var(--f-head);
}
.product-media::before {
  content: attr(data-label);
  padding: 8px 14px;
  background: rgba(255,255,255,.6);
  border-radius: var(--r-full);
}
.product-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
.product-media img + .product-badge, .product-media img ~ .product-badge { z-index: 3; }
.product-media img ~ .product-fav { z-index: 3; }
.product-badge {
  position: absolute;
  top: 12px; left: 12px;
  padding: 5px 10px;
  background: var(--c-red);
  color: var(--c-white);
  font-family: var(--f-head);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-radius: var(--r-sm);
}
.product-badge.yellow { background: var(--c-yellow); color: var(--c-ink); }
.product-fav {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  background: var(--c-white);
  border-radius: var(--r-full);
  display: grid;
  place-items: center;
  box-shadow: var(--sh-sm);
  color: var(--c-ink-3);
  transition: all var(--t-fast);
}
.product-fav:hover { color: var(--c-red); }
.product-body {
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-cat {
  font-size: 12px;
  color: var(--c-ink-3);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 500;
  margin-bottom: 4px;
}
.product-title {
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 16px;
  color: var(--c-ink);
  margin-bottom: var(--sp-3);
  line-height: 1.3;
  min-height: 42px;
}
.product-price {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}
.price-now {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 22px;
  color: var(--c-ink);
}
.price-old {
  font-size: 14px;
  color: var(--c-ink-3);
  text-decoration: line-through;
}
.product-footer { margin-top: auto; }

/* ---------- 11. Features bar ---------- */
.features {
  background: var(--c-surface);
  padding: var(--sp-7) 0;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
}
.feature {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
}
.feature-icon {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  background: var(--c-white);
  display: grid;
  place-items: center;
  color: var(--c-primary);
  flex-shrink: 0;
  box-shadow: var(--sh-sm);
}
.feature-icon svg { width: 24px; height: 24px; }
.feature h4 { font-size: 15px; margin-bottom: 2px; }
.feature p { font-size: 13px; color: var(--c-ink-3); line-height: 1.5; }

/* ---------- 12. Services split ---------- */
.services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
}
.service-card {
  padding: var(--sp-7);
  border-radius: var(--r-lg);
  color: var(--c-white);
  position: relative;
  overflow: hidden;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.service-card h3 { color: var(--c-white); font-size: 30px; margin-bottom: var(--sp-3); }
.service-card p { color: rgba(255,255,255,.85); margin-bottom: var(--sp-5); max-width: 460px; }
.service-tarifas {
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
}
.service-energia {
  background: linear-gradient(135deg, #1A1A1A 0%, #3D3D3D 100%);
}
.service-energia .service-icon { color: var(--c-yellow); }
.service-card::before {
  content: '';
  position: absolute;
  top: -40%; right: -20%;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(255,255,255,.12) 0%, transparent 65%);
  border-radius: 50%;
}
.service-icon {
  width: 64px; height: 64px;
  background: rgba(255,255,255,.15);
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  color: var(--c-yellow);
  margin-bottom: var(--sp-4);
  align-self: flex-start;
  position: relative;
  z-index: 1;
}
.service-icon svg { width: 32px; height: 32px; }
.service-content { position: relative; z-index: 1; }
.service-card .btn-yellow { align-self: flex-start; }

/* ---------- 13. Blog cards ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}
.post {
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all var(--t-base);
}
.post:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
}
.post-media {
  aspect-ratio: 16/10;
  background: var(--c-surface);
  overflow: hidden;
  position: relative;
  display: grid;
  place-items: center;
  color: var(--c-ink-3);
  font-size: 12px;
  font-family: var(--f-head);
}
.post-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: var(--sp-5); }
.post-meta {
  display: flex;
  gap: var(--sp-3);
  font-size: 12px;
  color: var(--c-ink-3);
  margin-bottom: var(--sp-3);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 500;
}
.post-cat { color: var(--c-primary); font-weight: 600; }
.post h3 {
  font-size: 19px;
  margin-bottom: var(--sp-3);
  line-height: 1.35;
}
.post h3 a { color: var(--c-ink); }
.post h3 a:hover { color: var(--c-primary); }
.post p { color: var(--c-ink-3); font-size: 14px; }

/* ---------- 14. Footer ---------- */
.footer {
  background: var(--c-ink);
  color: rgba(255,255,255,.75);
  padding: var(--sp-8) 0 var(--sp-5);
  margin-top: var(--sp-9);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: var(--sp-6);
  padding-bottom: var(--sp-7);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer h4 {
  color: var(--c-white);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: var(--sp-4);
}
.footer a { color: rgba(255,255,255,.75); font-size: 14px; }
.footer a:hover { color: var(--c-yellow); }
.footer-col ul li { margin-bottom: var(--sp-3); }
.footer-about p { font-size: 14px; line-height: 1.7; margin-bottom: var(--sp-4); }
.footer-contact li {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  margin-bottom: var(--sp-3);
  font-size: 14px;
}
.footer-contact svg {
  width: 18px; height: 18px;
  color: var(--c-yellow);
  flex-shrink: 0;
  margin-top: 2px;
}
.footer .logo { margin-bottom: var(--sp-4); color: var(--c-white); }
.footer .logo-mark { background: var(--c-white); color: var(--c-primary); }
.footer-social {
  display: flex;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}
.footer-social a {
  width: 40px; height: 40px;
  background: rgba(255,255,255,.1);
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  color: var(--c-white);
}
.footer-social a:hover {
  background: var(--c-yellow);
  color: var(--c-ink);
}
.footer-bottom {
  padding-top: var(--sp-5);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-3);
  font-size: 13px;
  color: rgba(255,255,255,.5);
}
.footer-bottom ul { display: flex; gap: var(--sp-5); }

/* ==========================================================================
   TARIFAS PAGE
   ========================================================================== */

/* ---------- Page hero ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
  color: var(--c-white);
  padding: var(--sp-8) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(248,185,22,.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(196,20,19,.15) 0%, transparent 50%);
}
.page-hero .wrap { position: relative; }
.page-hero .eyebrow { color: var(--c-yellow); }
.page-hero h1 { color: var(--c-white); margin-bottom: var(--sp-4); }
.page-hero p { color: rgba(255,255,255,.85); max-width: 680px; margin: 0 auto; font-size: 18px; }

.breadcrumbs { display: none; }

/* ---------- Tariff cards ---------- */
.tariffs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
}
.tariff {
  background: var(--c-white);
  border: 2px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  position: relative;
  transition: all var(--t-base);
  display: flex;
  flex-direction: column;
}
.tariff:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
  border-color: var(--c-primary-light);
}
.tariff.featured {
  border-color: var(--c-primary);
  box-shadow: var(--sh-md);
}
.tariff.featured::before {
  content: 'Más vendida';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--c-yellow);
  color: var(--c-ink);
  font-family: var(--f-head);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--r-full);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.tariff-name {
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 14px;
  color: var(--c-primary);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: var(--sp-3);
}
.tariff-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: var(--sp-5);
}
.tariff-price-main {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 44px;
  color: var(--c-ink);
  line-height: 1;
}
.tariff-price-cent {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 22px;
  color: var(--c-ink);
}
.tariff-price-suffix {
  font-size: 14px;
  color: var(--c-ink-3);
  margin-left: 4px;
}
.tariff ul { margin-bottom: var(--sp-6); flex: 1; }
.tariff ul li {
  display: flex;
  gap: var(--sp-2);
  align-items: flex-start;
  padding: var(--sp-2) 0;
  font-size: 14px;
  color: var(--c-ink-2);
  border-bottom: 1px dashed var(--c-line);
}
.tariff ul li:last-child { border-bottom: 0; }
.tariff ul li svg {
  width: 18px; height: 18px;
  color: var(--c-success);
  flex-shrink: 0;
  margin-top: 1px;
}

/* ==========================================================================
   CONFIGURADOR
   ========================================================================== */
.configurator {
  background: var(--c-surface);
  padding: var(--sp-9) 0;
}
.config-wrap {
  max-width: 960px;
  margin: 0 auto;
  background: var(--c-white);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-md);
  overflow: hidden;
}
.config-head {
  padding: var(--sp-6) var(--sp-7) var(--sp-5);
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
  color: var(--c-white);
  text-align: center;
}
.config-head .eyebrow { color: var(--c-yellow); }
.config-head h2 { color: var(--c-white); margin-bottom: var(--sp-2); }
.config-head p { color: rgba(255,255,255,.85); max-width: 520px; margin: 0 auto; }

/* Stepper */
.stepper {
  display: flex;
  justify-content: center;
  gap: var(--sp-1);
  padding: var(--sp-5) var(--sp-5) 0;
  background: var(--c-white);
  flex-wrap: wrap;
}
.step-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-full);
  font-family: var(--f-head);
  font-size: 13px;
  font-weight: 500;
  color: var(--c-ink-3);
  transition: all var(--t-base);
}
.step-num {
  width: 24px; height: 24px;
  border-radius: var(--r-full);
  background: var(--c-line);
  color: var(--c-ink-3);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  transition: all var(--t-base);
}
.step-item.active { background: #FEF2F2; color: var(--c-primary); }
.step-item.active .step-num { background: var(--c-primary); color: var(--c-white); }
.step-item.done { color: var(--c-success); }
.step-item.done .step-num { background: var(--c-success); color: var(--c-white); }

.config-body { padding: var(--sp-7); }
.step { display: none; }
.step.active { display: block; animation: fadeIn .3s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.step h3 {
  text-align: center;
  font-size: 26px;
  margin-bottom: var(--sp-2);
}
.step > p.lead {
  text-align: center;
  margin-bottom: var(--sp-6);
}

/* Option cards */
.options {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: var(--sp-5);
}
.options.cols-2 { grid-template-columns: repeat(2, 1fr); max-width: 600px; margin-left: auto; margin-right: auto; }
.options.cols-3 { grid-template-columns: repeat(3, 1fr); }
.options.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Tipo de línea extra */
.line-type-opt { padding: var(--sp-4); }
.line-type-opt .option-title { font-size: 14px; }
.line-type-opt .option-value { font-size: 18px; margin-top: 4px; }
.option {
  border: 2px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: var(--sp-5) var(--sp-4);
  cursor: pointer;
  transition: all var(--t-base);
  text-align: center;
  background: var(--c-white);
}
.option:hover {
  border-color: var(--c-primary-light);
  transform: translateY(-2px);
}
.option.selected {
  border-color: var(--c-primary);
  background: #FEF2F2;
  box-shadow: 0 0 0 4px rgba(196,20,19,.12);
}
.option-icon {
  width: 56px; height: 56px;
  margin: 0 auto var(--sp-3);
  background: var(--c-surface);
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  color: var(--c-primary);
}
.option.selected .option-icon {
  background: var(--c-primary);
  color: var(--c-white);
}
.option-icon svg { width: 28px; height: 28px; }
.option-title {
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 16px;
  color: var(--c-ink);
  margin-bottom: 2px;
}
.option-desc {
  font-size: 13px;
  color: var(--c-ink-3);
}
.option-value {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 22px;
  color: var(--c-primary);
  margin: var(--sp-2) 0 2px;
}

/* Coverage gate */
.coverage-box {
  border: 2px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  background: var(--c-surface-2);
  margin-bottom: var(--sp-5);
}
.coverage-head {
  display: flex;
  gap: var(--sp-3);
  align-items: center;
  margin-bottom: var(--sp-4);
}
.coverage-head svg { width: 32px; height: 32px; color: var(--c-primary); }
.coverage-head h4 { margin-bottom: 2px; }
.coverage-head p { font-size: 13px; color: var(--c-ink-3); margin: 0; }

.coverage-iframe {
  width: 100%;
  height: 520px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-white);
}

.coverage-status {
  margin-top: var(--sp-4);
  padding: var(--sp-4);
  border-radius: var(--r-md);
  font-size: 14px;
  display: none;
  gap: var(--sp-3);
  align-items: flex-start;
}
.coverage-status.show { display: flex; }
.coverage-status svg { width: 22px; height: 22px; flex-shrink: 0; }
.coverage-status.available {
  background: var(--c-success-bg);
  color: #065F46;
  border: 1px solid #86EFAC;
}
.coverage-status.available svg { color: var(--c-success); }
.coverage-status.unavailable {
  background: var(--c-error-bg);
  color: #7F1D1D;
  border: 1px solid #FCA5A5;
}
.coverage-status.unavailable svg { color: var(--c-error); }
.coverage-status strong { display: block; font-weight: 600; margin-bottom: 2px; }

/* Line adder */
.line-adder {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-5);
  padding: var(--sp-5);
  background: var(--c-surface);
  border-radius: var(--r-lg);
  margin-bottom: var(--sp-5);
}
.line-btn {
  width: 44px; height: 44px;
  border-radius: var(--r-full);
  background: var(--c-white);
  border: 2px solid var(--c-line);
  color: var(--c-primary);
  font-size: 22px;
  font-weight: 700;
  display: grid;
  place-items: center;
  transition: all var(--t-fast);
}
.line-btn:hover:not([disabled]) { border-color: var(--c-primary); background: var(--c-primary); color: var(--c-white); }
.line-count {
  font-family: var(--f-head);
  font-size: 44px;
  font-weight: 700;
  color: var(--c-ink);
  min-width: 80px;
  text-align: center;
}
.line-label { font-size: 13px; color: var(--c-ink-3); }

/* Summary step */
.summary {
  background: var(--c-surface);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  margin-bottom: var(--sp-5);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-3) 0;
  border-bottom: 1px dashed var(--c-line);
  font-size: 15px;
}
.summary-row:last-child { border-bottom: 0; }
.summary-row strong { font-family: var(--f-head); }
.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--sp-4) 0 0;
  margin-top: var(--sp-3);
  border-top: 2px solid var(--c-ink);
}
.summary-total-label {
  font-family: var(--f-head);
  font-size: 18px;
  font-weight: 600;
}
.summary-total-price {
  font-family: var(--f-head);
  font-size: 36px;
  font-weight: 700;
  color: var(--c-primary);
}
.summary-total-price small { font-size: 16px; color: var(--c-ink-3); font-weight: 500; }

/* Form */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
}
.form-field { display: flex; flex-direction: column; gap: var(--sp-2); }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-family: var(--f-head);
  font-size: 13px;
  font-weight: 600;
  color: var(--c-ink-2);
}
.form-field input,
.form-field select,
.form-field textarea {
  padding: 13px 14px;
  border: 1.5px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-white);
  font-size: 15px;
  line-height: 1.4;
  font-family: inherit;
  color: var(--c-ink);
  box-sizing: border-box;
  transition: border var(--t-fast);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
.form-field input,
.form-field select {
  min-height: 48px;
  height: 48px;
}
.form-field textarea {
  min-height: 96px;
  height: auto;
}
.form-field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%23666' stroke-width='1.8' stroke-linecap='round' d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 4px rgba(196,20,19,.12);
}
.form-check {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  font-size: 13px;
  color: var(--c-ink-3);
  line-height: 1.5;
}
.form-check input[type="checkbox"] {
  width: 20px; height: 20px;
  margin-top: 1px;
  accent-color: var(--c-primary);
  flex-shrink: 0;
}

/* Step nav */
.step-nav {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--c-line);
  margin-top: var(--sp-5);
}
.step-nav .btn-lg { min-width: 160px; }

/* ---------- Modal success ---------- */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 40, .6);
  backdrop-filter: blur(4px);
  display: none;
  place-items: center;
  z-index: 100;
  padding: var(--sp-4);
}
.modal.open { display: grid; animation: fadeIn .25s ease; }
.modal-box {
  background: var(--c-white);
  border-radius: var(--r-xl);
  padding: var(--sp-7);
  max-width: 520px;
  width: 100%;
  text-align: center;
  box-shadow: var(--sh-lg);
  animation: popIn .35s cubic-bezier(.34,1.56,.64,1);
}
@keyframes popIn {
  from { opacity: 0; transform: scale(.9); }
  to { opacity: 1; transform: scale(1); }
}
.modal-icon {
  width: 88px; height: 88px;
  margin: 0 auto var(--sp-5);
  border-radius: 50%;
  background: var(--c-success-bg);
  color: var(--c-success);
  display: grid;
  place-items: center;
}
.modal-icon svg { width: 48px; height: 48px; }
.modal h3 { font-size: 26px; margin-bottom: var(--sp-3); }
.modal p { color: var(--c-ink-3); margin-bottom: var(--sp-4); line-height: 1.6; }
.modal-phone {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  background: var(--c-surface);
  border-radius: var(--r-full);
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 20px;
  color: var(--c-primary);
  margin-bottom: var(--sp-5);
}
.modal-phone svg { width: 22px; height: 22px; }

/* ==========================================================================
   BANNER DE COOKIES (estilo Legitec adaptado a Midass)
   ========================================================================== */
.cookie-overlay {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(0,0,0,.55); backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}
.cookie-overlay.visible { opacity: 1; visibility: visible; }

.cookie-banner {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(30px);
  z-index: 9999; width: 94%; max-width: 540px;
  background: var(--c-white); border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25), 0 0 0 1px rgba(0,0,0,.06);
  padding: 32px 28px 28px;
  opacity: 0; visibility: hidden;
  transition: opacity .4s ease, transform .4s ease, visibility .4s ease;
}
.cookie-banner.visible {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.cookie-header {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.cookie-header svg { width: 24px; height: 24px; color: var(--c-primary); flex-shrink: 0; }
.cookie-header h3 {
  font-family: var(--f-head);
  font-size: 18px; font-weight: 700; color: var(--c-ink); margin: 0;
}
.cookie-text p {
  font-size: 14px; color: var(--c-ink-2); line-height: 1.7; margin: 0 0 20px;
}
.cookie-text a { color: var(--c-primary); text-decoration: underline; font-weight: 500; }
.cookie-text a:hover { color: var(--c-primary-dark); }

.cookie-btns {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.cookie-btn {
  flex: 1; min-width: 120px; padding: 12px 18px; border-radius: 10px;
  font-size: 13px; font-weight: 600; cursor: pointer; border: none;
  font-family: var(--f-head); transition: all var(--t-base); text-align: center;
}
.cookie-btn-accept { background: var(--c-primary); color: var(--c-white); }
.cookie-btn-accept:hover { background: var(--c-primary-dark); }
.cookie-btn-reject { background: var(--c-surface); color: var(--c-ink-2); border: 1px solid var(--c-line); }
.cookie-btn-reject:hover { background: #E5E7EB; }
.cookie-btn-config { background: transparent; color: var(--c-primary); border: 1px solid var(--c-primary); }
.cookie-btn-config:hover { background: rgba(196,20,19,.06); }

.cookie-config {
  display: none; margin-top: 20px; padding-top: 20px;
  border-top: 1px solid var(--c-line);
}
.cookie-config.open { display: block; }
.cookie-config-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px solid #F3F4F6;
}
.cookie-config-item:last-child { border-bottom: none; }
.cookie-config-info h4 {
  font-family: var(--f-head);
  font-size: 14px; font-weight: 600; color: var(--c-ink); margin: 0 0 2px;
}
.cookie-config-info p {
  font-size: 12px; color: var(--c-ink-3); margin: 0; line-height: 1.5;
}
.cookie-toggle {
  position: relative; width: 44px; height: 24px; flex-shrink: 0; margin-left: 16px;
}
.cookie-toggle input { opacity: 0; width: 0; height: 0; }
.cookie-toggle-slider {
  position: absolute; inset: 0; background: #D1D5DB; border-radius: 24px;
  cursor: pointer; transition: background .25s ease;
}
.cookie-toggle-slider::before {
  content: ''; position: absolute; left: 3px; top: 3px;
  width: 18px; height: 18px; background: var(--c-white);
  border-radius: 50%; transition: transform .25s ease;
}
.cookie-toggle input:checked + .cookie-toggle-slider { background: var(--c-primary); }
.cookie-toggle input:checked + .cookie-toggle-slider::before { transform: translateX(20px); }
.cookie-toggle input:disabled + .cookie-toggle-slider { background: var(--c-primary); opacity: .6; cursor: not-allowed; }
.cookie-toggle input:disabled:checked + .cookie-toggle-slider::before { transform: translateX(20px); }

.cookie-config-save {
  margin-top: 16px; width: 100%; padding: 12px; border-radius: 10px;
  font-size: 13px; font-weight: 600; cursor: pointer; border: none;
  font-family: var(--f-head); background: var(--c-primary); color: var(--c-white);
  transition: all var(--t-base);
}
.cookie-config-save:hover { background: var(--c-primary-dark); }
@media (max-width: 768px) {
  .cookie-banner { bottom: 12px; padding: 24px 20px 20px; max-width: 96%; }
  .cookie-btns { flex-direction: column; }
  .cookie-btn { min-width: unset; }
}

/* ==========================================================================
   FICHA DE PRODUCTO
   ========================================================================== */
.product-page {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--sp-6);
  padding: var(--sp-7) 0;
}
.product-gallery { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.product-main-img {
  aspect-ratio: 1/1;
  background: var(--c-surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  display: grid;
  place-items: center;
  font-family: var(--f-head);
  color: var(--c-ink-3);
  margin-bottom: var(--sp-3);
}
.product-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--sp-2);
}
.product-thumb {
  aspect-ratio: 1/1;
  background: var(--c-surface);
  border-radius: var(--r-md);
  border: 2px solid transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 11px;
  color: var(--c-ink-3);
}
.product-thumb.active { border-color: var(--c-primary); }
.product-main-img img { width: 100%; height: 100%; object-fit: cover; }
.product-thumb { overflow: hidden; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-detail h1 { font-size: clamp(28px, 3vw, 36px); margin-bottom: var(--sp-3); }
.product-meta-row { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.product-stars { color: var(--c-yellow); font-size: 16px; }
.product-meta-row .muted { font-size: 13px; }
.product-price-big {
  display: flex; align-items: baseline; gap: var(--sp-3);
  padding: var(--sp-4) 0;
  margin-bottom: var(--sp-4);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}
.product-price-big .price-now { font-size: 40px; font-family: var(--f-head); font-weight: 800; color: var(--c-ink); }
.product-price-big .price-old { font-size: 20px; color: var(--c-ink-3); text-decoration: line-through; }
.product-price-big .price-save { background: var(--c-yellow); color: var(--c-ink); padding: 4px 10px; border-radius: var(--r-full); font-size: 12px; font-weight: 700; }

.variants { margin-bottom: var(--sp-5); }
.variants h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--c-ink-2); margin-bottom: var(--sp-3); }
.variant-colors { display: flex; gap: var(--sp-2); }
.variant-color {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 3px solid var(--c-white);
  box-shadow: 0 0 0 2px var(--c-line);
  cursor: pointer;
  transition: box-shadow var(--t-fast);
}
.variant-color.selected { box-shadow: 0 0 0 3px var(--c-primary); }

.qty-row {
  display: flex;
  gap: var(--sp-3);
  align-items: center;
  margin-bottom: var(--sp-4);
}
.qty-input {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--c-line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.qty-input button {
  width: 44px; height: 48px;
  font-size: 18px; font-weight: 600;
  color: var(--c-ink);
}
.qty-input button:hover { background: var(--c-surface); }
.qty-input input {
  width: 56px; height: 48px;
  text-align: center;
  border: 0;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 16px;
}

.product-cta-row { display: grid; grid-template-columns: 1fr auto; gap: var(--sp-3); margin-bottom: var(--sp-5); }

.product-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
  padding: var(--sp-4);
  background: var(--c-surface);
  border-radius: var(--r-lg);
  margin-bottom: var(--sp-5);
}
.product-features .feature { gap: var(--sp-2); }
.product-features .feature-icon { width: 36px; height: 36px; background: var(--c-white); }
.product-features .feature-icon svg { width: 18px; height: 18px; }
.product-features h4 { font-size: 13px; }
.product-features p { font-size: 12px; }

.product-tabs {
  margin-top: var(--sp-7);
  border-top: 1px solid var(--c-line);
  padding-top: var(--sp-6);
}
.tabs-nav { display: flex; gap: var(--sp-2); border-bottom: 1px solid var(--c-line); margin-bottom: var(--sp-5); flex-wrap: wrap; }
.tab-btn {
  padding: var(--sp-3) var(--sp-4);
  font-family: var(--f-head);
  font-weight: 500;
  color: var(--c-ink-3);
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}
.tab-btn.active { color: var(--c-primary); border-color: var(--c-primary); font-weight: 600; }

/* ==========================================================================
   CARRITO Y CHECKOUT
   ========================================================================== */
.cart-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--sp-5); }
.cart-items {
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto auto;
  gap: var(--sp-4);
  align-items: center;
  padding: var(--sp-4);
  border-bottom: 1px solid var(--c-line);
}
.cart-item:last-child { border-bottom: 0; }
.cart-item-img {
  aspect-ratio: 1/1;
  background: var(--c-surface);
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  font-size: 10px;
  color: var(--c-ink-3);
  font-family: var(--f-head);
}
.cart-item h4 { font-size: 15px; margin-bottom: 4px; }
.cart-item small { color: var(--c-ink-3); font-size: 12px; }
.cart-item .price-now { font-family: var(--f-head); font-weight: 700; }
.cart-remove { color: var(--c-ink-3); padding: 8px; }
.cart-remove:hover { color: var(--c-red); }

.cart-summary {
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: start;
}
.cart-summary h3 {
  font-family: var(--f-head);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: var(--sp-4);
  color: var(--c-ink-2);
}
.cart-row {
  display: flex;
  justify-content: space-between;
  padding: var(--sp-3) 0;
  font-size: 14px;
  border-bottom: 1px dashed var(--c-line);
}
.cart-row strong { font-family: var(--f-head); }
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--sp-4) 0 var(--sp-5);
  margin-top: var(--sp-3);
  border-top: 2px solid var(--c-ink);
}
.cart-total-label { font-family: var(--f-head); font-size: 16px; font-weight: 600; }
.cart-total-price { font-family: var(--f-head); font-size: 30px; font-weight: 800; color: var(--c-primary); }
.cart-total-price small { font-size: 14px; color: var(--c-ink-3); font-weight: 500; }

.coupon {
  display: flex;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
  padding-top: var(--sp-4);
  border-top: 1px dashed var(--c-line);
}
.coupon input {
  flex: 1;
  padding: 10px 12px;
  border: 1.5px solid var(--c-line);
  border-radius: var(--r-md);
  font-size: 13px;
}

/* ==========================================================================
   PÁGINAS LEGALES
   ========================================================================== */
.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: var(--sp-8) var(--sp-5);
}
.legal h1 { font-size: clamp(32px, 4vw, 44px); margin-bottom: var(--sp-3); }
.legal .legal-meta { color: var(--c-ink-3); font-size: 14px; margin-bottom: var(--sp-6); padding-bottom: var(--sp-4); border-bottom: 1px solid var(--c-line); }
.legal h2 {
  font-size: 24px;
  margin-top: var(--sp-6);
  margin-bottom: var(--sp-3);
  padding-top: var(--sp-4);
}
.legal h3 { font-size: 18px; margin-top: var(--sp-5); margin-bottom: var(--sp-3); }
.legal p, .legal li { line-height: 1.7; color: var(--c-ink-2); font-size: 15px; }
.legal p { margin-bottom: var(--sp-3); }
.legal ul, .legal ol { padding-left: var(--sp-5); margin-bottom: var(--sp-4); }
.legal ul { list-style: disc; }
.legal ol { list-style: decimal; }
.legal li { margin-bottom: var(--sp-2); }
.legal strong { color: var(--c-ink); font-weight: 600; }
.legal a { color: var(--c-primary); text-decoration: underline; }
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--sp-4) 0;
  font-size: 14px;
}
.legal table th, .legal table td {
  border: 1px solid var(--c-line);
  padding: var(--sp-3);
  text-align: left;
}
.legal table th { background: var(--c-surface); font-family: var(--f-head); font-weight: 600; }
.legal-toc {
  background: var(--c-surface);
  border-left: 3px solid var(--c-primary);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-md);
  margin-bottom: var(--sp-6);
}
.legal-toc h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: var(--sp-2); color: var(--c-ink-3); }
.legal-toc ol { margin: 0; padding-left: var(--sp-5); }
.legal-toc li { font-size: 14px; }
.legal-toc a { color: var(--c-ink-2); text-decoration: none; }
.legal-toc a:hover { color: var(--c-primary); }

/* PDF downloads (terminos) */
.pdf-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
  margin: var(--sp-4) 0;
}
.pdf-card {
  display: flex;
  gap: var(--sp-3);
  align-items: center;
  padding: var(--sp-4);
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  transition: all var(--t-base);
}
.pdf-card:hover { border-color: var(--c-primary); box-shadow: var(--sh-sm); color: inherit; }
.pdf-icon {
  width: 42px; height: 42px;
  background: #FEF2F2;
  color: var(--c-primary);
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.pdf-card strong { display: block; font-family: var(--f-head); font-size: 14px; color: var(--c-ink); }
.pdf-card small { color: var(--c-ink-3); font-size: 12px; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 24px rgba(37,211,102,.45), 0 2px 6px rgba(0,0,0,.15);
  z-index: 40;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.wa-float:hover {
  color: #fff;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 10px 32px rgba(37,211,102,.55), 0 2px 8px rgba(0,0,0,.2);
}
.wa-float::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid #25D366;
  opacity: .4;
  animation: wa-pulse 2s infinite;
}
@keyframes wa-pulse {
  0%   { transform: scale(1); opacity: .5; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* ==========================================================================
   MI CUENTA — dashboard B2C
   ========================================================================== */
.account {
  padding: var(--sp-7) 0 var(--sp-9);
  background: var(--c-surface);
  min-height: 70vh;
}
.account-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--sp-6);
  align-items: flex-start;
}

/* Sidebar */
.account-sidebar {
  background: var(--c-white);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  padding: var(--sp-5) 0;
  position: sticky;
  top: calc(var(--header-h) + 24px);
  overflow: hidden;
}
.sidebar-user {
  padding: 0 var(--sp-5) var(--sp-5);
  border-bottom: 1px solid var(--c-line);
  text-align: center;
}
.sidebar-avatar {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
  color: var(--c-white);
  display: grid;
  place-items: center;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 32px;
  margin: 0 auto var(--sp-3);
  border: 4px solid var(--c-white);
  box-shadow: 0 4px 14px rgba(196,20,19,.25);
}
.sidebar-user h3 { font-size: 17px; margin-bottom: 2px; }
.sidebar-user small { font-size: 12px; color: var(--c-ink-3); }

.sidebar-group {
  padding: var(--sp-4) 0 var(--sp-3);
}
.sidebar-group-title {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0 var(--sp-5) var(--sp-2);
  font-family: var(--f-head);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--c-ink-3);
}
.sidebar-group-title svg { width: 14px; height: 14px; }
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 10px var(--sp-5);
  color: var(--c-ink-2);
  font-size: 14px;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all var(--t-fast);
}
.sidebar-nav a:hover {
  background: var(--c-surface);
  color: var(--c-primary);
}
.sidebar-nav a.active {
  background: #FEF2F2;
  color: var(--c-primary);
  border-left-color: var(--c-primary);
  font-weight: 600;
}
.sidebar-nav a svg { width: 17px; height: 17px; }

.sidebar-logout {
  padding: var(--sp-4) var(--sp-5);
  border-top: 1px solid var(--c-line);
  margin-top: var(--sp-3);
}
.sidebar-logout a {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--c-ink-3);
  font-size: 13px;
  font-weight: 500;
}
.sidebar-logout a:hover { color: var(--c-primary); }

/* Content */
.account-content { display: grid; gap: var(--sp-5); }

.welcome-banner {
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
  color: var(--c-white);
  border-radius: var(--r-lg);
  padding: var(--sp-6) var(--sp-7);
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  position: relative;
  overflow: hidden;
}
.welcome-banner::before {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--c-yellow) 0%, transparent 55%);
  opacity: .12;
  border-radius: 50%;
}
.welcome-banner h2 {
  color: var(--c-white);
  font-size: 24px;
  margin-bottom: 4px;
}
.welcome-banner h2 span { font-weight: 400; }
.welcome-banner p { color: rgba(255,255,255,.85); font-size: 14px; }
.welcome-stat {
  margin-left: auto;
  text-align: right;
  z-index: 1;
}
.welcome-stat strong {
  font-family: var(--f-head);
  font-size: 38px;
  font-weight: 800;
  display: block;
  line-height: 1;
  color: var(--c-yellow);
}
.welcome-stat span { font-size: 13px; color: rgba(255,255,255,.8); }

/* Cards */
.panel {
  background: var(--c-white);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  overflow: hidden;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--c-line);
}
.panel-head h3 {
  font-family: var(--f-head);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--c-ink-2);
}
.panel-head a {
  font-size: 13px;
  color: var(--c-ink-3);
  font-weight: 500;
}
.panel-head a:hover { color: var(--c-primary); }
.panel-body { padding: var(--sp-5); }

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}
.info-item small {
  display: block;
  font-size: 12px;
  color: var(--c-ink-3);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 500;
  margin-bottom: 4px;
}
.info-item strong {
  font-family: var(--f-head);
  font-size: 15px;
  color: var(--c-ink);
}

.addr-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sp-4);
  padding: var(--sp-4);
  background: var(--c-surface);
  border-radius: var(--r-md);
  border-left: 3px solid var(--c-primary);
}
.addr-card + .addr-card { margin-top: var(--sp-3); }
.addr-card strong {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--f-head);
  font-size: 14px;
  margin-bottom: 4px;
}
.addr-card .addr-star {
  color: var(--c-yellow);
  font-size: 14px;
}
.addr-card p { font-size: 13px; color: var(--c-ink-3); line-height: 1.5; }
.addr-actions {
  display: flex;
  gap: var(--sp-2);
}
.addr-actions button {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--r-sm);
  color: var(--c-ink-3);
  background: var(--c-white);
}
.addr-actions button:hover { color: var(--c-primary); }

/* Orders */
.order-row {
  display: grid;
  grid-template-columns: 110px 110px 1fr 120px 100px 70px;
  gap: var(--sp-3);
  align-items: center;
  padding: var(--sp-3) 0;
  border-bottom: 1px dashed var(--c-line);
  font-size: 14px;
}
.order-row:last-child { border-bottom: 0; }
.order-row small { color: var(--c-ink-3); font-size: 12px; }
.order-row .order-id { font-family: var(--f-head); font-weight: 600; color: var(--c-primary); }
.order-row .order-status {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.order-row .status-sent { background: var(--c-success-bg); color: #065F46; }
.order-row .status-processing { background: #FEF3C7; color: #92400E; }
.order-row .order-price { font-family: var(--f-head); font-weight: 700; text-align: right; }
.order-row .order-action {
  padding: 6px 12px;
  background: var(--c-primary);
  color: var(--c-white);
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--r-sm);
  text-align: center;
}
.order-row .order-action:hover { background: var(--c-primary-dark); color: #fff; }

/* Notifications */
.notif-list { display: grid; gap: var(--sp-3); }
.notif-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3);
  background: var(--c-surface);
  border-radius: var(--r-md);
}
.notif-item input[type="checkbox"] {
  width: 20px; height: 20px;
  accent-color: var(--c-primary);
}
.notif-item strong { font-family: var(--f-head); font-size: 14px; }
.notif-item small { display: block; font-size: 12px; color: var(--c-ink-3); }

/* ---------- 15. Responsive ---------- */
@media (max-width: 1100px) {
  .tiles, .products, .tariffs { grid-template-columns: repeat(2, 1fr); }
  .blog-grid, .features-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 100%; }
  .services { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .options { grid-template-columns: repeat(2, 1fr); }
  .options.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1100px) {
  .account-layout { grid-template-columns: 1fr; }
  .account-sidebar { position: static; }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .order-row { grid-template-columns: 1fr 1fr; font-size: 13px; }
  .order-row .order-id, .order-row small { grid-column: 1; }
  .order-row .order-status, .order-row .order-price { grid-column: 2; text-align: right; }
}
@media (max-width: 820px) {
  .nav, .topbar-left { display: none; }
  .menu-toggle { display: grid; }
  .tiles, .products, .tariffs, .blog-grid, .features-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .welcome-banner { flex-direction: column; align-items: flex-start; gap: var(--sp-3); text-align: left; }
  .welcome-stat { margin-left: 0; text-align: left; }
  .wa-float { width: 54px; height: 54px; bottom: 16px; right: 16px; }
  .tiles { margin-top: var(--sp-5); }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: var(--sp-7) 0; }
  .form-grid { grid-template-columns: 1fr; }
  .options { grid-template-columns: 1fr; }
  .options.cols-4 { grid-template-columns: 1fr 1fr; }
  .config-body { padding: var(--sp-5) var(--sp-4); }
  .stepper { padding: var(--sp-4) var(--sp-3) 0; }
  .step-item { padding: var(--sp-2) var(--sp-3); font-size: 12px; }
  .step-item span.step-label { display: none; }
  .step-nav .btn { flex: 1; min-width: 0; }
  .topbar .wrap { justify-content: center; }
}

/* ============================================================
   TALLER · estilos portados desde prototype/taller.html
   ============================================================ */
.repair-hero { background: linear-gradient(135deg, #1A1A1A 0%, #2A0A0A 45%, var(--c-primary-dark) 100%); color: #fff; padding: var(--sp-9) 0; position: relative; overflow: hidden; }
.repair-hero::before { content:''; position:absolute; top:-20%; right:-10%; width:500px; height:500px; background: radial-gradient(circle, var(--c-primary) 0%, transparent 60%); opacity:.35; border-radius:50%; }
.repair-hero .wrap { position: relative; z-index: 1; }
.repair-hero h1 { color:#fff; font-size: clamp(36px, 5vw, 56px); max-width: 760px; margin-bottom: var(--sp-4); }
.repair-hero h1 span { color: var(--c-yellow); }
.repair-hero p { color: rgba(255,255,255,.85); max-width: 640px; font-size: 18px; }

.repair-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); margin-top: calc(var(--sp-8) * -1); position: relative; z-index: 5; }
.cat-card { background: var(--c-white); border-radius: var(--r-lg); padding: var(--sp-6) var(--sp-5); box-shadow: var(--sh-md); border: 1px solid var(--c-line); transition: all var(--t-base); }
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: var(--c-primary); }
.cat-card-icon { width: 64px; height: 64px; border-radius: var(--r-md); display: grid; place-items: center; color: var(--c-white); margin-bottom: var(--sp-4); background: var(--c-primary); box-shadow: 0 4px 14px rgba(196,20,19,.25); }
.cat-card-icon svg { width: 32px; height: 32px; }
.cat-card h3 { font-size: 20px; margin-bottom: var(--sp-2); }
.cat-card ul { margin: var(--sp-3) 0 var(--sp-4); }
.cat-card ul li { font-size: 13px; color: var(--c-ink-2); padding: 4px 0; border-bottom: 1px dashed var(--c-line); display: flex; align-items: center; gap: 8px; }
.cat-card ul li:last-child { border: 0; }
.cat-card ul li::before { content: '✓'; color: var(--c-primary); font-weight: 700; }
.cat-card .from { font-family: var(--f-head); font-size: 12px; color: var(--c-ink-3); text-transform: uppercase; letter-spacing: .05em; }
.cat-card .from strong { display: block; font-size: 24px; color: var(--c-primary); text-transform: none; letter-spacing: 0; }

.process-timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); position: relative; margin-top: var(--sp-6); }
.process-timeline::before { content:''; position: absolute; top: 32px; left: 8%; right: 8%; height: 2px; background: var(--c-line); z-index: 0; }
.process-step { text-align: center; position: relative; z-index: 1; }
.process-num { width: 64px; height: 64px; border-radius: 50%; background: var(--c-primary); color: #fff; font-family: var(--f-head); font-weight: 800; font-size: 28px; display: grid; place-items: center; margin: 0 auto var(--sp-3); box-shadow: 0 4px 14px rgba(196,20,19,.25); border: 4px solid var(--c-white); }
.process-step h4 { font-size: 17px; margin-bottom: 6px; }
.process-step p { font-size: 13px; color: var(--c-ink-3); line-height: 1.5; }

.trust-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); padding: var(--sp-6) 0; }
.trust { display: flex; align-items: center; gap: var(--sp-3); }
.trust-ic { width: 48px; height: 48px; background: #FEF2F2; color: var(--c-primary); border-radius: var(--r-md); display: grid; place-items: center; flex-shrink: 0; }
.trust-ic svg { width: 24px; height: 24px; }
.trust strong { display: block; font-family: var(--f-head); font-size: 15px; }
.trust small { font-size: 12px; color: var(--c-ink-3); }

@media (max-width: 1100px) { .repair-cats, .process-timeline, .trust-row { grid-template-columns: repeat(2, 1fr); } .process-timeline::before { display: none; } }
@media (max-width: 640px) { .repair-cats, .process-timeline, .trust-row { grid-template-columns: 1fr; } }

/* ============================================================
   CONTACTO · estilos portados desde prototype/contacto.html
   ============================================================ */
.contact-hero { position: relative; padding: var(--sp-9) 0 var(--sp-10); background: linear-gradient(135deg, #1A1A1A 0%, #2A0A0A 50%, var(--c-primary-dark) 100%); color: #fff; overflow: hidden; }
.contact-hero::before { content:''; position:absolute; top:-20%; right:-15%; width:700px; height:700px; background: radial-gradient(circle, var(--c-primary) 0%, transparent 55%); opacity:.3; border-radius:50%; }
.contact-hero .wrap { position: relative; z-index: 1; text-align: center; }
.contact-hero h1 { color: #fff; font-size: clamp(40px, 5.5vw, 60px); margin-bottom: var(--sp-4); }
.contact-hero h1 span { color: var(--c-yellow); }
.contact-hero p { color: rgba(255,255,255,.85); font-size: 19px; max-width: 620px; margin: 0 auto; }

.action-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); margin-top: calc(var(--sp-9) * -1); position: relative; z-index: 5; }
.action-tile {
  background: var(--c-white);
  border-radius: var(--r-lg);
  padding: var(--sp-6) var(--sp-5);
  box-shadow: var(--sh-md);
  border: 1px solid var(--c-line);
  text-align: center;
  transition: all var(--t-base);
  display: block;
  color: var(--c-ink);
  text-decoration: none;
}
.action-tile:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); color: var(--c-ink); }
.action-icon-big {
  width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center;
  margin: 0 auto var(--sp-4);
  color: #fff;
  background: var(--c-primary);
  box-shadow: 0 6px 20px rgba(196,20,19,.3);
}
.action-icon-big svg { width: 34px; height: 34px; }
.action-tile.wa .action-icon-big { background: #25D366; box-shadow: 0 6px 20px rgba(37,211,102,.4); }
.action-tile.mail .action-icon-big { background: var(--c-yellow); color: var(--c-ink); }
.action-tile.map .action-icon-big { background: var(--c-dark); }
.action-tile h3 { font-size: 16px; text-transform: uppercase; letter-spacing: .05em; color: var(--c-ink-3); font-weight: 500; margin-bottom: 6px; }
.action-tile .val { display: block; font-family: var(--f-head); font-weight: 700; font-size: 20px; color: var(--c-ink); margin-bottom: 4px; }
.action-tile small { color: var(--c-ink-3); font-size: 13px; }

.contact-body { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--sp-6); align-items: start; }
.contact-form-card {
  background: var(--c-white);
  border-radius: var(--r-lg);
  padding: var(--sp-7);
  box-shadow: var(--sh-md);
  border: 1px solid var(--c-line);
}
.contact-form-card h2 { font-size: 26px; margin-bottom: var(--sp-2); }
.contact-form-card p { color: var(--c-ink-3); margin-bottom: var(--sp-5); }

.map-card {
  background: var(--c-white);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--c-line);
  box-shadow: var(--sh-md);
  position: sticky;
  top: calc(var(--header-h, 80px) + 24px);
}
.map-card iframe { width: 100%; height: 340px; border: 0; display: block; }
.map-card .map-info { padding: var(--sp-5); }
.map-card h3 { font-size: 19px; margin-bottom: var(--sp-2); }
.map-card .hours { display: grid; gap: 6px; margin: var(--sp-4) 0; font-size: 14px; }
.map-card .hours li { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px dashed var(--c-line); }
.map-card .hours strong { font-family: var(--f-head); }
.map-card .map-actions { display: flex; gap: var(--sp-2); margin-top: var(--sp-4); }

@media (max-width: 1100px) {
  .action-tiles { grid-template-columns: repeat(2, 1fr); }
  .contact-body { grid-template-columns: 1fr; }
  .map-card { position: static; }
}
@media (max-width: 640px) {
  .action-tiles { grid-template-columns: 1fr; margin-top: var(--sp-5); }
}

/* ============================================================
   BLOG · estilos portados desde prototype/blog.html + blog-post.html
   ============================================================ */
.cat-tabs { display: flex; gap: var(--sp-2); flex-wrap: wrap; justify-content: center; margin-bottom: var(--sp-7); }
.cat-tab { padding: 10px 18px; border-radius: var(--r-full); background: var(--c-white); border: 1.5px solid var(--c-line); font-family: var(--f-head); font-size: 14px; font-weight: 500; color: var(--c-ink-2); transition: all var(--t-fast); text-decoration: none; }
.cat-tab:hover { border-color: var(--c-primary); color: var(--c-primary); }
.cat-tab.active { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }

.post-layout { display: grid; grid-template-columns: 1fr 300px; gap: var(--sp-6); }
.post-hero-img { aspect-ratio: 16/9; background: var(--c-surface); border-radius: var(--r-lg); overflow: hidden; margin-bottom: var(--sp-6); }
.post-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-article h1 { font-size: clamp(30px, 3.5vw, 42px); margin-bottom: var(--sp-4); }
.post-article .post-meta { gap: var(--sp-4); margin-bottom: var(--sp-5); }
.post-article p, .post-article li { font-size: 16px; line-height: 1.75; color: var(--c-ink-2); margin-bottom: var(--sp-4); }
.post-article h2 { font-size: 26px; margin: var(--sp-7) 0 var(--sp-3); padding-top: var(--sp-4); }
.post-article h3 { font-size: 20px; margin: var(--sp-5) 0 var(--sp-3); }
.post-article ul { padding-left: var(--sp-5); list-style: disc; margin-bottom: var(--sp-4); }
.post-article blockquote { border-left: 4px solid var(--c-primary); padding: var(--sp-4) var(--sp-5); background: var(--c-surface); border-radius: 0 var(--r-md) var(--r-md) 0; margin: var(--sp-5) 0; font-style: italic; font-size: 17px; }
.post-sidebar { position: sticky; top: calc(var(--header-h, 80px) + 24px); align-self: start; }
.sidebar-card { background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: var(--sp-5); margin-bottom: var(--sp-4); }
.sidebar-card h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--c-ink-3); margin-bottom: var(--sp-3); }
.sidebar-card ul li a { display: block; padding: var(--sp-2) 0; font-size: 14px; color: var(--c-ink-2); border-bottom: 1px dashed var(--c-line); text-decoration: none; }
.sidebar-card ul li:last-child a { border: 0; }
.sidebar-card ul li a:hover { color: var(--c-primary); }
.share-row { display: flex; gap: var(--sp-2); margin-top: var(--sp-5); padding-top: var(--sp-5); border-top: 1px solid var(--c-line); }
.share-row .icon-btn { background: var(--c-surface); }
@media (max-width: 1100px) { .post-layout { grid-template-columns: 1fr; } .post-sidebar { position: static; } }

/* ====== Checkout (shortcode [woocommerce_checkout]) ====== */
.checkout-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--sp-5); align-items: start; }
.checkout-section { background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: var(--sp-6); margin-bottom: var(--sp-4); }
.checkout-section h3 { display: flex; align-items: center; gap: var(--sp-3); font-size: 18px; margin-bottom: var(--sp-4); padding-bottom: var(--sp-3); border-bottom: 1px solid var(--c-line); }
.checkout-section h3 .num { width: 32px; height: 32px; border-radius: 50%; background: var(--c-primary); color: #fff; display: grid; place-items: center; font-family: var(--f-head); font-weight: 700; font-size: 15px; flex: 0 0 auto; }
.checkout-layout .cart-summary { background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: var(--sp-6); }
.checkout-layout .cart-summary h3 { font-size: 18px; margin-bottom: var(--sp-4); padding-bottom: var(--sp-3); border-bottom: 1px solid var(--c-line); }

/* Campos de billing/shipping */
.woocommerce-checkout .form-row { display: flex; flex-direction: column; margin: 0 0 var(--sp-3); }
.woocommerce-checkout .form-row label { font-size: 13px; font-weight: 600; color: var(--c-ink-2); margin-bottom: 6px; }
.woocommerce-checkout .form-row .required { color: var(--c-primary); text-decoration: none; }
.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .select2-container .select2-selection--single { width: 100%; padding: 10px 12px; border: 1px solid var(--c-line); border-radius: var(--r-md); background: var(--c-white); font-size: 14px; color: var(--c-ink-1); min-height: 42px; box-sizing: border-box; }
.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row textarea:focus,
.woocommerce-checkout .form-row select:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(220,38,38,.1); }
.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered { padding: 0; line-height: 22px; }
.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow { height: 40px; }
.woocommerce-checkout .form-row-first,
.woocommerce-checkout .form-row-last { width: calc(50% - var(--sp-2)); display: inline-flex; }
.woocommerce-checkout .form-row-first { margin-right: var(--sp-3); }
.woocommerce-checkout .form-row-wide { width: 100%; }

/* Métodos de pago */
.pay-methods { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
.pay-methods .wc_payment_method { border: 2px solid var(--c-line); border-radius: var(--r-md); padding: var(--sp-4); transition: all var(--t-fast); background: var(--c-white); }
.pay-methods .wc_payment_method:hover { border-color: var(--c-primary); }
.pay-methods .wc_payment_method input[type="radio"] { margin-right: var(--sp-2); accent-color: var(--c-primary); }
.pay-methods .wc_payment_method input[type="radio"]:checked + label,
.pay-methods .wc_payment_method.selected { border-color: var(--c-primary); }
.pay-methods .wc_payment_method label { display: inline-flex; align-items: center; gap: var(--sp-2); font-family: var(--f-head); font-weight: 600; font-size: 14px; cursor: pointer; }
.pay-methods .wc_payment_method label img { max-height: 24px; width: auto; }
.pay-methods .wc_payment_method .payment_box { grid-column: 1 / -1; margin-top: var(--sp-3); padding: var(--sp-3); background: var(--c-surface); border-radius: var(--r-md); font-size: 13px; color: var(--c-ink-2); }
.pay-methods .wc_payment_method .payment_box p:last-child { margin-bottom: 0; }

/* Botón place-order */
.woocommerce-checkout .form-row.place-order { margin-top: var(--sp-5); display: block; }
.woocommerce-checkout .form-row.place-order .woocommerce-terms-and-conditions-wrapper { margin-bottom: var(--sp-3); font-size: 13px; }
#place_order { width: 100%; }

/* Resumen del pedido (review order) */
.woocommerce-checkout-review-order-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td { padding: var(--sp-3) 0; border-bottom: 1px dashed var(--c-line); text-align: left; }
.woocommerce-checkout-review-order-table .product-total,
.woocommerce-checkout-review-order-table td:last-child,
.woocommerce-checkout-review-order-table th:last-child { text-align: right; }
.woocommerce-checkout-review-order-table tfoot .order-total td,
.woocommerce-checkout-review-order-table tfoot .order-total th { padding-top: var(--sp-4); font-size: 16px; font-weight: 700; color: var(--c-ink-1); border-bottom: 0; }
.woocommerce-checkout-review-order-table tfoot .order-total .amount { color: var(--c-primary); font-size: 18px; }

/* Avisos Woo */
.woocommerce-checkout .woocommerce-notice,
.woocommerce-checkout .woocommerce-info,
.woocommerce-checkout .woocommerce-error,
.woocommerce-checkout .woocommerce-message { padding: var(--sp-3) var(--sp-4); border-radius: var(--r-md); margin-bottom: var(--sp-3); font-size: 14px; }
.woocommerce-checkout .woocommerce-info { background: #EFF6FF; color: #1E40AF; border-left: 3px solid #2563EB; }
.woocommerce-checkout .woocommerce-error { background: #FEF2F2; color: #991B1B; border-left: 3px solid var(--c-primary); list-style: none; }
.woocommerce-checkout .woocommerce-message { background: #F0FDF4; color: #166534; border-left: 3px solid #16A34A; }

@media (max-width: 1100px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-layout .cart-summary { position: static !important; }
  .pay-methods { grid-template-columns: 1fr; }
  .woocommerce-checkout .form-row-first,
  .woocommerce-checkout .form-row-last { width: 100%; margin-right: 0; }
}
