/* =========================================================
   Juan Ponte — estilos del sitio
   Para cambiar el color de acento, editar solo --accent,
   --accent-hover y --accent-text.
   ========================================================= */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope.woff2") format("woff2-variations"),
       url("../fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #F7F5F2;
  --ink: #111214;
  --muted: #6B6B70;
  --line: #E4E1DC;
  --surface: #FFFFFF;
  --accent: #FF5A1F;
  --accent-hover: #E64A12;
  --accent-text: #C2410C;
  --on-dark: #F7F5F2;
  --on-dark-muted: #A9A9AE;
  --line-dark: #2A2B2F;

  --radius: 16px;
  --radius-sm: 10px;
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 128px);

  --fs-hero: clamp(2.35rem, 1.5rem + 3.8vw, 4.6rem);
  --fs-h2: clamp(1.75rem, 1.25rem + 2.1vw, 2.9rem);
  --fs-h3: clamp(1.08rem, 1rem + .4vw, 1.28rem);
  --fs-lead: clamp(1.05rem, 1rem + .3vw, 1.22rem);
  --fs-small: .875rem;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 450;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.025em; font-weight: 750; text-wrap: balance; }
p { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--on-dark);
  padding: 10px 16px; border-radius: var(--radius-sm); text-decoration: none; font-weight: 700;
  transition: top .2s var(--ease);
}
.skip:focus { top: 12px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.todo {
  background: #FFE8DD; color: #8A2A08; border-radius: 6px;
  padding: 1px 6px; font-size: .9em; font-weight: 600;
}

/* ---------- Header y pestañas ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 245, 242, .88);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }

.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.1; }
.brand-name { font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: 1.02rem; }
.brand-name::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 5px; border-radius: 50%; background: var(--accent); vertical-align: 2px; }
.brand-tag { font-size: .74rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-top: 4px; }

.tabs { display: flex; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.tab {
  display: flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  text-decoration: none; font-weight: 650; font-size: .95rem; color: var(--muted);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.tab:hover { color: var(--ink); background: var(--bg); }
.tab[aria-current="page"] { background: var(--ink); color: var(--on-dark); }
.tab[aria-current="page"]::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 8px; }

@media (max-width: 719px) {
  .header-inner { flex-direction: column; align-items: stretch; gap: 10px; padding-block: 12px; min-height: 0; }
  .brand { flex-direction: row; align-items: baseline; justify-content: space-between; }
  .header nav { width: 100%; }
  .tabs { width: 100%; }
  .tabs li { flex: 1; }
  .tab { padding: 0 8px; font-size: .9rem; }
  .tab[aria-current="page"]::before { margin-right: 6px; }
  html { scroll-padding-top: 140px; }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--on-dark); }
.dark .btn-ghost { border-color: var(--on-dark); color: var(--on-dark); }
.dark .btn-ghost:hover { background: var(--on-dark); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  font-weight: 700; color: var(--accent-text); text-decoration: none;
}
.link-arrow span { transition: transform .2s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }
.dark .link-arrow { color: var(--accent); }

/* ---------- Secciones ---------- */
.section { padding-block: var(--section); }
.section + .section:not(.dark) { padding-top: 0; }
.dark { background: var(--ink); color: var(--on-dark); }
.dark + .section { padding-top: var(--section); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--accent); }
.dark .eyebrow { color: var(--on-dark-muted); }

.section-head { display: grid; gap: 16px; max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: var(--fs-h2); }
.section-head p { font-size: var(--fs-lead); color: var(--muted); }
.dark .section-head p { color: var(--on-dark-muted); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(40px, 7vw, 96px) clamp(40px, 6vw, 80px); }
.hero-grid { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 22px; }
.hero h1 { font-size: var(--fs-hero); letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; color: var(--accent-text); }
.hero .lead { font-size: var(--fs-lead); color: var(--muted); max-width: 34em; }
.hero-media { position: relative; }
.hero-media img { border-radius: var(--radius); width: 100%; }
.hero-badge {
  position: absolute; left: -12px; bottom: 24px;
  background: var(--ink); color: var(--on-dark);
  padding: 12px 16px; border-radius: 12px; font-size: .85rem; font-weight: 650; line-height: 1.3;
}
.hero-badge strong { display: block; color: var(--accent); font-size: 1.05rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: .82rem; font-weight: 650; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
}

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr .9fr; }
  .hero-grid.text-only { grid-template-columns: 1fr; }
}
@media (max-width: 899px) {
  .hero-badge { left: 12px; }
}

