/* Casa Plantu — palette and type scale carried over from the unused WP theme. */
:root {
  --green: #5A7A5C; --green-light: #7A9A7C; --green-dark: #3F5A41;
  --sand: #C9A882; --accent: #5A7A5C;
  --cream: #FDFCF8; --off-white: #F5F3EE; --line: #E8E6E0; --muted: #6B6860; --ink: #2C2A26;
  --ok: #6B9B6F; --warn: #D4A574;
  --radius: 16px;
  --sage-tint: #EBEFE4;     /* matte behind every picture, photo or illustration */
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 1rem/1.65 Inter, system-ui, sans-serif; }
h1, h2, h3 { font-family: Montserrat, system-ui, sans-serif; font-weight: 700; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); }
h3 { font-size: 1.1rem; }
a { color: var(--green-dark); }
img { max-width: 100%; height: auto; display: block; }
main { max-width: 1200px; margin: 0 auto; padding: 2rem 1rem 4rem; }
section { margin-bottom: 3.5rem; }
.lead { color: var(--muted); font-size: 1.1rem; }
.empty, .hint { color: var(--muted); }
.more { text-align: right; margin-top: 1.5rem; }

.site-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1.5rem;
  padding: 1rem clamp(1rem, 4vw, 3rem); border-bottom: 1px solid var(--line); background: var(--cream);
  position: sticky; top: 0; z-index: 10; }
.brand { font: 700 1.25rem Montserrat, sans-serif; text-decoration: none; color: var(--green-dark); }
.site-header nav { display: flex; gap: 1.5rem; }
.site-header nav a { text-decoration: none; font-weight: 500; }
[data-cart-count] { background: var(--green); color: #fff; border-radius: 999px; padding: 0 .5em; font-size: .8rem; }
.site-footer { text-align: center; padding: 2rem 1rem; background: var(--off-white); color: var(--muted); font-size: .9rem; }
.site-footer p { margin: .2rem 0; }

.btn { display: inline-block; border: 1px solid var(--green); background: var(--green); color: #fff; cursor: pointer;
  font: 600 1rem Inter, sans-serif; padding: .75rem 1.6rem; border-radius: 999px; text-decoration: none;
  transition: background .25s ease, transform .25s ease; }
.btn:hover { background: var(--green-dark); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--green-dark); }
.btn--ghost:hover { background: var(--off-white); }
.btn--small { padding: .45rem 1rem; font-size: .9rem; }

.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; padding: 2rem 0; }
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 34rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; }
/* Hero picture: the arch of a greenhouse window, with a sage shape set behind it. One fixed shape —
   the photos already carry plenty of movement. */
.hero__frame { position: relative; width: min(100%, 420px); margin-left: auto; }
.hero__frame::before { content: ""; position: absolute; inset: 6% -6% -5% 8%; z-index: 0;
  border-radius: 999px 999px 28px 28px; background: var(--sage-tint); }
.hero__blob { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 999px 999px 24px 24px; background: var(--sage-tint); }
img[src*="/placeholders/"] { object-fit: contain; padding: 14%; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; }
/* Card that rests flat and lifts on layered shadows — after "Minimalist Elevation & Dynamic Shadows",
   https://codefronts.com/motion/css-card-hover-effects/minimalist-elevation-dynamic-shadows/ (MIT). */
