:root {
  --brand: #E36414;
  --brand-light: #F97316;
  --brand-dark: #C2410C;
  --whatsapp: #25D366;
  --whatsapp-dark: #128C7E;
  --text: #0F172A;
  --text-light: #475569;
  --bg: #FFFFFF;
  --bg-soft: #F8FAFC;
  --border: #E2E8F0;
  --shadow: rgba(15, 23, 42, 0.1);
  --gradient-brand: linear-gradient(135deg, #F97316 0%, #E36414 100%);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --container: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}
h1, h2, h3 { font-family: 'Montserrat', sans-serif; line-height: 1.2; }
a { color: inherit; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; top: -48px; left: 0; background: var(--brand-dark); color: #fff;
  padding: 10px 16px; z-index: 100; text-decoration: none;
}
.skip-link:focus { top: 0; }

/* Navegación */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.97); border-bottom: 1px solid var(--border); }
.nav-wrapper { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.15rem; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 10px; background: var(--gradient-brand);
  display: grid; place-items: center; color: #fff; font-size: 1.2rem;
}
.nav-menu { display: flex; gap: 24px; list-style: none; }
.nav-link { text-decoration: none; font-weight: 600; color: var(--text-light); font-size: 0.95rem; }
.nav-link:hover { color: var(--brand); }

/* Encabezado */
.hero {
  background:
    linear-gradient(135deg, rgba(15,23,42,0.92) 0%, rgba(30,41,59,0.85) 100%),
    url('/assets/hero.svg') center/cover no-repeat;
  color: #fff; padding: 88px 0 96px;
}
.hero-content { max-width: 760px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25); border-radius: 9999px; padding: 6px 14px; font-size: 0.9rem; font-weight: 600;
}
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--whatsapp); }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 20px 0 16px; font-weight: 800; }
.hero h1 span { color: var(--brand-light); }
.hero-subtitle { font-size: 1.15rem; color: #E2E8F0; max-width: 640px; }
.hero-features { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 28px 0 32px; }
.feature-item { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.feature-item svg { flex-shrink: 0; color: var(--brand-light); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }

.btn-whatsapp {
  display: inline-flex; align-items: center; gap: 10px; background: var(--whatsapp); color: #fff;
  text-decoration: none; font-weight: 700; padding: 16px 28px; border-radius: var(--radius-md);
  font-size: 1.05rem; min-height: 52px; box-shadow: 0 8px 24px rgba(37,211,102,0.35);
  transition: transform .2s, background .2s;
}
.btn-whatsapp:hover { background: var(--whatsapp-dark); transform: translateY(-2px); }
.hero-phone { color: #fff; font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--brand-light); padding-bottom: 2px; }

/* Barra de datos */
.stats-bar { background: var(--gradient-brand); color: #fff; padding: 28px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.stat-number { display: block; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.35rem; }
.stat-label { font-size: 0.9rem; opacity: 0.95; }

/* Secciones */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-soft); }
.section h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); text-align: center; margin-bottom: 12px; }
.section-intro { text-align: center; color: var(--text-light); max-width: 680px; margin: 0 auto 48px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: paso; }
.step {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 24px;
  box-shadow: 0 4px 16px var(--shadow); position: relative;
}
.step-number {
  width: 44px; height: 44px; border-radius: 50%; background: var(--gradient-brand); color: #fff;
  display: grid; place-items: center; font-family: 'Montserrat', sans-serif; font-weight: 800; margin-bottom: 16px;
}
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { color: var(--text-light); font-size: 0.97rem; }

.benefits-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.benefit { display: flex; gap: 16px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.benefit-icon {
  width: 48px; height: 48px; flex-shrink: 0; border-radius: var(--radius-md); background: #FFF7ED;
  display: grid; place-items: center; color: var(--brand);
}
.benefit h3 { font-size: 1.1rem; margin-bottom: 6px; }
.benefit p { color: var(--text-light); font-size: 0.97rem; }

.whatsapp-cta-box {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  background: #ECFDF5; border: 2px solid var(--whatsapp); border-radius: var(--radius-lg); padding: 24px 28px;
}
.whatsapp-cta-box .cta-text { flex: 1; min-width: 220px; }
.whatsapp-cta-box h3 { font-size: 1.15rem; margin-bottom: 4px; }
.whatsapp-cta-box p { color: var(--text-light); }

.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.about h2 { text-align: left; }
.about p { color: var(--text-light); margin-bottom: 16px; }
.about-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; box-shadow: 0 4px 16px var(--shadow); }
.about-card dt { font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--brand-dark); margin-top: 14px; }
.about-card dt:first-child { margin-top: 0; }
.about-card dd { color: var(--text); }
.about-card a { color: var(--text); font-weight: 600; }