/* ---------- Tarjetas de servicio ---------- */
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.card {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 3vw, 30px);
  transition: border-color .2s var(--ease), transform .25s var(--ease);
}
.card:hover { border-color: var(--ink); transform: translateY(-2px); }
.card-num { font-size: .8rem; font-weight: 800; color: var(--accent-text); letter-spacing: .1em; }
.card h3 { font-size: var(--fs-h3); }
.card p { color: var(--muted); }
.card-foot { margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); }
.price { font-size: var(--fs-small); font-weight: 650; color: var(--muted); }

/* ---------- Portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filter {
  min-height: 44px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); font-weight: 650; font-size: .92rem;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }

.gallery { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.gallery li[hidden] { display: none; }
.shot {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  border-radius: var(--radius); overflow: hidden; background: var(--line);
}
.shot img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .5s var(--ease); }
.shot:hover img { transform: scale(1.04); }
.shot-label {
  position: absolute; left: 12px; bottom: 12px;
  background: rgba(17, 18, 20, .82); color: var(--on-dark);
  font-size: .78rem; font-weight: 650; padding: 5px 10px; border-radius: 999px;
}

.lightbox {
  width: min(92vw, 960px); max-height: 92vh; padding: 0; border: 0; border-radius: var(--radius);
  background: var(--ink); color: var(--on-dark); overflow: hidden;
}
.lightbox::backdrop { background: rgba(17, 18, 20, .86); }
.lightbox figure { margin: 0; }
.lightbox img { width: 100%; max-height: 78vh; object-fit: contain; background: #000; }
.lightbox figcaption { padding: 14px 64px 16px 20px; font-weight: 600; }
.lightbox-close {
  position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: var(--accent); color: var(--ink); font-size: 1.5rem; line-height: 1; cursor: pointer;
}

/* ---------- Comparador antes / después ---------- */
.compare {
  --pos: 50%;
  position: relative; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 3 / 2; background: var(--line); user-select: none; touch-action: pan-y;
}
.compare picture, .compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-line {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px;
  background: var(--surface); pointer-events: none;
}
.compare-knob {
  position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px;
  border-radius: 50%; background: var(--accent); color: var(--ink);
  display: grid; place-items: center; font-weight: 800; font-size: 1.1rem;
}
.compare-range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none;
}
.compare:focus-within { outline: 3px solid var(--accent); outline-offset: 4px; }
.compare-tag {
  position: absolute; top: 14px; padding: 5px 12px; border-radius: 999px; pointer-events: none;
  background: rgba(17, 18, 20, .82); color: var(--on-dark); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.compare-tag.before { left: 14px; }
.compare-tag.after { right: 14px; background: var(--accent); color: var(--ink); }
.compare-hint { margin-top: 12px; font-size: var(--fs-small); color: var(--muted); }

/* ---------- Pasos ---------- */
.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); counter-reset: step; }
.step { padding-top: 20px; border-top: 2px solid var(--line); display: grid; gap: 8px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-size: 2.2rem; font-weight: 800; color: var(--accent-text); letter-spacing: -0.03em; line-height: 1;
}
.step h3 { font-size: var(--fs-h3); }
.step p { color: var(--muted); }
.dark .step { border-top-color: var(--line-dark); }
.dark .step::before { color: var(--accent); }
.dark .step p { color: var(--on-dark-muted); }

/* ---------- Bloque diferencial ---------- */
.combo { display: grid; gap: 28px; align-items: center; }
.combo h2 { font-size: var(--fs-h2); }
.combo p { color: var(--on-dark-muted); font-size: var(--fs-lead); max-width: 36em; }
.combo-copy { display: grid; gap: 18px; }
.combo-list { display: grid; gap: 10px; }
.combo-list li {
  display: flex; gap: 14px; align-items: center; padding: 16px 18px;
  border: 1px solid var(--line-dark); border-radius: var(--radius-sm); font-weight: 650;
}
.combo-list li span { color: var(--accent); font-weight: 800; }
@media (min-width: 900px) { .combo { grid-template-columns: 1.2fr .8fr; } }

/* ---------- Datos / experiencia ---------- */
.stats { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.stat { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 6px; }
.stat strong { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.stat strong span { color: var(--accent-text); }
.stat p { color: var(--muted); font-weight: 600; }

/* ---------- Planes ---------- */
.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.plan { display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 3vw, 32px); border-radius: var(--radius); border: 1px solid var(--line-dark); }
.plan h3 { font-size: 1.35rem; }
.plan p { color: var(--on-dark-muted); }
.plan .price { color: var(--on-dark); font-size: 1rem; }
.plan .btn { margin-top: auto; }
.plan.featured { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }
.plan.featured p { color: var(--muted); }
.plan.featured .price { color: var(--ink); }
.plan-tag { align-self: flex-start; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: var(--accent); color: var(--ink); padding: 4px 10px; border-radius: 999px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 56px 18px 20px; position: relative;
  font-weight: 700; min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg); font-size: 1.2rem; transition: transform .2s var(--ease), background-color .2s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); background: var(--accent); }