.plant-card { display: flex; flex-direction: column; background: #fff; color: inherit; text-decoration: none;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 1px 2px rgba(44, 42, 38, .04), 0 2px 4px rgba(44, 42, 38, .03);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s cubic-bezier(.2, .7, .2, 1); }
.plant-card:hover { transform: translateY(-4px);
  box-shadow: 0 2px 4px rgba(44, 42, 38, .04), 0 6px 12px rgba(44, 42, 38, .06),
              0 14px 28px rgba(44, 42, 38, .08), 0 28px 56px rgba(44, 42, 38, .10); }
.plant-card__pic { display: block; overflow: hidden; background: var(--sage-tint); }
.plant-card__pic img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.plant-card:hover .plant-card__pic img { transform: scale(1.04); }
/* Photos come from different tables and walls: pull them toward one warm, slightly softer tone. */
img[src*="/plants/"] { filter: saturate(.9) sepia(.07) contrast(.98); }
.plant-card__body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.plant-card__body h3 { margin: .3rem 0 0; }
.plant-card__care { margin: 0; color: var(--muted); font-size: .9rem; flex: 1; }
.plant-card__price { margin: .4rem 0 0; display: flex; justify-content: space-between; }
.arrow { transition: transform .35s ease; color: var(--green); }
.plant-card:hover .arrow { transform: translateX(4px); }
.badge { align-self: flex-start; display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; padding: .2rem .6rem; border-radius: 999px; background: var(--off-white); color: var(--muted); }
.badge--stock { background: #E4EFE4; color: var(--green-dark); }
.badge--pet { background: #F6EBDD; color: #8A5F35; }
.badge--match { background: var(--accent); color: #fff; }

.filters { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: center; margin: 1rem 0 2rem;
  padding: 1rem; background: var(--off-white); border-radius: var(--radius); }
select, input[type=email] { font: inherit; padding: .5rem .8rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; }

.plant { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.plant__photo { width: 100%; border-radius: 24px; aspect-ratio: 1; object-fit: cover; background: var(--sage-tint); }
.plant__common { font-weight: 500; margin: 0; }
.plant__sci { font-style: italic; color: var(--muted); margin: 0 0 1rem; }
.facts { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.notice { padding: .8rem 1rem; border-radius: 12px; background: var(--off-white); }
.notice--ok { background: #E4EFE4; }
.notice--warn { background: #F9EEDD; }
.notice--info { background: #EDEAF3; margin: 0 0 1rem; }
.result .notice { margin-bottom: 1rem; }
.why { margin: .5rem 0 0; padding-left: 1.1rem; font-size: .88rem; color: var(--ink); }
.why--miss { color: var(--muted); list-style: "– "; }
.why--miss em { font-style: normal; }
.why__removes { margin: .5rem 0 0; font-size: .85rem; color: var(--green-dark); }
.plant__photo-btn { padding: 0; border: 0; background: none; cursor: zoom-in; display: block; width: 100%; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
.lightbox::backdrop { background: rgba(20, 20, 18, .85); }
.lightbox img { display: block; max-width: 96vw; max-height: 92vh; border-radius: 12px; margin: auto; }
.lightbox button { position: absolute; top: .5rem; right: .5rem; font-size: 1.4rem; line-height: 1; width: 2.4rem; height: 2.4rem;
  border-radius: 50%; border: 0; background: #fff; cursor: pointer; }
.formats { list-style: none; padding: 0; }
.formats li { display: flex; align-items: center; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.formats li > span { flex: 1; }
.formats small { display: block; color: var(--muted); }
.cart-total { font: 700 1.3rem Montserrat, sans-serif; }

.quiz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem; margin-top: 2rem; }
/* Same calm language as the plant pictures: one fixed radius, a small lift on hover. */
.quiz-card { display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; min-height: 320px;
  padding: 2.4rem; color: #fff; text-decoration: none; position: relative; overflow: hidden;
  background: var(--accent);   /* fallback for browsers without color-mix() */
  background: linear-gradient(155deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #2C2A26));
  border-radius: 24px;
  box-shadow: 0 20px 45px rgba(44, 42, 38, .2);
  box-shadow: 0 20px 45px color-mix(in srgb, var(--accent) 35%, transparent);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s cubic-bezier(.2, .7, .2, 1); }
.quiz-card::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .3), transparent 55%); }
.quiz-card > * { position: relative; }
.quiz-card:hover { transform: translateY(-4px);
  box-shadow: 0 30px 60px rgba(44, 42, 38, .3);
  box-shadow: 0 30px 60px color-mix(in srgb, var(--accent) 45%, transparent); }
.quiz-card h2 { color: #fff; }
.quiz-card p { margin: 0; color: rgba(255, 255, 255, .9); font-size: .95rem; }
.quiz-card__icon { width: 56px; height: 56px; border-radius: 50%; background: rgba(255, 255, 255, .25);
  display: grid; place-items: center; font-size: 1.6rem; }
.quiz-card__btn { align-self: flex-start; background: #fff; color: var(--ink); font-weight: 600;
  padding: .6rem 1.4rem; border-radius: 999px; }

.quiz { max-width: 640px; margin: 0 auto; }
.quiz__kicker { font-weight: 600; color: var(--accent); }
.quiz__bar { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; margin-bottom: 2rem; }
.quiz__bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .4s ease; }
fieldset { border: 0; padding: 0; margin: 0 0 2rem; }
legend { font: 700 1.5rem/1.3 Montserrat, sans-serif; margin-bottom: 1.2rem; padding: 0; }
legend small, legend em { display: block; font: 400 .9rem Inter, sans-serif; color: var(--muted); }
.option { display: block; padding: 1rem 1.2rem; margin-bottom: .7rem; background: #fff; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .25s ease, background .25s ease; }
.option:hover, .option:has(:checked) { border-color: var(--accent); background: var(--off-white); }
.option input { accent-color: var(--accent); margin-right: .5rem; }
.quiz__nav { display: flex; justify-content: space-between; gap: 1rem; }

.result__box { margin: 3rem 0 2rem; padding: 1.5rem; background: var(--off-white); border-radius: var(--radius); }
.lead-form { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.lead-form label { flex-basis: 100%; font-size: .9rem; color: var(--muted); }
.result__nav { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; }

@media (max-width: 760px) {
  .hero, .plant { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero__frame { width: min(86%, 320px); margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* Text pages (Nosotras, Despacho, Privacidad); free-text answers keep the line breaks they were typed with. */
.prose { max-width: 44rem; }
.prose .answer { white-space: pre-line; }
.prose ul { padding-left: 1.2rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; }
.brand img { border-radius: 50%; }
.footer-links a { color: inherit; }
/* Lead-form honeypot: off-screen rather than display:none, which some bots skip. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
