/* ==========================================================================
   PLATIM — Estilos principales (base, layout y secciones)
   Sistema de diseño corporativo · HTML5 + CSS3 puro (sin frameworks)

   Orden de carga recomendado en el HTML:
     1) variables.css   2) style.css   3) components.css   4) responsive.css
   ========================================================================== */

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--azul);
  background: var(--blanco);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
input, textarea, select, button { font-family: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }

/* Elimina el retardo de doble-tap en móvil (mejora respuesta táctil) */
a, button, summary, label { touch-action: manipulation; }

/* skip link accesible */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--verde); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* foco visible accesible */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--verde-claro); outline-offset: 2px; border-radius: 6px;
}

/* ----- Contenedor ----- */
.container { max-width: var(--max); margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* ==========================================================================
   SECCIONES
   ========================================================================== */
.section { padding: clamp(48px, 7vw, 84px) 0; }
.section--home { padding: clamp(56px, 8vw, 96px) 0; }
.section--gray { background: var(--gris-sec); }
.section--dark { background: var(--azul); color: #fff; }

.eyebrow { color: var(--verde); font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.section--dark .eyebrow { color: var(--verde-claro); }
.section-head { max-width: 660px; }
.section-head.centered { max-width: 760px; margin: 0 auto; text-align: center; }
.section-title { font-size: clamp(26px, 4vw, 40px); font-weight: 800; color: var(--azul); margin-top: 14px; }
.section--dark .section-title { color: #fff; }
.lead { font-size: 17px; line-height: 1.65; color: var(--gris-texto); margin: 16px 0 0; }
.section--dark .lead { color: var(--dark-muted); }
.lead.centered { max-width: 560px; margin: 16px auto 0; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, #0D1B2A 0%, #14283d 55%, #0D1B2A 100%); color: #fff; }
.hero-pattern { position: absolute; inset: 0; opacity: .5; background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0px, rgba(255,255,255,.035) 1px, transparent 1px, transparent 22px); }
.hero-glow { position: absolute; top: -120px; right: -80px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(107,170,31,.22) 0%, transparent 70%); }
.hero-inner { position: relative; padding: clamp(56px, 8vw, 104px) 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: clamp(36px, 5vw, 72px); align-items: center; }

.badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(107,170,31,.16); border: 1px solid rgba(107,170,31,.35); color: var(--verde-claro); font-weight: 700; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; padding: 7px 14px; border-radius: 999px; }
.ok-check { display: inline-flex; align-items: center; justify-content: center; width: 84px; height: 84px; border-radius: 50%; margin: 0 auto; color: #fff; background: var(--verde); box-shadow: 0 0 0 8px rgba(107,170,31,.18); animation: ok-pop .45s cubic-bezier(.2,.8,.3,1.4) both; }
@keyframes ok-pop { 0% { transform: scale(.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ok-check { animation: none; } }
.hero h1 { font-size: clamp(34px, 5.4vw, 58px); font-weight: 900; line-height: 1.04; letter-spacing: -.025em; margin: 22px 0 0; }
.hero-sub { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.6; color: var(--dark-muted); margin: 22px 0 0; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-note { font-size: 14px; line-height: 1.55; color: var(--dark-muted-2); margin: 26px 0 0; max-width: 540px; }

.hero-aside { display: flex; flex-direction: column; gap: 18px; }
.hero-figure { position: relative; aspect-ratio: 4 / 3.2; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 50px rgba(0,0,0,.4); border: 1.5px solid rgba(255,255,255,.12); }
.hero-figure img { width: 100%; height: 100%; object-fit: cover; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 16px 12px; text-align: center; }
.stat-num { font-size: 26px; font-weight: 900; color: var(--verde-claro); line-height: 1; }
.stat-label { font-size: 12px; color: var(--dark-muted); margin-top: 6px; font-weight: 600; }

/* hero interno (landings) */
.hero--inner .hero-inner { display: block; padding: clamp(40px, 6vw, 72px) 0 clamp(48px, 7vw, 84px); }
.hero-copy { max-width: 780px; }
.breadcrumb { font-size: 13.5px; color: var(--dark-muted-2); margin-bottom: 24px; }
.breadcrumb a { color: var(--verde-claro); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { margin: 0 8px; }
.breadcrumb [aria-current] { color: var(--dark-muted); }

/* ==========================================================================
   BLOQUE SPLIT (texto + imagen)
   ========================================================================== */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(36px, 5vw, 64px); align-items: center; }
.media-figure { border-radius: 18px; overflow: hidden; box-shadow: 0 12px 30px rgba(13,27,42,.12); border: 1px solid var(--borde); aspect-ratio: 5 / 4; }
.media-figure img { width: 100%; height: 100%; object-fit: cover; }
.prose p { font-size: 17px; line-height: 1.75; color: var(--gris-texto); margin: 20px 0 0; }
.prose p strong { color: var(--azul); }

/* lista con check */
.check-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--azul); font-weight: 600; line-height: 1.4; }
.check-list svg { flex: none; margin-top: 1px; color: var(--verde); }
.section--dark .check-list li { color: #E5EAF1; }
.section--dark .check-list svg { color: var(--verde-claro); }

/* ==========================================================================
   DIFERENCIADORES (home)
   ========================================================================== */
.dif-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 38px; }
.dif { display: flex; gap: 14px; align-items: center; background: var(--gris-sec); border: 1px solid #EDEFF2; border-radius: 14px; padding: 20px; }
.dif-mark { flex: none; width: 38px; height: 38px; border-radius: 10px; background: var(--azul); display: flex; align-items: center; justify-content: center; color: var(--verde-claro); }
.dif span { font-size: 15.5px; font-weight: 700; color: var(--azul); line-height: 1.4; }

/* ==========================================================================
   PILDORAS (sectores)
   ========================================================================== */
.pill-group { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.pill { display: flex; align-items: center; gap: 9px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 999px; padding: 11px 20px; font-size: 15px; font-weight: 600; color: #E5EAF1; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--verde); flex: none; }
.pill.sm { padding: 9px 16px; font-size: 14px; }
.pill.sm::before { width: 6px; height: 6px; }

/* ==========================================================================
   PROCESO (pasos 01-04)
   ========================================================================== */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; margin-top: 42px; }
.step { padding: 28px; border: 1px solid var(--borde); border-radius: 16px; }
.step .step-num { font-size: 42px; font-weight: 900; color: var(--borde); line-height: 1; }
.step h3 { font-size: 18px; font-weight: 800; color: var(--azul); margin: 14px 0 0; }
.step p { font-size: 14.5px; line-height: 1.6; color: var(--gris-texto); margin: 8px 0 0; }

/* ==========================================================================
   CTA BAND (verde)
   ========================================================================== */
.cta-band { background: var(--verde); }
.cta-band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: clamp(36px, 5vw, 56px); padding-bottom: clamp(36px, 5vw, 56px); }
.cta-band h2 { font-size: clamp(22px, 3vw, 32px); font-weight: 800; color: #fff; line-height: 1.15; max-width: 660px; }
.cta-band p { font-size: 16px; color: rgba(255,255,255,.92); margin: 10px 0 0; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ==========================================================================
   FAQ (accordion accesible con <details>)
   ========================================================================== */
.faq { display: flex; flex-direction: column; gap: 12px; margin-top: 36px; max-width: 860px; margin-left: auto; margin-right: auto; }
.faq details { background: #fff; border: 1px solid var(--borde); border-radius: 14px; overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; font-size: 17px; font-weight: 700; color: var(--azul); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--gris-sec); display: flex; align-items: center; justify-content: center; color: var(--verde); font-size: 20px; font-weight: 800; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq__answer { padding: 0 22px 22px; font-size: 15.5px; line-height: 1.65; color: var(--gris-texto); }
.faq__answer p { margin: 0; }

/* ==========================================================================
   FORMULARIO / CONTACTO
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(36px, 5vw, 56px); align-items: start; }
.contact-intro p { font-size: 17px; line-height: 1.7; color: var(--gris-texto); margin: 18px 0 0; }
.contact-methods { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; }
.contact-method { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--azul); }
.contact-method .ico { width: 46px; height: 46px; border-radius: 12px; background: rgba(107,170,31,.12); display: flex; align-items: center; justify-content: center; flex: none; color: var(--verde); }
.contact-method .ico.alt { background: rgba(13,27,42,.06); color: var(--azul); }
.contact-method small { display: block; font-size: 13px; color: var(--gris); font-weight: 600; }
.contact-method strong { font-weight: 700; font-size: 16px; }

.form-card { background: var(--gris-sec); border: 1px solid var(--borde); border-radius: 20px; padding: clamp(24px, 4vw, 38px); }
.form-card.narrow { max-width: 760px; margin: 36px auto 0; }
.quote-form { display: flex; flex-direction: column; gap: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13.5px; font-weight: 700; color: var(--azul); }
.field input, .field select, .field textarea { padding: 12px 14px; border: 1px solid var(--borde-input); border-radius: 10px; font-size: 15px; background: #fff; outline: none; color: var(--azul); transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--verde); box-shadow: 0 0 0 3px rgba(107,170,31,.18); }
.field textarea { resize: vertical; }
.btn-submit { margin-top: 4px; background: var(--verde); color: #fff; font-weight: 700; font-size: 16px; padding: 15px; border: none; border-radius: 11px; cursor: pointer; transition: background .2s ease; }
.btn-submit:hover { background: #5e9619; }
.form-note { font-size: 12.5px; color: var(--gris); text-align: center; margin: 2px 0 0; }

/* mensaje de éxito (oculto por defecto) */
.form-success { display: none; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 24px 10px; }
.form-success .ok { width: 64px; height: 64px; border-radius: 50%; background: rgba(107,170,31,.15); display: flex; align-items: center; justify-content: center; color: var(--verde); }
.form-success h3 { font-size: 22px; font-weight: 800; color: var(--azul); }
.form-success p { font-size: 15px; color: var(--gris-texto); line-height: 1.6; margin: 0; max-width: 320px; }
.form-card.is-sent .quote-form { display: none; }
.form-card.is-sent .form-success { display: flex; }

/* ==========================================================================
   CALZADO: características, normas, modelos, notas
   ========================================================================== */
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; background: var(--gris-sec); border: 1px solid #EDEFF2; border-radius: 11px; padding: 13px 15px; font-size: 14.5px; color: var(--azul); font-weight: 600; line-height: 1.4; }
.feature-list svg { flex: none; margin-top: 1px; color: var(--verde); }

.note-warn { margin-top: 20px; background: #FBF6EC; border: 1px solid #F0E4C8; border-radius: 13px; padding: 16px 18px; display: flex; gap: 12px; align-items: flex-start; }
.note-warn svg { flex: none; margin-top: 1px; color: #B8860B; }
.note-warn p { font-size: 13.5px; line-height: 1.55; color: #7a5c12; margin: 0; font-weight: 600; }

.norm-table { margin-top: 36px; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; overflow: hidden; }
.norm-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 6px 24px; padding: 18px 22px; border-bottom: 1px solid rgba(255,255,255,.08); }
.norm-row:last-child { border-bottom: none; }
.norm-row dt { font-weight: 700; font-size: 15.5px; color: #fff; margin: 0; }
.norm-row dd { font-size: 14.5px; color: var(--verde-claro); font-weight: 600; margin: 0; }

.model-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 40px; }
.model { border: 1px solid var(--borde); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.model:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(13,27,42,.12); }
.model-media { aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(160deg, #F1F4F8, #E4E9EF); display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--borde); }
.model-media img { width: 100%; height: 100%; object-fit: cover; }
.model-media svg { color: #AEB9C7; }
.model-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.model-body h3 { font-size: 17px; font-weight: 800; color: var(--azul); margin: 12px 0 0; }
.model-body p { font-size: 13.5px; line-height: 1.5; color: var(--gris-texto); margin: 6px 0 0; flex: 1; }
.model-body .card-link { font-size: 14px; margin-top: 14px; }
.disclaimer { font-size: 13px; color: var(--gris); margin: 24px 0 0; font-style: italic; }

/* ==========================================================================
   CTA FINAL (dark, centrado)
   ========================================================================== */
.final-cta { position: relative; overflow: hidden; background: linear-gradient(135deg, #0D1B2A, #14283d); color: #fff; padding: clamp(56px, 8vw, 90px) 0; text-align: center; }
.final-cta .container { position: relative; max-width: 760px; }
.final-cta h2 { font-size: clamp(28px, 4.5vw, 46px); font-weight: 900; line-height: 1.08; }
.final-cta p { font-size: 18px; line-height: 1.6; color: var(--dark-muted); margin: 18px 0 0; }
.final-cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 30px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--footer); color: var(--dark-muted); padding: clamp(48px, 7vw, 72px) 0 30px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; }
.footer-brand { max-width: 320px; }
.footer-brand .brand-row { display: flex; align-items: center; gap: 11px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .footer-logo { display: block; width: 200px; max-width: 100%; height: auto; filter: brightness(0) invert(1); }
.footer-slogan { font-size: 14.5px; font-weight: 600; color: var(--verde-claro); margin: 16px 0 0; }
.footer-desc { font-size: 14px; line-height: 1.6; color: var(--dark-muted-2); margin: 12px 0 0; }
.footer-col h3 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: #fff; font-weight: 700; margin: 0 0 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; font-size: 14.5px; }
.footer-col a { text-decoration: none; color: var(--dark-muted); }
.footer-col a:hover { color: var(--verde-claro); }
.footer-social { display: flex; gap: 14px; margin-top: 4px; }
.footer-social a { display: inline-flex; color: var(--dark-muted); }
.footer-social a:hover { color: var(--verde-claro); }
.footer-bottom { max-width: var(--max); margin: 36px auto 0; padding: 24px 24px 0; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 13px; color: var(--gris); margin: 0; }
.footer-bottom nav { display: flex; gap: 20px; }
.footer-bottom nav a { text-decoration: none; color: var(--dark-muted-2); font-size: 13px; }

/* ==========================================================================
   WHATSAPP FLOTANTE
   ========================================================================== */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 22px rgba(37,211,102,.4); animation: platimPulse 2.4s infinite; }
.wa-float:hover { transform: scale(1.06); }
@keyframes platimPulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
  70% { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
@media (prefers-reduced-motion: reduce) {
  .wa-float { animation: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   PÁGINAS LEGALES (Política de privacidad / Términos y condiciones)
   ========================================================================== */
.legal { max-width: 860px; }
.legal .legal-meta { font-size: 14px; color: var(--gris); margin: 0 0 8px; }
.legal .legal-intro { font-size: 18px; line-height: 1.7; color: var(--gris-texto); margin: 0 0 8px; }
.legal h2 {
  font-size: 22px; color: var(--azul); margin: 44px 0 14px;
  padding-top: 26px; border-top: 1px solid var(--borde);
}
.legal h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 28px; }
.legal h3 {
  font-size: 15px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--verde-osc); font-weight: 700; margin: 24px 0 4px;
}
.legal p { font-size: 16.5px; line-height: 1.75; color: var(--gris-texto); margin: 12px 0 0; }
.legal a { color: var(--verde-osc); font-weight: 600; text-decoration: underline; }
.legal ul { margin: 12px 0 0; padding-left: 22px; }
.legal li { font-size: 16.5px; line-height: 1.7; color: var(--gris-texto); margin: 6px 0; }
.legal .legal-data { list-style: none; padding: 0; margin: 16px 0 0; }
.legal .legal-data li { margin: 10px 0; }
.legal .legal-data strong { display: block; color: var(--azul); font-size: 13px; letter-spacing: .03em; text-transform: uppercase; margin-bottom: 2px; }
.legal .legal-foot {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--borde);
  font-size: 14px; color: var(--gris);
}

/* ==========================================================================
   TEXTO JUSTIFICADO — párrafos descriptivos
   Solo bloques de texto anchos. Se desactiva en móvil (ver responsive.css)
   porque en columnas estrechas el justificado abre "ríos" de espacio.
   ========================================================================== */
.section-head:not(.centered) .lead:not(.centered),
.prose p,
.legal p,
.legal li,
.faq__answer p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}
.legal .legal-data li,
.legal .legal-foot,
.legal .legal-meta { text-align: left; hyphens: none; }
