/* Imprexa V3 · sistema visual compartido · 2026-08-03 */
:root {
  --v3-ink: #211a1c;
  --v3-muted: #665c5f;
  --v3-soft: #8b7f82;
  --v3-paper: #fffdf9;
  --v3-cream: #f8f2e9;
  --v3-cream-2: #efe5d8;
  --v3-line: #ded2c7;
  --v3-magenta: #d71960;
  --v3-magenta-dark: #ad104a;
  --v3-dark: #241c1e;
  --v3-success: #27684a;
  --v3-warn: #825718;
  --v3-radius-sm: .5rem;
  --v3-radius: 1rem;
  --v3-radius-lg: 1.5rem;
  --v3-shadow: 0 18px 45px rgba(45, 31, 35, .09);
  --v3-width: 1180px;
  --v3-reading: 760px;
  --v3-space: clamp(3.75rem, 8vw, 7.5rem);
}

html { scroll-behavior: smooth; }
body.v3 {
  display: block !important;
  margin: 0;
  min-width: 0;
  overflow-x: clip;
  background: var(--v3-cream);
  color: var(--v3-ink);
  font-family: Montserrat, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.v3 *, .v3 *::before, .v3 *::after { box-sizing: border-box; }
.v3 img { display: block; max-width: 100%; height: auto; }
.v3 a { text-underline-offset: .2em; }
.v3 :focus-visible { outline: 3px solid var(--v3-magenta); outline-offset: 4px; border-radius: .2rem; }
.v3 h1, .v3 h2, .v3 h3 { color: inherit; line-height: 1.12; letter-spacing: -.03em; text-wrap: balance; }
.v3 h1 { font-size: clamp(2.5rem, 7vw, 5.6rem); font-weight: 850; overflow-wrap: break-word; }
.v3 h2 { font-size: clamp(1.85rem, 4.2vw, 3.35rem); font-weight: 800; }
.v3 h3 { font-size: clamp(1.18rem, 2vw, 1.55rem); font-weight: 760; }
.v3 p { text-wrap: pretty; }
.v3 .v3-wrap, .v3 header .wrap, .v3 footer .wrap { width: min(100% - 2rem, var(--v3-width)); margin-inline: auto; }
.v3 .v3-reading { width: min(100% - 2rem, var(--v3-reading)); margin-inline: auto; }
.v3 .v3-kicker, .v3 .eyebrow, .v3 .mono {
  color: var(--v3-magenta);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.v3 .v3-lead { max-width: 62ch; color: var(--v3-muted); font-size: clamp(1.05rem, 2vw, 1.3rem); }
.v3 .v3-section { padding-block: var(--v3-space); }
.v3 .v3-section--paper { background: var(--v3-paper); }
.v3 .v3-section--dark { background: var(--v3-dark); color: #fff; }
.v3 .v3-section--dark h2, .v3 .v3-section--dark h3 { color: #fff; }
.v3 .v3-section--dark p { color: #e6dfe1; }
.v3 .v3-section-head { max-width: 720px; margin-bottom: clamp(2rem, 5vw, 3.75rem); }
.v3 .v3-section-head > * { margin-top: 0; }
.v3 .v3-section-head > * + * { margin-top: 1.15rem; }

/* Acciones */
.v3 .v3-actions, .v3 .hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 1.75rem; }
.v3 .v3-btn, .v3 .btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border: 1px solid transparent;
  border-radius: var(--v3-radius-sm);
  padding: .85rem 1.2rem;
  font: 800 .78rem/1.2 Montserrat, sans-serif;
  letter-spacing: .06em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.v3 .v3-btn:hover, .v3 .btn:hover { transform: translateY(-2px); }
.v3 .v3-btn--primary, .v3 .btn-lleno { background: var(--v3-magenta); color: #fff; }
.v3 .v3-btn--primary:hover, .v3 .btn-lleno:hover { background: var(--v3-magenta-dark); }
.v3 .v3-btn--secondary, .v3 .btn-linea { border-color: var(--v3-line); background: transparent; color: var(--v3-ink); }
.v3 .v3-btn--secondary:hover, .v3 .btn-linea:hover { border-color: var(--v3-ink); }
.v3 .v3-btn--light { background: #fff; color: var(--v3-ink); }
.v3 .v3-text-link { color: var(--v3-magenta-dark); font-weight: 750; }

/* Cabecera común */
.v3-skip {
  position: fixed; z-index: 200; top: .5rem; left: .5rem; transform: translateY(-160%);
  background: #fff; color: var(--v3-ink); border: 2px solid var(--v3-magenta); padding: .75rem 1rem;
}
.v3-skip:focus { transform: none; }
.v3 .v3-header {
  position: sticky; z-index: 80; top: 0; border-bottom: 1px solid rgba(222, 210, 199, .9);
  background: rgba(248, 242, 233, .94); backdrop-filter: blur(12px);
}
.v3 .v3-header-row { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 1rem; }
.v3 .v3-brand { display: inline-flex; flex: 0 0 auto; align-items: center; }
.v3 .v3-brand img { width: auto; height: 38px; }
.v3 .v3-nav { display: flex; align-items: center; gap: clamp(.85rem, 2vw, 1.65rem); }
.v3 .v3-nav > a, .v3 .v3-nav details > summary {
  color: var(--v3-muted); font-size: .76rem; font-weight: 760; letter-spacing: .045em; text-decoration: none; text-transform: uppercase;
}
.v3 .v3-nav > a:hover, .v3 .v3-nav details > summary:hover, .v3 .v3-nav [aria-current="page"] { color: var(--v3-magenta-dark); }
.v3 .v3-nav details { position: relative; display: flex; align-items: center; align-self: center; }
.v3 .v3-nav summary { list-style: none; cursor: pointer; }
.v3 .v3-nav summary::-webkit-details-marker { display: none; }
.v3 .v3-nav summary::after { content: " +"; }
.v3 .v3-nav details[open] summary::after { content: " −"; }
.v3 .v3-nav-menu {
  position: absolute; top: calc(100% + 1rem); left: -.9rem; min-width: 250px; padding: .65rem;
  border: 1px solid var(--v3-line); border-radius: var(--v3-radius); background: var(--v3-paper); box-shadow: var(--v3-shadow);
}
.v3 .v3-nav-menu a { display: block; padding: .7rem .8rem; border-radius: .45rem; color: var(--v3-ink); font-size: .88rem; font-weight: 650; text-decoration: none; }
.v3 .v3-nav-menu a:hover { background: var(--v3-cream); color: var(--v3-magenta-dark); }
.v3 .v3-menu-btn {
  display: none; width: 48px; height: 48px; align-items: center; justify-content: center;
  border: 1px solid var(--v3-line); border-radius: var(--v3-radius-sm); background: transparent;
  color: var(--v3-ink); font: 800 .76rem Montserrat, sans-serif; text-transform: uppercase; cursor: pointer;
}
.v3 .v3-mobile-nav { display: none; padding-block: .5rem 1rem; border-top: 1px solid var(--v3-line); }
.v3 .v3-mobile-nav.is-open { display: grid; }
.v3 .v3-mobile-nav a { min-height: 48px; padding: .8rem 0; border-bottom: 1px solid var(--v3-line); color: var(--v3-ink); font-weight: 720; text-decoration: none; }
.v3 .v3-mobile-nav strong { margin-top: .8rem; color: var(--v3-soft); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; }

/* Pie común */
.v3 .v3-footer { background: var(--v3-dark); color: #f5eff0; }
.v3 .v3-footer-main { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 3rem; padding-block: 4.5rem 3rem; }
.v3 .v3-footer img { width: auto; height: 36px; filter: brightness(0) invert(1); }
.v3 .v3-footer h2, .v3 .v3-footer h3 { color: #fff; }
.v3 .v3-footer-main h2 { font-size: .78rem; font-weight: 760; letter-spacing: .05em;
  text-transform: uppercase; line-height: 1.3; margin: 0 0 1rem; opacity: .75; }
.v3 .v3-footer h3 { margin: 0 0 1rem; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.v3 .v3-footer p { color: #d9ced1; font-size: .92rem; }
.v3 .v3-footer a { color: #fff; }
.v3 .v3-footer-links { display: grid; gap: .55rem; }
.v3 .v3-footer-links a { font-size: .9rem; text-decoration: none; }
.v3 .v3-footer-links a:hover { color: #ff79aa; }
.v3 .v3-footer-note { margin-top: 1.4rem; padding: 1rem; border: 1px solid #514347; border-radius: .75rem; }
.v3 .v3-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.25rem 2rem; border-top: 1px solid #493c40; color: #bdaeb2; font-size: .78rem; }
.v3 .v3-footer-legal { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Componentes editoriales */
.v3 .v3-hero { position: relative; overflow: hidden; padding-block: clamp(3.8rem, 9vw, 8rem); }
.v3 .v3-hero::after { content: ""; position: absolute; z-index: -1; width: 36rem; height: 36rem; top: -16rem; right: -12rem; border-radius: 50%; background: rgba(215, 25, 96, .08); }
.v3 .v3-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr); align-items: center; gap: clamp(2.5rem, 7vw, 6rem); }
.v3 .v3-hero h1 { margin: .8rem 0 1.25rem; }
.v3 .v3-hero-media { position: relative; }
.v3 .v3-hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--v3-radius-lg); box-shadow: var(--v3-shadow); }
.v3 .v3-caption { margin-top: .7rem; color: var(--v3-soft); font-size: .75rem; }
.v3 .v3-grid-2, .v3 .v3-grid-3, .v3 .v3-grid-4 { display: grid; gap: 1rem; }
.v3 .v3-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.v3 .v3-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.v3 .v3-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.v3 .v3-card { min-width: 0; padding: clamp(1.35rem, 3vw, 2.25rem); border: 1px solid var(--v3-line); border-radius: var(--v3-radius); background: var(--v3-paper); }
.v3 a.v3-card { color: inherit; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.v3 a.v3-card:hover { transform: translateY(-4px); box-shadow: var(--v3-shadow); }
.v3 .v3-card h3 { margin: 0 0 .65rem; }
.v3 .v3-card p:last-child { margin-bottom: 0; }
.v3 .v3-number { display: inline-flex; width: 2rem; height: 2rem; align-items: center; justify-content: center; margin-bottom: 1rem; border-radius: 50%; background: var(--v3-magenta); color: #fff; font-weight: 800; }
.v3 .v3-photo-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 1rem; }
.v3 .v3-photo-grid figure { margin: 0; }
.v3 .v3-photo-grid img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; border-radius: var(--v3-radius); }
.v3 .v3-photo-grid figure:first-child { grid-row: span 2; }
.v3 .v3-photo-grid figure:first-child img { min-height: 540px; }
.v3 .v3-callout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; align-items: center; padding: clamp(1.6rem, 4vw, 3rem); border-radius: var(--v3-radius-lg); background: var(--v3-magenta); color: #fff; }
.v3 .v3-callout h2, .v3 .v3-callout h3 { margin: 0; color: #fff; }
.v3 .v3-callout p { color: #fff; }
.v3 .v3-proof-gap { padding: 1rem 1.2rem; border-left: 4px solid var(--v3-magenta); background: #fff6f9; color: var(--v3-muted); font-size: .9rem; }
.v3 .v3-process { counter-reset: process; }
.v3 .v3-process > * { position: relative; }
.v3 .v3-process > *::before { counter-increment: process; content: counter(process, decimal-leading-zero); display: block; margin-bottom: 1.25rem; color: var(--v3-magenta); font-family: "IBM Plex Mono", monospace; font-size: .72rem; font-weight: 700; letter-spacing: .12em; }
.v3 .v3-chip-list { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; list-style: none; }
.v3 .v3-chip-list li { padding: .55rem .8rem; border: 1px solid var(--v3-line); border-radius: 99px; background: var(--v3-paper); font-size: .85rem; font-weight: 650; }
.v3 details { border-color: var(--v3-line); }
.v3 details > summary { min-height: 48px; cursor: pointer; }

/* Formularios */
.v3 .v3-form { display: grid; gap: 1rem; }
.v3 .v3-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.v3 .v3-field { display: grid; gap: .4rem; }
.v3 .v3-field--full { grid-column: 1 / -1; }
.v3 .v3-field label, .v3 label { color: var(--v3-ink); font-weight: 720; }
.v3 .v3-field small, .v3 .ayuda { color: var(--v3-muted); }
.v3 input:not([type="radio"]):not([type="checkbox"]), .v3 select, .v3 textarea {
  width: 100%; min-height: 48px; border: 1px solid var(--v3-line); border-radius: .55rem; background: var(--v3-paper); color: var(--v3-ink); padding: .8rem .9rem; font: inherit;
}
.v3 textarea { min-height: 130px; resize: vertical; }
.v3 input:focus, .v3 select:focus, .v3 textarea:focus { border-color: var(--v3-magenta); }
.v3 .v3-check { display: flex; align-items: flex-start; gap: .65rem; font-weight: 500; }
.v3 .v3-check input { flex: 0 0 auto; width: 1.2rem; height: 1.2rem; margin-top: .2rem; accent-color: var(--v3-magenta); }

/* Unificación de páginas heredadas */
.v3 > main:not(.v3-main), .v3 main:not(.v3-main) { min-width: 0; }
.v3 .bg-white, .v3 .bg-background-light { background-color: var(--v3-paper) !important; }
.v3 .bg-slate-50, .v3 .bg-slate-50\/50 { background-color: var(--v3-cream) !important; }
.v3 .text-slate-900, .v3 .text-slate-800 { color: var(--v3-ink) !important; }
.v3 .text-slate-700, .v3 .text-slate-600, .v3 .text-slate-500 { color: var(--v3-muted) !important; }
.v3 .border-slate-50, .v3 .border-slate-100, .v3 .border-slate-200 { border-color: var(--v3-line) !important; }
.v3 .rounded-xl, .v3 .rounded-2xl, .v3 .rounded-3xl { border-radius: var(--v3-radius) !important; }
.v3 main > section { scroll-margin-top: 90px; }
.v3 .max-w-\[1200px\], .v3 .max-w-7xl { max-width: var(--v3-width) !important; }
.v3 .prose, .v3 .legal-copy { color: var(--v3-muted); }
.v3 .prose h2, .v3 .prose h3, .v3 .legal-copy h2 { color: var(--v3-ink); }

/* Calculadoras públicas: mantiene el motor, integra la interfaz */
.v3 .calc-hero { background: var(--v3-cream) !important; }
.v3 .calc-shell, .v3 .calculator-shell { border-color: var(--v3-line) !important; box-shadow: var(--v3-shadow); }
.v3 .service-panel, .v3 .result-card { border-color: var(--v3-line) !important; background: var(--v3-paper) !important; }
.v3 .result-card { top: 96px !important; }
.v3 .calc-nav a { min-height: 44px; display: inline-flex; align-items: center; }
.v3 .qty-row input:not([type="radio"]):not([type="checkbox"]) { width: 84px; }

/* Legales */
.v3 .v3-legal { width: min(100% - 2rem, var(--v3-reading)); margin-inline: auto; padding-block: clamp(3rem, 8vw, 6rem); }
.v3 .v3-legal h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
.v3 .v3-legal section + section { margin-top: 2.25rem; }
.v3 .v3-legal h2 { margin-bottom: .8rem; font-size: clamp(1.25rem, 3vw, 1.75rem); }
.v3 .v3-thanks { min-height: 70vh; display: grid; place-items: center; padding-block: var(--v3-space); }
.v3 .v3-thanks-card { width: min(100% - 2rem, 680px); padding: clamp(1.5rem, 5vw, 3.5rem); border: 1px solid var(--v3-line); border-radius: var(--v3-radius-lg); background: var(--v3-paper); box-shadow: var(--v3-shadow); text-align: center; }
.v3 .v3-thanks-card h1 { font-size: clamp(2.2rem, 7vw, 4.2rem); }

/* Botón flotante heredado */
.v3 .whatsapp-float, .v3 .wa-float, .v3 a[aria-label*="WhatsApp"] {
  right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom));
}

@media (max-width: 980px) {
  .v3 .v3-nav, .v3 .v3-header-cta { display: none; }
  .v3 .v3-menu-btn { display: inline-flex; }
  .v3 .v3-hero-grid { grid-template-columns: 1fr; }
  .v3 .v3-hero-media { max-width: 720px; }
  .v3 .v3-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v3 .v3-footer-main { grid-template-columns: 1fr 1fr; }
  .v3 .v3-footer-main > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .v3 .v3-grid-2, .v3 .v3-grid-3, .v3 .v3-grid-4, .v3 .v3-form-grid, .v3 .v3-callout { grid-template-columns: 1fr; }
  .v3 .v3-photo-grid { grid-template-columns: 1fr 1fr; }
  .v3 .v3-photo-grid figure:first-child { grid-column: 1 / -1; grid-row: auto; }
  .v3 .v3-photo-grid figure:first-child img { min-height: 340px; }
  .v3 .v3-footer-main { grid-template-columns: 1fr; gap: 2rem; }
  .v3 .v3-footer-main > :first-child { grid-column: auto; }
}

@media (max-width: 420px) {
  .v3 .v3-wrap, .v3 header .wrap, .v3 footer .wrap, .v3 .v3-reading { width: min(100% - 1.25rem, var(--v3-width)); }
  .v3 .v3-brand img { height: 33px; }
  .v3 .v3-photo-grid { grid-template-columns: 1fr; }
  .v3 .v3-photo-grid img, .v3 .v3-photo-grid figure:first-child img { min-height: 250px; }
  .v3 .v3-actions > *, .v3 .hero-cta > * { width: 100%; }
  .v3 .qty-row input:not([type="radio"]):not([type="checkbox"]) { width: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .v3 *, .v3 *::before, .v3 *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
