/* La Plotería — estilo limpio de estudio: mucho aire, tipografía fina y una sola nota de color
   (el verde de la marca) usada en detalles. Las muestras de color del acrílico dan el toque propio del oficio. */
:root {
  --bg: #f7f7f4;          /* blanco cálido, apenas verdoso */
  --surface: #ffffff;
  --ink: #16181a;         /* carbón */
  --muted: #62666a;
  --hairline: #e4e5e0;
  --accent: #9fcb2a;      /* verde de la marca, solo en detalles */
  --accent-soft: #eef6d6;
  --cta: #b11f3f;         /* vino llamativo, solo en botones de acción */
  --cta-deep: #7e1430;
  --price: #16181a;
  --shadow: 0 1px 2px rgb(22 24 26 / .04), 0 8px 24px rgb(22 24 26 / .06);
  --font-display: "Plus Jakarta Sans", "Manrope", "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "DM Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", Consolas, monospace;
  --r: 14px;
  --wrap: 1180px;
}
:root { color-scheme: light; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap {
  max-width: var(--wrap); margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; text-wrap: balance; margin: 0; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.4rem, 6.2vw, 4.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 650; }
h3 { font-size: 1.1rem; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0; max-width: 62ch; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* Encabezado */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--hairline);
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 750; font-size: 1.1rem; letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; }
.brand-mark { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-size: 1.05rem; font-weight: 800; }
.nav { display: flex; gap: 2px; align-items: center; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 999px; font-size: 0.95rem; color: var(--muted); transition: color .2s, background .2s; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--surface); box-shadow: var(--shadow); }
.nav a.nav-cta { background: linear-gradient(135deg, var(--cta), var(--cta-deep)); color: #fff; margin-left: 8px; font-weight: 600; }
.nav a.nav-cta:hover { opacity: .88; }
@media (max-width: 760px) {
  .site-header .wrap { flex-wrap: wrap; padding-block: 10px; }
  .nav { width: 100%; overflow-x: auto; scrollbar-width: none; margin-inline: -4px; }
  .nav a { white-space: nowrap; padding: 6px 10px; }
}

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px;
  border-radius: 999px; font-weight: 600; text-decoration: none; border: 1px solid var(--hairline);
  font-family: var(--font-body); font-size: 1rem; cursor: pointer; background: var(--surface); color: var(--ink);
  transition: transform .2s, box-shadow .2s, opacity .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-primary { background: linear-gradient(135deg, var(--cta), var(--cta-deep)); border-color: transparent; color: #fff;
  box-shadow: 0 6px 18px rgb(140 20 45 / .28); }
.btn-primary:hover { box-shadow: 0 10px 26px rgb(140 20 45 / .38); }
.btn-primary::after { content: "→"; transition: transform .2s; }
.btn-primary:hover::after { transform: translateX(3px); }
.btn:disabled { opacity: .5; cursor: progress; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Portada */
.hero { position: relative; overflow: hidden; padding-block: clamp(56px, 9vw, 120px) clamp(56px, 8vw, 104px);
  background:
    radial-gradient(55% 70% at 88% 18%, #e4f3bd 0%, transparent 62%),
    radial-gradient(45% 55% at 5% 100%, #eef5df 0%, transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero-grid > * { min-width: 0; }
.hero h1 { max-width: 14ch; margin-top: 22px; font-weight: 800; letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; background: linear-gradient(95deg, #4f7d0c, #8fbf1d 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); margin-block: 22px 34px; max-width: 48ch; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px; font-size: .85rem; font-weight: 600;
  background: rgb(255 255 255 / .7); border: 1px solid var(--hairline); backdrop-filter: blur(8px); }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero-cards { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hero-cards::before { content: ""; position: absolute; inset: 10% 5%; border-radius: 50%; background: radial-gradient(#b9e05a, transparent 70%); filter: blur(50px); opacity: .55; z-index: 0; }
.glass { position: relative; z-index: 1; display: grid; gap: 6px; align-content: end; min-height: 150px; padding: 22px; border-radius: 22px;
  background: rgb(255 255 255 / .62); border: 1px solid rgb(255 255 255 / .9); box-shadow: 0 10px 40px rgb(40 60 10 / .08);
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); }
.glass:nth-child(even) { transform: translateY(28px); }
.glass strong { font-family: var(--font-display); font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.glass span { color: var(--muted); font-size: .92rem; line-height: 1.4; }
.hero-media { position: relative; z-index: 1; }
.hero-media::before { content: ""; position: absolute; inset: -6% -4%; border-radius: 50%; background: radial-gradient(#b9e05a, transparent 70%); filter: blur(50px); opacity: .5; z-index: -1; }
.hero-media img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; border-radius: 28px; box-shadow: 0 30px 60px rgb(20 30 10 / .18); }
.hero-media .glass { position: absolute; min-height: 0; padding: 16px 20px; }
.hero-media .g-a { left: -28px; bottom: 36px; }
.hero-media .g-b { right: -18px; top: 30px; transform: none; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media .g-a { left: 12px; bottom: 12px; } .hero-media .g-b { right: 12px; top: 12px; }
  .glass { min-height: 120px; padding: 18px; }
  .glass:nth-child(even) { transform: none; }
}

section.block { padding-block: clamp(56px, 8vw, 104px); }
.block-head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 44px); }
.block-head p { color: var(--muted); font-size: 1.08rem; }
.band { background: var(--surface); border-block: 1px solid var(--hairline); }

/* Tipos de trabajo */
.kinds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 980px) { .kinds { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .kinds { grid-template-columns: 1fr; } }
.kind { position: relative; text-decoration: none; display: grid; align-content: start; border-radius: 20px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--hairline); transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s, border-color .3s; }
.kind:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgb(22 24 26 / .1); border-color: transparent; }
.kind .thumb { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--hairline); }
.kind .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.kind:hover .thumb img { transform: scale(1.06); }
.kind .ico { position: absolute; left: 16px; top: -22px; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--surface); color: #4f7d0c; box-shadow: 0 6px 16px rgb(0 0 0 / .12); transition: background .3s, color .3s; }
.kind:hover .ico { background: var(--accent); color: #16181a; }
.kind .ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.kind-body { position: relative; display: grid; gap: 8px; padding: 32px 20px 20px; }
.kind p { color: var(--muted); font-size: .95rem; line-height: 1.5; }
.kind .go { margin-top: 4px; font-size: .88rem; font-weight: 600; color: var(--muted); transition: color .2s; }
.kind:hover .go { color: var(--ink); }
.ph { width: 100%; height: 100%; display: grid; place-items: end start; padding: 16px; font-size: .85rem; color: var(--muted);
  background: linear-gradient(160deg, var(--surface), var(--hairline)); }

/* Pasos */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); counter-reset: step; padding: 0; margin: 0; }
.steps li { list-style: none; display: grid; gap: 10px; padding: 26px; border-radius: 20px; background: var(--bg); align-content: start; }
.steps li::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: transparent; -webkit-text-stroke: 1.2px #8fbf1d; margin-bottom: 8px; }
.steps p { color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Llamado final */
.cta-panel { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(32px, 6vw, 64px); display: grid; grid-template-columns: 1.4fr auto; gap: 24px; align-items: center;
  background: linear-gradient(120deg, #eef7d6 0%, #f9fbf3 55%, #e3f1bd 100%); border: 1px solid #dfeec0; }
.cta-panel > * { min-width: 0; position: relative; }
.cta-panel::after { content: ""; position: absolute; width: 320px; height: 320px; right: -80px; top: -120px; border-radius: 50%; background: radial-gradient(#c7e86f, transparent 70%); opacity: .6; filter: blur(20px); }
.cta-panel p { color: var(--muted); margin-top: 12px; }
@media (max-width: 760px) { .cta-panel { grid-template-columns: 1fr; } .cta-panel .btn { justify-self: start; } }

/* Productos */
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.product { background: var(--surface); border-radius: calc(var(--r) * 1.3); padding: clamp(22px, 3vw, 32px); display: grid; gap: 18px; align-content: start; box-shadow: var(--shadow); }
.product > * { min-width: 0; }
.product p { color: var(--muted); }
.price { font-family: var(--font-display); font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; color: var(--price); font-variant-numeric: tabular-nums; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .9rem; }
.field input, .field select, .field textarea {
  font: inherit; padding: 12px 14px; border: 1px solid var(--hairline); border-radius: 10px;
  background: var(--bg); color: var(--ink); width: 100%; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--accent-soft); }
.field textarea { min-height: 140px; resize: vertical; }
.calc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.calc .field input { font-family: var(--font-mono); }
@media (max-width: 420px) { .calc { grid-template-columns: 1fr 1fr; } }
.total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 1px solid var(--hairline); padding-top: 16px; flex-wrap: wrap; }
.total .mono { color: var(--muted); }
.code { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); }
.calc.calc-2 { grid-template-columns: 2fr 1fr; }
.size-table { border: 1px solid var(--hairline); border-radius: 10px; padding: 10px 14px; font-size: .9rem; }
.size-table summary { cursor: pointer; font-weight: 600; }
.size-table table { width: 100%; border-collapse: collapse; margin: 10px 0 6px; }
.size-table td { padding: 6px 0; border-bottom: 1px solid var(--hairline); }
.size-table td + td { text-align: right; }
.size-table .muted, .size-table p { color: var(--muted); }
.size-table p { margin: 6px 0 0; font-size: .82rem; }

/* Formulario */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-card { background: var(--surface); border-radius: calc(var(--r) * 1.3); padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); }
.status { padding: 14px 16px; border-radius: 10px; }
.status.ok { background: var(--accent-soft); }
.status.err { background: color-mix(in srgb, #d94b35 12%, transparent); }
.hp { position: absolute; left: -9999px; }
.page-head { padding-block: clamp(48px, 7vw, 88px) clamp(24px, 3vw, 36px); display: grid; gap: 14px; }
.page-head p { color: var(--muted); font-size: 1.1rem; }

/* Galería */
.gal-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.gal-nav a { text-decoration: none; padding: 8px 14px; border-radius: 999px; font-size: .9rem; background: var(--surface); border: 1px solid var(--hairline); transition: border-color .2s; }
.gal-nav a:hover { border-color: var(--ink); }
.gal-section { scroll-margin-top: 90px; display: grid; gap: 18px; padding-block: 40px; border-top: 1px solid var(--hairline); }
.gal-section p { color: var(--muted); }
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.gal-grid .item { aspect-ratio: 1; max-width: 100%; overflow: hidden; border-radius: 10px; background: var(--hairline); }
.gal-grid .item { display: block; cursor: zoom-in; }
.gal-grid .item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gal-grid .item:hover img { transform: scale(1.04); }
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgb(10 12 10 / .88); display: grid; place-items: center; padding: 24px; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; }
.lightbox button { position: absolute; top: 16px; right: 20px; background: none; border: 0; color: #fff; font-size: 2.2rem; cursor: pointer; }

/* Artículo */
.article { display: grid; gap: 20px; padding-block: clamp(48px, 7vw, 88px); max-width: 760px; }
.article h1 { font-size: clamp(2rem, 4.8vw, 3.1rem); }
.article h2 { font-size: 1.5rem; margin-top: 18px; }
.article p, .article li { font-size: 1.06rem; }
.article ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.article table { border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 320px; }
.article th, .article td { text-align: left; padding: 10px 16px 10px 0; border-bottom: 1px solid var(--hairline); }
.article th { font-size: .85rem; color: var(--muted); font-weight: 600; }
.table-wrap { overflow-x: auto; }
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.post-card { display: grid; gap: 10px; background: var(--surface); border-radius: var(--r); padding: 26px; text-decoration: none; box-shadow: var(--shadow); transition: transform .2s; }
.post-card:hover { transform: translateY(-2px); }
.post-card p { color: var(--muted); }

/* Pie */
.site-footer { background: var(--surface); border-top: 1px solid var(--hairline); padding-block: 56px 40px; margin-top: 64px; }
.site-footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer .wrap > * { min-width: 0; display: grid; gap: 8px; align-content: start; }
.site-footer a { text-decoration: none; color: var(--muted); }
.site-footer a:hover { color: var(--ink); }
.site-footer .label { margin-bottom: 6px; }
.site-footer strong { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: -0.02em; }
.site-footer span { color: var(--muted); }
@media (max-width: 720px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* WhatsApp flotante */
.wa {
  position: fixed; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 40; width: 54px; height: 54px; border-radius: 50%; background: #25d366; display: grid; place-items: center;
  box-shadow: 0 6px 20px rgb(0 0 0 / .18); transition: transform .2s;
}
.wa:hover { transform: scale(1.06); }
.wa svg { width: 28px; height: 28px; fill: #fff; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