.faq details > div { padding: 0 20px 20px; color: var(--muted); }

/* ---------- CTA final ---------- */
.cta {
  display: grid; gap: 20px; justify-items: start;
  padding: clamp(32px, 6vw, 64px); border-radius: calc(var(--radius) + 8px);
  background: var(--accent); color: var(--ink);
}
.cta h2 { font-size: var(--fs-h2); max-width: 16em; }
.cta p { font-size: var(--fs-lead); max-width: 34em; }
.cta .btn-primary { background: var(--ink); color: var(--on-dark); }
.cta .btn-primary:hover { background: #2A2B2F; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: .85fr 1.15fr; } }
.channels { display: grid; gap: 12px; }
.channel {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; min-height: 72px;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none;
  transition: border-color .2s var(--ease);
}
.channel:hover { border-color: var(--ink); }
.channel-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--bg); display: grid; place-items: center; flex: none; }
.channel-icon svg { width: 22px; height: 22px; }
.channel.primary { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.channel.primary .channel-icon { background: var(--accent); color: var(--ink); }
.channel small { display: block; font-size: .8rem; color: var(--muted); font-weight: 600; }
.channel.primary small { color: var(--on-dark-muted); }
.channel strong { font-weight: 700; word-break: break-word; }
.info { margin-top: 12px; display: grid; gap: 14px; padding: 20px; border-radius: var(--radius); border: 1px dashed var(--line); }
.info h3 { font-size: 1rem; }
.info p { color: var(--muted); }

.form { display: grid; gap: 18px; padding: clamp(22px, 4vw, 36px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.form h2 { font-size: 1.5rem; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: .95rem; }
.optional { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: var(--bg);
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: var(--surface); box-shadow: 0 0 0 3px rgba(255, 90, 31, .35); }
.field [aria-invalid="true"] { border-color: #B42318; }
.field-error { color: #B42318; font-size: .875rem; font-weight: 600; min-height: 0; }
.field-error:empty { display: none; }
.form-row { display: grid; gap: 18px; }
@media (min-width: 620px) { .form-row { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-weight: 650; padding: 12px 14px; border-radius: var(--radius-sm); }
.form-status:empty { display: none; }
.form-status.ok { background: #E7F6EC; color: #11622F; }
.form-status.error { background: #FDECEA; color: #8C1D18; }
.form-note { font-size: var(--fs-small); color: var(--muted); }
.form .btn { justify-self: start; }
.form .btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--on-dark); padding-block: 56px 28px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.footer-tagline { color: var(--on-dark-muted); margin-top: 10px; }
.footer h2 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 12px; font-weight: 700; }
.footer ul { display: grid; gap: 2px; }
.footer a { text-decoration: none; display: inline-flex; min-height: 36px; align-items: center; }
.footer a:hover { color: var(--accent); }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-dark); color: var(--on-dark-muted); font-size: var(--fs-small); }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: clamp(16px, 3vw, 28px); bottom: clamp(16px, 3vw, 28px); z-index: 60;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--accent); color: var(--ink); display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(17, 18, 20, .25);
  transition: transform .2s var(--ease), background-color .2s var(--ease);
}
.wa-float:hover { transform: scale(1.06); background: var(--accent-hover); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Animación de aparición ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; align-content: center; gap: 20px; }
.notfound h1 { font-size: var(--fs-hero); }
.notfound h1 span { color: var(--accent-text); }
.hero + .section { padding-top: 0; }
@media (max-width: 719px) { .brand { flex-wrap: wrap; gap: 2px 12px; } }

/* ---------- Bloque tiendas online ---------- */
.split {
  display: grid; gap: clamp(24px, 4vw, 48px); align-items: center;
  padding: clamp(24px, 4vw, 48px); border-radius: calc(var(--radius) + 8px);
  background: var(--surface); border: 1px solid var(--line);
}
.split-copy { display: grid; gap: 16px; justify-items: start; }
.split-copy h2 { font-size: var(--fs-h2); }
.split-copy p { color: var(--muted); font-size: var(--fs-lead); max-width: 34em; }
.split-list { display: grid; gap: 10px; }
.split-list li {
  display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px;
  border-radius: var(--radius-sm); background: var(--bg); font-weight: 650;
}
.split-list li::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: .5em; border-radius: 50%; background: var(--accent); }
@media (min-width: 900px) { .split { grid-template-columns: 1.1fr .9fr; } }
.cards.cards-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