.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 700; font-family: 'Montserrat', sans-serif; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: '+'; color: var(--brand); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--text-light); margin-top: 10px; }

.contact { text-align: center; }
.contact-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-top: 8px; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 10px; border: 2px solid var(--brand); color: var(--brand-dark);
  text-decoration: none; font-weight: 700; padding: 14px 26px; border-radius: var(--radius-md); min-height: 52px;
}
.btn-outline:hover { background: #FFF7ED; }

/* Pie */
.footer { background: var(--text); color: #CBD5E1; padding: 40px 0; font-size: 0.93rem; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.footer strong { color: #fff; }
.footer a { color: #fff; }

/* Botón flotante */
.whatsapp-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 60px; height: 60px; border-radius: 50%;
  background: var(--whatsapp); color: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.whatsapp-float:hover { background: var(--whatsapp-dark); }

/* Aviso de privacidad */
.legal { max-width: 820px; margin: 0 auto; padding: 56px 24px 80px; }
.legal h1 { font-size: 2rem; margin-bottom: 8px; }
.legal h2 { font-size: 1.2rem; margin: 28px 0 8px; text-align: left; }
.legal p, .legal li { color: var(--text-light); margin-bottom: 10px; }
.legal ul { padding-left: 22px; }

@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .nav-menu { display: none; }
  .hero { padding: 56px 0 64px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .steps, .benefits-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .btn-whatsapp, .btn-outline { width: 100%; justify-content: center; }
  .hero-actions { flex-direction: column; align-items: stretch; text-align: center; }
}

/* Menú en celular: renglón deslizable */
@media (max-width: 680px) {
  .nav-wrapper { flex-wrap: wrap; padding: 10px 24px 0; min-height: 0; }
  .nav-menu {
    display: flex; width: 100%; overflow-x: auto; gap: 18px; padding: 8px 0 12px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .nav-menu::-webkit-scrollbar { display: none; }
  .nav-link { white-space: nowrap; }
}
.nav-link[aria-current="page"] { color: var(--brand-dark); }

/* Encabezado corto de páginas internas */
.page-hero { padding: 64px 0 56px; }
.page-hero h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); margin: 16px 0 12px; }

/* Tres caminos */
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.path {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px; text-decoration: none; box-shadow: 0 4px 16px var(--shadow);
  transition: transform .2s, border-color .2s;
}
.path:hover { transform: translateY(-3px); border-color: var(--brand); }
.path h3 { font-size: 1.25rem; margin: 14px 0 8px; }
.path p { color: var(--text-light); flex: 1; }
.path .path-cta { margin-top: 16px; color: var(--brand-dark); font-weight: 700; }

/* Comparativa de dos opciones */
.options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.option { background: #fff; border: 2px solid var(--border); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; }
.option.featured { border-color: var(--brand); }
.option-tag { align-self: flex-start; background: #FFF7ED; color: var(--brand-dark); font-weight: 700; font-size: 0.85rem; padding: 4px 12px; border-radius: 9999px; }
.option h3 { font-size: 1.35rem; margin: 12px 0 8px; }
.option > p { color: var(--text-light); margin-bottom: 16px; }
.option ul { list-style: none; margin-bottom: 24px; flex: 1; }
.option li { padding: 8px 0 8px 28px; position: relative; border-top: 1px solid var(--border); }
.option li::before { content: '✓'; position: absolute; left: 4px; color: var(--brand); font-weight: 800; }
.compare { width: 100%; border-collapse: collapse; margin-top: 40px; background: #fff; border-radius: var(--radius-md); overflow: hidden; box-shadow: 0 4px 16px var(--shadow); }
.compare th, .compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.97rem; }
.compare thead th { background: var(--text); color: #fff; font-family: 'Montserrat', sans-serif; }
.compare tbody th { color: var(--text); width: 26%; }
.compare td { color: var(--text-light); }

/* Antes y después */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.pair { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; box-shadow: 0 4px 16px var(--shadow); }
.pair-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pair img { width: 100%; height: auto; display: block; }
.pair figcaption { margin-top: 10px; font-weight: 600; color: var(--text-light); font-size: 0.95rem; }
.gallery-title { font-size: 1.3rem; margin: 48px 0 20px; }

/* Catálogo vacío */
.empty-box { max-width: 720px; margin: 0 auto; text-align: center; background: #fff; border: 2px dashed var(--border); border-radius: var(--radius-lg); padding: 40px 28px; }
.empty-box p { color: var(--text-light); margin: 8px 0 24px; }

@media (max-width: 900px) {
  .paths { grid-template-columns: 1fr; }
  .options { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .compare th, .compare td { padding: 10px; font-size: 0.88rem; }
  .page-hero { padding: 44px 0 40px; }
}
