/* =========================================================
   Mantillo del Bosque · "el jardín respira"
   ========================================================= */
:root {
  --paper: #f4f6f0;
  --paper-2: #eaf0e4;
  --white: #ffffff;
  --ink: #1b251f;
  --ink-2: #3e4b42;
  --muted: #56645b;
  --line: #d6ddd3;
  --green: #2d7849;
  --green-d: #1f5a35;
  --green-l: #6aa56f;
  --mint: #e1eee3;
  --forest: #17351f;
  --forest-2: #10261a;
  --soil: #2b1d14;
  --soil-2: #3a281c;
  --soil-3: #4a3424;
  --sand: #d9b48f;
  --clay: #6a4931;
  --cream: #f4ece2;
  --gold: #b7791f;
  --wa: #1f8f4e;

  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Kalam", "Segoe Print", cursive;

  --wrap: 1200px;
  --gutter: max(16px, 3vw);
  --radius: 20px;
  --ease-grow: cubic-bezier(.2, 1.25, .35, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
a { color: var(--green); }
a:hover { color: var(--green-d); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.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: 12px; top: -60px; z-index: 100; background: var(--forest); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--green);
}
.eyebrow::before {
  content: ""; width: 18px; height: 18px; flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 22V11c0-4 3-7 8-7 0 5-3 8-8 8M12 15c0-3.5-2.5-6-7-6 0 4 2.5 6 7 6' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 22V11c0-4 3-7 8-7 0 5-3 8-8 8M12 15c0-3.5-2.5-6-7-6 0 4 2.5 6 7 6' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.on-dark .eyebrow, .eyebrow.light { color: var(--sand); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(32px, 3.8vw, 50px); line-height: 1.08; }
h3 { font-size: 28px; line-height: 1.15; }
p { margin: 0; }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--green); --fg: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  background: var(--bg); color: var(--fg); border: 2px solid var(--bg);
  font-weight: 700; text-decoration: none; cursor: pointer; isolation: isolate; overflow: hidden;
  transition: transform .35s var(--ease-grow), background-color .25s, color .25s, border-color .25s;
}
.btn:hover { color: var(--fg); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
/* brote que crece desde el borde inferior del botón */
.btn::after {
  content: ""; position: absolute; z-index: -1; left: 50%; bottom: -60%; width: 140%; aspect-ratio: 1;
  border-radius: 50%; background: var(--green-d); transform: translateX(-50%) scale(0);
  transition: transform .55s var(--ease-out);
}
.btn:hover::after { transform: translateX(-50%) scale(1); }
.btn.ghost { --bg: transparent; --fg: var(--forest); border-color: var(--forest); }
.btn.ghost::after { background: var(--forest); }
.btn.ghost:hover { --fg: #fff; }
.btn.light { --bg: var(--paper); --fg: var(--forest); }
.btn.light::after { background: var(--mint); }
.btn.sm { min-height: 44px; padding: 10px 20px; font-size: 16px; }
.btn svg { flex: none; }

/* ---------- Barra superior ---------- */
.topbar { background: var(--forest); color: #dfeadf; font-size: 14px; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding-top: 8px; padding-bottom: 8px; }
.live { display: inline-flex; align-items: center; gap: 8px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #8fd19e; box-shadow: 0 0 0 0 rgba(143, 209, 158, .7); animation: pulse 2.2s infinite; flex: none; }
.live[data-open="false"] .live-dot { background: #d9a36a; animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(143, 209, 158, .6); } 70% { box-shadow: 0 0 0 9px rgba(143, 209, 158, 0); } 100% { box-shadow: 0 0 0 0 rgba(143, 209, 158, 0); } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
/* el desenfoque va en un pseudo-elemento: si estuviera en el header, el menú fijo del celular quedaría encerrado */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--paper) 88%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(23, 53, 31, .5); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 44px; height: 44px; flex: none; overflow: visible; }
.brand-mark .ring { stroke-dasharray: 114; stroke-dashoffset: 114; animation: draw 1.4s .1s var(--ease-out) forwards; }
.brand-mark .stem { stroke-dasharray: 18; stroke-dashoffset: 18; animation: draw .7s .6s var(--ease-out) forwards; }
.brand-mark .leaf { transform-box: fill-box; transform: scale(0); animation: leaf-pop .8s var(--ease-grow) forwards; }
.brand-mark .leaf.l { transform-origin: 100% 100%; animation-delay: 1s; }
.brand-mark .leaf.r { transform-origin: 0% 100%; animation-delay: 1.15s; }
.brand:hover .leaf.l { animation: leaf-pop .8s var(--ease-grow) forwards, sway-l 1.6s 0s ease-in-out infinite alternate; }
.brand:hover .leaf.r { animation: leaf-pop .8s var(--ease-grow) forwards, sway-r 1.6s 0s ease-in-out infinite alternate; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes leaf-pop { to { transform: scale(1); } }
@keyframes sway-l { from { transform: rotate(0); } to { transform: rotate(-12deg); } }
@keyframes sway-r { from { transform: rotate(0); } to { transform: rotate(12deg); } }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 22px; }
.brand-tag { font-size: 13px; color: var(--muted); font-style: italic; }
.nav { display: flex; align-items: center; gap: 4px 26px; }
.nav a:not(.btn) { position: relative; color: var(--ink); text-decoration: none; font-size: 16px; padding: 6px 0; white-space: nowrap; }
.nav .btn { white-space: nowrap; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease-out);
}
.nav a:not(.btn):hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }
.menu-btn { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); cursor: pointer; align-items: center; justify-content: center; }
.menu-btn span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .3s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s, top .3s; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { top: 0; transform: rotate(45deg); }
.menu-open .menu-btn span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1100px) {
  .menu-btn { display: inline-flex; }
  .nav {
    position: fixed; inset: 0 0 0 0; top: var(--header-h, 74px); z-index: 39;
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 120px;
    background: var(--paper); overflow-y: auto;
    clip-path: circle(0% at calc(100% - 40px) 0); visibility: hidden;
    transition: clip-path .6s var(--ease-out), visibility 0s .6s;
  }
  .menu-open .nav { clip-path: circle(150% at calc(100% - 40px) 0); visibility: visible; transition: clip-path .7s var(--ease-out), visibility 0s; }
  .nav a:not(.btn) { font-family: var(--serif); font-size: 30px; padding: 14px 0; border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(16px); transition: opacity .4s, transform .5s var(--ease-grow); }
  .nav a:not(.btn)::after { display: none; }
  .menu-open .nav a:not(.btn) { opacity: 1; transform: none; }
  .menu-open .nav a:nth-child(2) { transition-delay: .05s; } .menu-open .nav a:nth-child(3) { transition-delay: .1s; }
  .menu-open .nav a:nth-child(4) { transition-delay: .15s; } .menu-open .nav a:nth-child(5) { transition-delay: .2s; }
  .nav .btn { margin-top: 24px; }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 420px) { .brand-name { font-size: 19px; } .brand-mark { width: 38px; height: 38px; } }

