/* =========================================================
   Acercalo — estilos del sitio
   Paleta: carbón, blanco, grises claros y plata. Sin acento de color.
   ========================================================= */
:root {
  --carbon: #1C1D1F;
  --grafito: #2A2B2E;
  --blanco: #FFFFFF;
  --niebla: #EFEFED;
  --niebla-2: #E4E4E1;
  --linea: #D9DAD7;
  --piedra: #63666B;      /* texto secundario sobre blanco (contraste AA) */
  --plata: #C6C9CE;
  --plata-osc: #9DA1A7;
  --texto-claro: #B7BAC0; /* texto secundario sobre carbón */

  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --sec: clamp(56px, 7vw, 96px);
  --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--blanco);
  color: var(--carbon);
  font: 400 1rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.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; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 100; background: var(--carbon); color: var(--blanco); padding: 10px 16px; border-radius: var(--radius); text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--carbon); outline-offset: 3px; }

/* ---------- Tipografía ---------- */
h1 { font-size: clamp(2.75rem, 6.6vw, 5.4rem); line-height: .98; letter-spacing: -0.045em; font-weight: 800; }
h2 { font-size: clamp(2rem, 4.4vw, 3.5rem); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800; }
h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
.lead { font-size: clamp(1.06rem, 1.5vw, 1.25rem); line-height: 1.55; color: var(--piedra); max-width: 34em; }
.section-intro { font-size: 1.125rem; color: var(--piedra); max-width: 36em; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 24px; border-radius: var(--radius);
  font-weight: 700; font-size: .98rem; text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-dark { background: var(--carbon); color: var(--blanco); }
.btn-dark:hover { background: var(--grafito); }
.btn-line { border-color: var(--carbon); color: var(--carbon); background: transparent; }
.btn-line:hover { background: var(--carbon); color: var(--blanco); }
.btn-light { background: var(--blanco); color: var(--carbon); }
.btn-light:hover { background: var(--niebla); }
.text-link { font-weight: 600; color: var(--piedra); text-underline-offset: 4px; }
.text-link:hover { color: var(--carbon); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--linea); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--carbon); }
.brand-mark { width: 30px; height: 30px; }
.brand-name { font-weight: 800; font-size: 1.3rem; letter-spacing: -0.04em; }
.header-cta { min-height: 42px; padding: 0 20px; font-size: .92rem; }

/* ---------- Hero ---------- */
.hero { padding: clamp(32px, 6vw, 72px) 0 clamp(40px, 5vw, 72px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero-copy h1 { max-width: 9.5em; }
.hero-copy .lead { margin-top: 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-note { margin-top: 28px; font-size: .92rem; color: var(--piedra); max-width: 30em; padding-left: 14px; border-left: 2px solid var(--plata); }
.hero-visual { background: var(--niebla); border-radius: 4px; overflow: hidden; aspect-ratio: 1 / 1; }
.hero-svg { width: 100%; height: 100%; }

/* Animación única del toque: el celular se acerca, salen las ondas y aparece la pantalla */
.phone { animation: acercar 1.1s cubic-bezier(.2, .7, .2, 1) .25s both; }
.ring { transform-box: fill-box; transform-origin: center; opacity: 0; animation: onda 1.4s ease-out 1.05s both; }
.r2 { animation-delay: 1.2s; }
.r3 { animation-delay: 1.35s; }
.screen { animation: aparecer .5s ease 1.25s both; }
@keyframes acercar { from { transform: translate(70px, -46px); } to { transform: none; } }
@keyframes onda { 0% { opacity: 0; transform: scale(.55); } 35% { opacity: .9; } 100% { opacity: .28; transform: scale(1); } }
@keyframes aparecer { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .phone, .ring, .screen { animation: none; }
  .ring { opacity: .28; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { aspect-ratio: 5 / 4; }
  .hero-svg { height: 100%; }
}

/* ---------- Secciones ---------- */
.section { padding: var(--sec) 0; }
.section-tint { background: var(--niebla); }
.section h2 { margin-bottom: clamp(32px, 4vw, 48px); }

/* ---------- Productos ---------- */
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 48px); }
.product-media { background: var(--niebla); aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 22px; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-media .pos-bajo { object-position: center 85%; }
.product h3 { font-size: 1.3rem; }
.product p { margin: 10px 0 14px; color: var(--piedra); }
@media (max-width: 820px) { .products { grid-template-columns: 1fr; } .product-media { aspect-ratio: 16 / 9; } }

.custom {
  margin-top: clamp(48px, 6vw, 72px); padding: clamp(28px, 4vw, 44px);
  background: var(--carbon); color: var(--blanco); border-radius: 4px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap;
}
.custom > div { max-width: 40em; }
.custom h3 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
.custom p { margin-top: 10px; color: var(--texto-claro); }
.custom :focus-visible { outline-color: var(--blanco); }

/* ---------- Cómo funciona ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); }
.steps li { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: baseline; }
.steps h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
.steps p { grid-column: 2; color: var(--piedra); }
.step-n { font-size: .95rem; font-weight: 800; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--carbon); display: inline-grid; place-items: center; transform: translateY(-2px); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Contacto ---------- */
.contact { background: var(--carbon); color: var(--blanco); padding: var(--sec) 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 112px); align-items: start; }
.contact-copy h2 { max-width: 9em; }
.contact-copy > p { margin-top: 24px; color: var(--texto-claro); font-size: 1.1rem; max-width: 30em; }
.contact-direct { margin-top: 40px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.contact-mail { color: var(--blanco); font-weight: 600; font-size: 1.1rem; text-underline-offset: 5px; text-decoration-color: var(--plata-osc); }
.contact-mail:hover { text-decoration-color: var(--blanco); }
.contact :focus-visible { outline-color: var(--blanco); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.form { background: var(--blanco); color: var(--carbon); border-radius: 4px; padding: clamp(24px, 4vw, 44px); display: grid; gap: 20px; }
.form :focus-visible { outline-color: var(--carbon); }
.field { display: grid; gap: 8px; align-content: start; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field label { font-weight: 700; font-size: .92rem; }
.opt { font-weight: 500; color: var(--piedra); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: var(--blanco); border: 1.5px solid var(--linea); border-radius: 6px;
  transition: border-color .15s ease;
}
.field textarea { resize: vertical; min-height: 140px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231C1D1F' stroke-width='1.8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--plata-osc); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--carbon); box-shadow: 0 0 0 3px rgba(28, 29, 31, .12); }
.field [aria-invalid="true"] { border-color: #B42318; }
.field-error { color: #B42318; font-size: .88rem; font-weight: 600; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.btn-submit { justify-self: start; min-width: 200px; }
.btn-submit[disabled] { opacity: .6; cursor: progress; }
.form-status { font-weight: 600; min-height: 1.6em; }
.form-status.is-ok { color: #1E6B3A; }
.form-status.is-error { color: #B42318; }

/* ---------- Footer ---------- */
.site-footer { background: var(--carbon); color: var(--texto-claro); border-top: 1px solid #34363A; padding: 24px 0; font-size: .92rem; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--blanco); text-decoration: underline; text-underline-offset: 4px; }
.site-footer :focus-visible { outline-color: var(--blanco); }

/* ---------- 404 ---------- */
.nf { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: 28px; padding: 48px 0; }
.nf h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); max-width: 11em; }
.nf .actions { margin-top: 8px; }