/* ---------- Revelado "brote" de títulos ---------- */
.sprout-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .04em .02em .2em; margin: -.04em -.02em -.2em; }
.sprout-words .w > span { display: inline-block; transform: translateY(105%) rotate(6deg); transform-origin: 0 100%; transition: transform .9s var(--ease-grow); transition-delay: calc(var(--i, 0) * 55ms); }
.sprout-words.in .w > span { transform: none; }
.rise { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }
.rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .sprout-words .w > span, .rise { transform: none !important; opacity: 1 !important; transition: none !important; }
}
.no-js .rise { opacity: 1; transform: none; }
.no-js .sprout-words .w > span { transform: none; }

/* ---------- Portada ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero-sky { position: absolute; inset: 0; z-index: -2; background: radial-gradient(120% 80% at 75% 0%, var(--sky-a, #fbfcf6) 0%, var(--paper) 60%); transition: background 2s; }
.hero[data-time="dusk"] { --sky-a: #fbe9cf; }
.hero[data-time="night"] { --sky-a: #dfe6dc; }
.hero canvas.particles { position: absolute; inset: 0; z-index: 0; pointer-events: none; width: 100%; height: 100%; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 56px; padding-top: 56px; padding-bottom: 150px; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; position: relative; z-index: 4; }
.hero h1 { font-size: clamp(42px, 5.6vw, 76px); line-height: 1.02; }
.hero h1 em { font-style: normal; color: var(--green); position: relative; white-space: nowrap; }
.hero h1 em svg { position: absolute; left: -2%; bottom: -.12em; width: 104%; height: .4em; overflow: visible; }
.hero h1 em svg path { stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 1.6s 1.2s var(--ease-out) forwards; }
.hero-lead { font-size: 20px; color: var(--ink-2); max-width: 34rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.rating { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: 15px; color: var(--muted); }
.rating strong { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.stars { color: var(--gold); letter-spacing: 2px; }

.hero-visual { position: relative; z-index: 1; }
.hero-photo {
  position: relative; border-radius: 220px 220px 28px 28px; overflow: hidden; height: min(600px, 68vh); min-height: 420px;
  box-shadow: 0 40px 80px -40px rgba(23, 53, 31, .55);
  transform: translateY(var(--py, 0px));
}
.hero-photo img { width: 100%; height: 110%; object-fit: cover; transform: translateY(calc(var(--py, 0px) * -.5)) scale(1.04); }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(16, 38, 26, .35)); }
.hero-badge {
  position: absolute; left: -28px; bottom: 96px; z-index: 5; max-width: 270px;
  background: var(--paper); border-radius: 18px; padding: 16px 18px 16px 16px; display: flex; gap: 12px; align-items: flex-start;
  box-shadow: 0 20px 40px -20px rgba(23, 53, 31, .45);
  animation: bob 6s ease-in-out infinite;
}
.hero-badge svg { flex: none; }
.hero-badge b { display: block; font-family: var(--serif); font-weight: 400; font-size: 21px; line-height: 1.15; color: var(--forest); }
.hero-badge span { font-size: 14px; color: var(--muted); line-height: 1.4; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-10px) rotate(.5deg); } }
.hero-stamp { position: absolute; right: -18px; top: 28px; z-index: 5; width: 124px; height: 124px; animation: spin 28s linear infinite; }
.hero-stamp text { font-family: var(--sans); font-weight: 700; font-size: 10.5px; fill: var(--forest); text-transform: uppercase; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-garden { position: absolute; left: 0; right: 0; bottom: 0; height: 300px; z-index: 2; pointer-events: none; }
.hero-garden svg { width: 100%; height: 100%; overflow: visible; }
.ground { position: absolute; left: 0; right: 0; bottom: 0; height: 26px; z-index: 2; background: var(--soil); }
.ground::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 20% 40%, rgba(217, 180, 143, .25) 1px, transparent 1.5px), radial-gradient(circle at 70% 70%, rgba(0, 0, 0, .35) 1px, transparent 1.5px); background-size: 14px 11px, 9px 13px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; padding-top: 28px; padding-bottom: 120px; }
  .hero-photo { height: 380px; min-height: 0; border-radius: 180px 180px 24px 24px; }
  .hero-badge { left: 12px; bottom: 70px; max-width: 240px; }
  .hero-stamp { right: 6px; top: 10px; width: 100px; height: 100px; }
  .hero-garden { height: 220px; }
  .hero-lead { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { .hero-badge, .hero-stamp { animation: none; } }

/* ---------- Cuatro líneas ---------- */
.lines { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; z-index: 3; }
.lines .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.line-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 30px 24px; text-decoration: none; color: var(--ink); border-right: 1px solid var(--line); overflow: hidden; }
.line-card:last-child { border-right: 0; }
.line-card:hover { color: var(--ink); }
.line-card::before { content: ""; position: absolute; inset: auto 0 0 0; height: 0; background: var(--mint); transition: height .5s var(--ease-out); z-index: 0; }
.line-card:hover::before { height: 100%; }
.line-card > * { position: relative; }
.line-card svg path, .line-card svg circle, .line-card svg rect { stroke-dasharray: 60; stroke-dashoffset: 0; }
.line-card:hover svg path, .line-card:hover svg circle, .line-card:hover svg rect { animation: redraw 1s var(--ease-out); }
@keyframes redraw { from { stroke-dashoffset: 60; } to { stroke-dashoffset: 0; } }
.line-card b { font-size: 18px; }
.line-card span { font-size: 15px; color: var(--muted); }
.line-card .arrow { position: absolute; right: 22px; top: 30px; opacity: 0; transform: translateX(-8px); transition: .4s var(--ease-out); color: var(--green); }
.line-card:hover .arrow { opacity: 1; transform: none; }
@media (max-width: 900px) {
  .lines .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0; }
  .line-card { padding: 22px 16px; border-bottom: 1px solid var(--line); }
  .line-card:nth-child(2n) { border-right: 0; }
  .line-card:nth-child(n+3) { border-bottom: 0; }
  .line-card b { font-size: 16px; } .line-card span { font-size: 14px; }
}

/* ---------- Secciones ---------- */
.section { padding-top: 110px; padding-bottom: 110px; position: relative; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 18px 48px; margin-bottom: 44px; }
.section-head > div { display: flex; flex-direction: column; gap: 14px; max-width: 680px; }
.section-head p { max-width: 380px; color: var(--muted); }
@media (max-width: 700px) { .section { padding-top: 72px; padding-bottom: 72px; } .section-head { margin-bottom: 30px; } }

/* Servicios */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.service {
  position: relative; overflow: hidden; border-radius: 26px; padding: 36px; display: flex; flex-direction: column; gap: 18px;
  background: var(--white); border: 1px solid var(--line);
  transition: transform .5s var(--ease-out), box-shadow .5s;
}
.service:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -36px rgba(23, 53, 31, .5); }
.service.dark { background: var(--forest); color: #e6efe6; border-color: var(--forest); }
.service.dark h3 { color: #fff; }
.service .who { font-size: 14px; font-weight: 700; color: var(--muted); }
.service.dark .who { color: #a9c7b0; }
.service ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; font-size: 16px; }
.service li { display: flex; gap: 10px; align-items: flex-start; }
.service li::before { content: ""; flex: none; width: 10px; height: 14px; margin-top: 6px; border-radius: 0 100% 0 100%; background: var(--green-l); transform: rotate(-10deg); }
.service .btn { align-self: flex-start; margin-top: 8px; }
.service-plant { position: absolute; right: -10px; bottom: -6px; width: 170px; height: 210px; pointer-events: none; opacity: .9; }
.service > *:not(.service-plant) { position: relative; z-index: 1; }
@media (max-width: 800px) {
  .services { grid-template-columns: 1fr; }
  .service { padding: 26px 22px; }
  .service-plant { width: 120px; height: 150px; opacity: .55; }
}
.places { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 30px; margin-top: 38px; }
.places small { font-size: 14px; color: var(--muted); }
.places span { font-family: var(--serif); font-size: 21px; color: var(--ink-2); position: relative; }
.places span::before { content: "✿"; margin-right: 12px; font-size: 13px; color: var(--green-l); font-family: var(--sans); vertical-align: 3px; }
.places { gap: 10px 26px; }

/* ---------- Tierras (sección de suelo) ---------- */
.soil { position: relative; background: var(--soil); color: #efe6dc; isolation: isolate; }
.soil-texture {
  position: absolute; inset: 0; z-index: -1; opacity: .9;
  background-image:
    radial-gradient(circle at 30% 30%, rgba(217, 180, 143, .14) 1px, transparent 2px),
    radial-gradient(circle at 70% 60%, rgba(0, 0, 0, .35) 1.5px, transparent 2.5px),
    radial-gradient(circle at 50% 50%, rgba(106, 73, 49, .5) 2px, transparent 3px),
    linear-gradient(180deg, #2f2017 0%, #2b1d14 30%, #24180f 100%);
  background-size: 23px 19px, 31px 27px, 61px 53px, 100% 100%;
}
.soil-life { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.soil-life svg { width: 100%; height: 100%; }
.fringe { position: absolute; left: 0; right: 0; top: 0; height: 110px; transform: translateY(-100%); pointer-events: none; z-index: 2; }
.fringe svg { width: 100%; height: 100%; overflow: visible; }
.soil h2 { color: #fff; }
.soil .lead { color: #cdbfb1; max-width: 34rem; }
.soil-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: start; }
.soil-intro { display: flex; flex-direction: column; gap: 18px; }
.soil-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.soil-facts div { border-top: 1px solid rgba(217, 180, 143, .35); padding-top: 12px; }
.soil-facts b { display: block; font-family: var(--serif); font-weight: 400; font-size: 36px; color: var(--sand); line-height: 1; }
.soil-facts span { font-size: 14px; color: #cdbfb1; }
@media (max-width: 900px) { .soil-grid { grid-template-columns: 1fr; gap: 36px; } .soil-facts b { font-size: 30px; } }

/* Calculadora */
.calc { container-type: inline-size; background: var(--cream); color: var(--soil); border-radius: 26px; padding: 28px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); }
.calc-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.calc-title b { font-size: 19px; }
.calc-title small { font-size: 13px; color: #7a6352; }
.calc-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: center; }
.calc-fields { display: flex; flex-direction: column; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: #5b4636; font-weight: 700; }
.field .control { display: flex; align-items: center; background: #fff; border: 1px solid #d8c8b6; border-radius: 12px; min-height: 48px; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.field .control:focus-within { border-color: var(--clay); box-shadow: 0 0 0 3px rgba(106, 73, 49, .18); }
.field input, .field select { font: inherit; font-size: 17px; font-weight: 400; color: var(--soil); border: 0; background: transparent; padding: 10px 12px; width: 100%; min-width: 0; outline: none; }
.field select { cursor: pointer; }
.field .unit { padding: 0 12px; color: #7a6352; font-weight: 400; font-size: 15px; }
.step-btn { flex: none; width: 40px; height: 46px; border: 0; background: transparent; cursor: pointer; font-size: 20px; color: var(--clay); }
.step-btn:hover { background: #f6efe6; }
.cantero { width: 100%; aspect-ratio: 1.05; overflow: visible; }
.cantero text { font-family: var(--sans); paint-order: stroke; stroke: var(--cream); stroke-width: 4px; }
.cantero .soil-fill { transition: none; }
.calc-result { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 12px; border-top: 1px solid #d8c8b6; padding-top: 14px; }
.calc-result span { font-size: 15px; color: #5b4636; }
.calc-result b { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.1; }
.calc-note { font-size: 13px; color: #7a6352; }
.bags { display: flex; flex-wrap: wrap; gap: 4px; min-height: 26px; }
.bag { width: 16px; height: 22px; border-radius: 3px 3px 5px 5px; background: linear-gradient(180deg, #6a4931 0 22%, #8a6a4f 22% 100%); position: relative; transform-origin: 50% 100%; animation: bag-in .5s var(--ease-grow) both; animation-delay: calc(var(--i) * 25ms); }
.bag::after { content: ""; position: absolute; left: 4px; right: 4px; top: 9px; height: 6px; border-radius: 2px; background: #2d7849; opacity: .8; }
.bag.more { width: auto; padding: 0 6px; font-size: 12px; font-weight: 700; color: #fff; background: var(--clay); line-height: 22px; animation: none; }
.bag.more::after { display: none; }
@keyframes bag-in { from { transform: scale(0) translateY(-20px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 520px) { .calc { padding: 22px 18px; } }
@container (max-width: 500px) { .calc-body { grid-template-columns: 1fr; } .cantero { max-width: 300px; margin: 0 auto; order: -1; } }

.mixes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 56px; }
.mix {
  position: relative; overflow: hidden; border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 8px;
  background: var(--soil-2); border: 1px solid rgba(217, 180, 143, .18); text-decoration: none; color: inherit;
  transition: transform .5s var(--ease-out), border-color .3s;
}
.mix:hover { transform: translateY(-4px) rotate(-.4deg); border-color: var(--sand); color: inherit; }
.mix.star { border-color: var(--sand); }
.mix .grain { height: 64px; margin: -22px -22px 6px; background-color: var(--g1, #3d2a1d); background-image: radial-gradient(circle, var(--g2, #6a4931) 1.4px, transparent 2px), radial-gradient(circle, var(--g3, #1c120b) 1.1px, transparent 1.6px), radial-gradient(circle, var(--g4, transparent) 2px, transparent 2.6px); background-size: 9px 8px, 7px 11px, 17px 13px; background-position: 0 0, 3px 4px, 6px 2px; transition: background-position 1.2s var(--ease-out); }
.mix:hover .grain { background-position: 4px 6px, -2px 9px, 12px -3px; }
.mix .pill { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--sand); color: var(--soil); padding: 3px 10px; border-radius: 999px; }
.mix b { font-family: var(--serif); font-weight: 400; font-size: 22px; color: #fff; line-height: 1.2; }
.mix span { font-size: 15px; color: #cdbfb1; }
@media (max-width: 1000px) { .mixes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .mixes { grid-template-columns: 1fr; } }
.link-sand { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; color: var(--sand); font-weight: 700; }
.link-sand:hover { color: #f0d2b2; }
.link-sand svg { transition: transform .4s var(--ease-grow); }
.link-sand:hover svg { transform: translateX(5px); }

/* ---------- Vivero ---------- */
.vivero-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.vivero-copy { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 120px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 15px; background: var(--mint); color: #235c38; padding: 7px 15px; border-radius: 999px; transition: transform .35s var(--ease-grow), background .3s; cursor: default; }
.chip:hover { transform: translateY(-3px) rotate(-2deg); background: #cfe5d3; }
.season { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.season-head { display: flex; align-items: center; gap: 12px; }
.season-head svg { flex: none; }
.season-head b { display: block; font-size: 17px; }
.season-head small { color: var(--muted); font-size: 14px; }
.season ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 16px; }
.season li { display: flex; gap: 10px; }
.season li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--green-l); margin-top: 9px; }
.reels { position: relative; }
.reels-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.reels-grid > :nth-child(2) { margin-top: 64px; }
.reel { position: relative; border-radius: 22px; overflow: hidden; background: var(--forest); aspect-ratio: 9 / 16; max-height: 560px; width: 100%; box-shadow: 0 30px 60px -36px rgba(23, 53, 31, .6); }
.reel video, .reel img { width: 100%; height: 100%; object-fit: cover; }
.reel button.play {
  position: absolute; inset: 0; width: 100%; border: 0; padding: 0; cursor: pointer; background: transparent; color: #fff; text-align: left;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.reel button.play img { position: absolute; inset: 0; transition: transform 1.2s var(--ease-out); }
.reel:hover button.play img { transform: scale(1.05); }
.reel .cap { position: relative; padding: 70px 18px 18px; background: linear-gradient(transparent, rgba(10, 20, 12, .88)); font-weight: 700; font-size: 17px; display: flex; align-items: center; gap: 12px; line-height: 1.3; }
.reel .cap i { flex: none; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .18); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: grid; place-items: center; transition: transform .4s var(--ease-grow), background .3s; }
.reel:hover .cap i { transform: scale(1.12); background: var(--green); }
.reel .len { position: absolute; top: 14px; left: 14px; font-size: 13px; font-weight: 700; background: rgba(16, 38, 26, .6); color: #fff; padding: 3px 10px; border-radius: 999px; }
.flowerbed { position: relative; height: 170px; margin-top: -40px; pointer-events: none; z-index: 2; }
.flowerbed svg { width: 100%; height: 100%; overflow: visible; }
.bird { position: absolute; left: 0; top: 0; width: 64px; height: 64px; z-index: 6; pointer-events: none; will-change: transform; }
.bird .wing { transform-origin: 30px 26px; animation: flap .07s linear infinite alternate; }
@keyframes flap { from { transform: rotate(-35deg) scaleY(1); } to { transform: rotate(18deg) scaleY(.55); } }
@media (prefers-reduced-motion: reduce) { .bird { display: none; } }
@media (max-width: 900px) {
  .vivero-grid { grid-template-columns: 1fr; gap: 40px; }
  .vivero-copy { position: static; }
  .reels-grid > :nth-child(2) { margin-top: 36px; }
  .flowerbed { height: 130px; }
}

/* ---------- Nosotros ---------- */
.about { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.photos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.photos picture { overflow: hidden; border-radius: 22px; }
.photos picture:first-child { grid-column: span 3; }
.photos picture:last-child { grid-column: span 2; margin-top: 48px; }
.photos img { width: 100%; height: 440px; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.photos picture:hover img { transform: scale(1.05); }
.about-copy { display: flex; flex-direction: column; gap: 18px; }
.about-copy blockquote { margin: 6px 0 0; font-family: var(--serif); font-size: 23px; line-height: 1.35; color: var(--clay); }
.about-copy blockquote cite { display: block; font-family: var(--sans); font-style: normal; font-size: 14px; color: var(--muted); margin-top: 6px; }
.press { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); }
.press b { color: var(--ink); }
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .photos img { height: 280px; }
  .photos picture:last-child { margin-top: 28px; }
}

/* Anillos */
.rings-block { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 56px; align-items: center; margin-top: 100px; }
.rings { position: relative; aspect-ratio: 1; width: 100%; max-width: 420px; }
.rings svg { width: 100%; height: 100%; overflow: visible; }
.rings .ring-path { fill: none; stroke: #b98c62; stroke-width: 1.3; opacity: .85; }
.rings .ring-path.mark { stroke: var(--green); stroke-width: 2.4; opacity: 1; }
.rings .ring-path.hot { stroke: var(--gold); stroke-width: 3; }
.rings .center-num, .rings .center-sub { paint-order: stroke; stroke: #f1dcb8; stroke-linejoin: round; }
.rings .center-num { font-family: var(--serif); font-size: 64px; fill: var(--soil); stroke-width: 7px; }
.rings .center-sub { font-family: var(--sans); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; fill: var(--clay); font-weight: 700; stroke-width: 5px; }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.timeline li { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); cursor: default; transition: background .3s, padding .3s; border-radius: 12px; }
.timeline li:hover, .timeline li.hot { background: var(--paper); padding-left: 12px; padding-right: 12px; }
.timeline .yr { font-family: var(--serif); font-size: 26px; color: var(--green); line-height: 1.1; }
.timeline b { display: block; font-size: 17px; }
.timeline span { font-size: 15px; color: var(--muted); }
@media (max-width: 900px) { .rings-block { grid-template-columns: 1fr; gap: 28px; margin-top: 64px; } .rings { max-width: 320px; margin: 0 auto; } }

/* ---------- Opiniones: etiquetas de vivero ---------- */
.reviews-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.tags-wrap { position: relative; margin-top: 30px; }
.twine { position: absolute; left: 0; right: 0; top: 0; height: 60px; pointer-events: none; z-index: 1; }
.twine svg { width: 100%; height: 100%; overflow: visible; }
.tags {
  position: relative; z-index: 2; display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 26px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 40px;
  scroll-padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); margin: 0 calc(-1 * max(var(--gutter), (100vw - var(--wrap)) / 2 + var(--gutter)));
  scrollbar-width: none; cursor: grab;
}
.tags::-webkit-scrollbar { display: none; }
.tags.dragging { cursor: grabbing; scroll-snap-type: none; }
.tag {
  --rot: 0deg;
  flex: none; width: 300px; scroll-snap-align: start; position: relative; margin: 0;
  transform: rotate(var(--rot)); transform-origin: 50% -18px;
  background: #fbf8ef; color: var(--ink); border-radius: 10px 10px 18px 18px; padding: 34px 24px 24px;
  box-shadow: 0 18px 30px -18px rgba(23, 53, 31, .45), inset 0 0 0 1px rgba(23, 53, 31, .07);
  display: flex; flex-direction: column; gap: 12px; user-select: none;
}
.tag:nth-child(3n+2) { background: #eef6e9; }
.tag:nth-child(3n) { background: #f7efe3; }
.tag::before { content: ""; position: absolute; left: 50%; top: 12px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .25); }
.tag::after { content: ""; position: absolute; left: 50%; top: -18px; width: 1.5px; height: 31px; margin-left: -.75px; background: #a4865f; }
.tag .who { font-family: var(--hand); font-size: 24px; line-height: 1; color: var(--forest); }
.tag blockquote { margin: 0; font-size: 17px; line-height: 1.5; }
.tag figcaption { margin-top: auto; display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); }
@media (max-width: 520px) { .tag { width: 82vw; } }

/* ---------- Sucursales ---------- */
.branches { background: var(--forest); color: #e6efe6; position: relative; isolation: isolate; overflow: hidden; }
.branches h2 { color: #fff; }
.branches-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.branch { background: var(--paper); color: var(--ink); border-radius: 26px; overflow: hidden; display: flex; flex-direction: column; }
.map { position: relative; height: 220px; background: #dfe7dc; }
.map iframe { width: 100%; height: 100%; border: 0; filter: saturate(.75) hue-rotate(-8deg); }
.map .map-load { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; border: 0; background:
  repeating-linear-gradient(35deg, transparent 0 22px, rgba(45, 120, 73, .07) 22px 24px),
  repeating-linear-gradient(-55deg, transparent 0 40px, rgba(45, 120, 73, .08) 40px 43px), #dfe7dc; color: var(--forest); font-weight: 700; cursor: pointer; }
.map .map-load:hover { background-color: #d4e0d0; }
.branch-body { padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.branch-body .kind { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--green); font-weight: 700; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.branch-body .kind .live { text-transform: none; letter-spacing: 0; color: var(--ink-2); font-weight: 700; }
.branch-body .live-dot { box-shadow: none; }
.branch-body .addr { font-family: var(--serif); font-size: 27px; line-height: 1.15; }
.branch-body p { color: var(--muted); }
.branch-body .actions { padding-top: 8px; }
.branch .btn.ghost { border-color: var(--forest); }
.pay { margin-top: 28px; font-size: 15px; color: #a9c7b0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.pay span { display: inline-flex; align-items: center; gap: 8px; }
.canopy { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .9; }
.canopy svg { width: 100%; height: 100%; }
@media (max-width: 800px) { .branches-grid { grid-template-columns: 1fr; } .branch-body { padding: 22px 20px; } .branch-body .addr { font-size: 24px; } }

/* ---------- Pie ---------- */
.footer { position: relative; background: var(--forest-2); color: #a9c7b0; font-size: 15px; }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; padding-top: 40px; padding-bottom: 40px; }
.footer a { color: #dfeadf; }
.footer .brand-name { color: #fff; font-size: 20px; }
.footer .fringe { height: 70px; }

/* ---------- Barra fija en celular ---------- */
.dock { display: none; }
@media (max-width: 760px) {
  .dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
    padding: 10px 14px calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .94);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgba(23, 53, 31, .25);
    transform: translateY(110%); transition: transform .5s var(--ease-out);
  }
  .dock.show { transform: none; }
  .dock .btn { min-height: 48px; padding: 10px 12px; }
  body { padding-bottom: 0; }
  .footer .wrap { padding-bottom: 110px; }
}

/* ---------- Selector de WhatsApp ---------- */
.sheet { position: fixed; inset: 0; z-index: 60; display: grid; place-items: end center; background: rgba(16, 38, 26, .45); opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
.sheet.open { opacity: 1; visibility: visible; transition: opacity .3s; }
.sheet-card { width: min(460px, 100%); background: var(--paper); border-radius: 26px 26px 0 0; padding: 26px 22px calc(26px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; transform: translateY(40px); transition: transform .5s var(--ease-grow); }
@media (min-width: 700px) { .sheet { place-items: center; } .sheet-card { border-radius: 26px; } }
.sheet.open .sheet-card { transform: none; }
.sheet-card h3 { font-size: 25px; }
.sheet-card p { color: var(--muted); font-size: 15px; }
.wa-opt { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .2s, transform .3s var(--ease-grow); }
.wa-opt:hover { border-color: var(--green); color: var(--ink); transform: translateX(4px); }
.wa-opt i { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--mint); display: grid; place-items: center; color: var(--green); }
.wa-opt b { display: block; }
.wa-opt small { color: var(--muted); font-size: 14px; }
.sheet-close { align-self: center; border: 0; background: transparent; color: var(--muted); font-weight: 700; padding: 10px 16px; cursor: pointer; min-height: 44px; }

/* ---------- Páginas internas ---------- */
.page-hero { position: relative; padding-top: 56px; padding-bottom: 120px; overflow: hidden; isolation: isolate; }
.page-hero.soil { padding-bottom: 90px; }
.page-hero h1 { font-size: clamp(38px, 5vw, 64px); line-height: 1.05; max-width: 16ch; }
.page-hero .lead { font-size: 19px; max-width: 36rem; margin-top: 18px; }
.crumbs { font-size: 14px; margin-bottom: 18px; display: flex; gap: 8px; align-items: center; }
.crumbs a { color: inherit; opacity: .8; }

/* Catálogo de tierras */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.filter { border: 1px solid var(--line); background: var(--white); border-radius: 999px; min-height: 44px; padding: 8px 18px; cursor: pointer; font-size: 15px; transition: background .25s, color .25s, border-color .25s, transform .3s var(--ease-grow); }
.filter:hover { transform: translateY(-2px); }
.filter[aria-pressed="true"] { background: var(--forest); color: #fff; border-color: var(--forest); }
.catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.sku {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column;
  transition: transform .5s var(--ease-out), box-shadow .5s, opacity .4s;
}
.sku:hover { transform: translateY(-4px); box-shadow: 0 28px 50px -34px rgba(43, 29, 20, .6); }
.sku.hide { display: none; }
.sku .grain { height: 92px; background-color: var(--g1); background-image: radial-gradient(circle, var(--g2) 1.4px, transparent 2px), radial-gradient(circle, var(--g3) 1.1px, transparent 1.6px), radial-gradient(circle, var(--g4, transparent) 2.2px, transparent 2.8px); background-size: 9px 8px, 7px 11px, 17px 13px; position: relative; transition: background-position 1.4s var(--ease-out); }
.sku:hover .grain { background-position: 5px 7px, -3px 9px, 12px -4px; }
.sku .grain .pill { position: absolute; left: 14px; top: 14px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--sand); color: var(--soil); padding: 3px 10px; border-radius: 999px; }
.sku-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.sku h3 { font-size: 23px; }
.sku p { font-size: 15px; color: var(--ink-2); }
.sku .use { font-size: 14px; color: var(--muted); }
.sku .use b { color: var(--ink); }
.mixbar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; gap: 2px; margin-top: 4px; }
.mixbar i { display: block; height: 100%; transform-origin: left; animation: bar 1s var(--ease-out) both; }
@keyframes bar { from { transform: scaleX(0); } }
.mixlegend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--muted); }
.mixlegend span { display: inline-flex; align-items: center; gap: 6px; }
.mixlegend span::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--c); }
.sku-actions { margin-top: auto; padding-top: 6px; display: flex; gap: 8px; flex-wrap: wrap; }
.sku-actions .btn { min-height: 42px; padding: 8px 16px; font-size: 15px; }
.calc-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
@media (max-width: 900px) { .calc-wrap { grid-template-columns: 1fr; gap: 30px; } }
.note-box { margin-top: 34px; border: 1px dashed #c3cdc4; border-radius: 18px; padding: 18px 20px; font-size: 15px; color: var(--muted); display: flex; gap: 12px; }

/* Presupuesto */
.quote-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: start; }
.quote-form { display: flex; flex-direction: column; gap: 34px; }
.q { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 12px; }
.q legend, .q > .q-label { font-weight: 700; font-size: 18px; padding: 0; margin-bottom: 12px; display: flex; align-items: center; gap: 12px; }
.q-num { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; background: var(--white); border: 2px solid var(--line); color: var(--muted); transition: background .3s, border-color .3s, color .3s, transform .4s var(--ease-grow); }
.q.done .q-num { background: var(--green); border-color: var(--green); color: #fff; transform: rotate(-8deg) scale(1.06); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { min-height: 46px; padding: 9px 18px; border-radius: 999px; border: 1px solid #c3cdc4; background: var(--white); cursor: pointer; font-size: 16px; transition: background .25s, color .25s, border-color .25s, transform .35s var(--ease-grow); }
.opt:hover { border-color: var(--green); transform: translateY(-2px); }
.opt[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; font-weight: 700; }
.opts.boxes { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); }
.opts.boxes .opt { border-radius: 16px; min-height: 54px; }
.opts.boxes .opt[aria-pressed="true"] { background: var(--mint); color: var(--forest); border: 2px solid var(--green); }
.txt { font: inherit; font-size: 17px; color: var(--ink); background: var(--white); border: 1px solid #c3cdc4; border-radius: 14px; padding: 12px 14px; min-height: 50px; width: 100%; outline: none; transition: border-color .2s, box-shadow .2s; }
.txt:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(45, 120, 73, .18); }
textarea.txt { min-height: 96px; resize: vertical; }
.hint { font-size: 14px; color: var(--muted); }
.quote-side { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 18px; }
.phone {
  background: #e9e4d8; border-radius: 30px; padding: 0 0 18px; overflow: hidden; border: 8px solid var(--forest);
  box-shadow: 0 40px 80px -40px rgba(23, 53, 31, .6);
  background-image: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .5) 1px, transparent 1.5px); background-size: 16px 16px;
}
.phone-top { background: var(--forest); color: #fff; display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.phone-top i { width: 36px; height: 36px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; flex: none; }
.phone-top b { display: block; font-size: 15px; }
.phone-top small { font-size: 12px; color: #a9c7b0; }
.bubble { margin: 18px 14px 0 auto; max-width: 88%; background: #dcf2d5; color: #17301c; border-radius: 16px 16px 4px 16px; padding: 12px 14px 8px; font-size: 15px; line-height: 1.45; white-space: pre-line; box-shadow: 0 1px 1px rgba(0, 0, 0, .1); min-height: 60px; }
.bubble .meta { display: block; text-align: right; font-size: 11px; color: #5b7a62; margin-top: 4px; }
.bubble mark { background: transparent; color: inherit; animation: hl 1.2s ease-out; border-radius: 4px; }
@keyframes hl { from { background: rgba(183, 121, 31, .35); } to { background: transparent; } }
.grow-meter { display: flex; align-items: center; gap: 16px; background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 14px 18px; }
.grow-meter svg { flex: none; width: 92px; height: 92px; overflow: visible; }
.grow-meter b { display: block; font-size: 16px; }
.grow-meter span { font-size: 14px; color: var(--muted); }
@media (max-width: 900px) {
  .quote-layout { grid-template-columns: 1fr; gap: 36px; }
  .quote-side { position: static; }
}
.sticky-send { position: sticky; bottom: 0; z-index: 5; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--paper) 30%); }
.sticky-send .btn { width: 100%; min-height: 56px; font-size: 18px; }

/* ---------- ajustes finos para celular ---------- */
@media (max-width: 600px) {
  .hero-badge { max-width: 210px; padding: 12px 14px 12px 12px; gap: 10px; bottom: 64px; }
  .hero-badge svg { width: 32px; height: 32px; }
  .hero-badge b { font-size: 17px; }
  .hero-badge span { font-size: 13px; }
  .places { gap: 6px 20px; }
  .places small { width: 100%; }
  .places span { font-size: 18px; }
  .places span::before { margin-right: 8px; }
  .map { height: 160px; }
}

/* ---------- opiniones con link a Google ---------- */
.rating-link { font: inherit; background: transparent; border: 0; padding: 6px 10px; margin: -6px -10px; border-radius: 12px; cursor: pointer; text-align: left; transition: background .25s; }
.rating-link:hover { background: var(--mint); }
.rating-link .ext, .g-link .ext { color: var(--green); transition: transform .35s var(--ease-grow); }
.rating-link:hover .ext, .g-link:hover .ext { transform: translate(2px, -2px); }
.g-links { display: flex; flex-wrap: wrap; gap: 8px; }
.g-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 15px; transition: border-color .25s, transform .35s var(--ease-grow); }
.g-link:hover { border-color: var(--green); color: var(--ink); transform: translateY(-2px); }
.g-link b { font-size: 16px; }
.tag figcaption { align-items: center; }
.tag-link { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--green); text-decoration: none; font-size: 13px; }
.tag-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.tag:hover .tag-link { text-decoration: underline; }
.tag { cursor: pointer; }
.tags.dragging .tag { cursor: grabbing; }

/* ---------- crédito del desarrollador ---------- */
.footer-credit { border-top: 1px solid rgba(169, 199, 176, .18); padding-top: 18px !important; padding-bottom: 22px !important; justify-content: center !important; }
.dev-credit { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: #a9c7b0 !important; text-decoration: none; font-size: 13px; }
.dev-credit svg { color: var(--green-l); transition: transform .3s; }
.dev-credit:hover svg { transform: rotate(-12deg) scale(1.1); }
.dev-credit b { position: relative; color: var(--sand); font-weight: 700; }
.dev-credit b::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--sand); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.dev-credit:hover b::after, .dev-credit:focus-visible b::after { transform: scaleX(1); }
@media (max-width: 760px) {
  .footer .wrap { padding-bottom: 24px; }
  .footer .footer-credit { padding-bottom: 110px !important; }
}

/* ---------- fotos de Nosotros sin recortes en pantallas chicas ---------- */
@media (max-width: 900px) {
  .photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photos picture:first-child, .photos picture:last-child { grid-column: auto; margin-top: 0; }
  .photos img { height: auto; aspect-ratio: 4 / 3; }
}
@media (max-width: 600px) {
  .photos { grid-template-columns: 1fr; }
}
