/* AltoParque Plantas a Domicilio — estilo "Invernadero"
   Paleta y tipografía aprobadas en la propuesta visual (2026-10-27). */

:root {
    --verde: #1E3A2C;
    --verde-hover: #15291F;
    --tinta: #17251D;
    --texto-2: #4B5A50;
    --lino: #F3F1EA;
    --papel: #FBFAF6;
    --linea: #D9D6CB;
    --salvia: #E3E6D6;
    --salvia-texto: #2F4A36;
    --laton: #C8A766;
    --verde-claro: #C9D2C4;
    --ph-1: #DCD8C9;
    --ph-2: #CFD3C2;
    --ph-3: #E4DFD2;

    --serif: 'Fraunces', Georgia, serif;
    --sans: 'Manrope', system-ui, -apple-system, sans-serif;
    --ancho: 1280px;
    --radio: 4px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--lino);
    color: var(--tinta);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--verde); }
a:hover { color: var(--verde-hover); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; margin: 0; }

:focus-visible { outline: 2px solid var(--verde); outline-offset: 3px; }

.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;
}

.wrap { max-width: var(--ancho); margin: 0 auto; padding: 0 24px; }

.eyebrow {
    font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--texto-2);
}

.muted { color: var(--texto-2); }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 52px; padding: 0 28px; border-radius: 999px;
    font-family: var(--sans); font-weight: 600; font-size: 16px;
    text-decoration: none; cursor: pointer; border: 1px solid transparent;
    transition: background-color .15s ease, color .15s ease;
}
.btn--primary { background: var(--verde); color: var(--lino); }
.btn--primary:hover { background: var(--verde-hover); color: var(--lino); }
.btn--outline { border-color: var(--tinta); color: var(--tinta); background: transparent; }
.btn--outline:hover { background: var(--tinta); color: var(--lino); }
.btn--light { background: var(--lino); color: var(--tinta); }
.btn--light:hover { background: #fff; color: var(--tinta); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn svg { flex: none; }

.tag {
    display: inline-block; font-size: 12px; padding: 4px 10px; border-radius: 999px;
    background: var(--salvia); color: var(--salvia-texto); text-decoration: none;
}

/* ---------- Barra superior y header ---------- */
.topbar { background: var(--tinta); color: var(--verde-claro); font-size: 13px; }
.topbar .wrap { padding-top: 8px; padding-bottom: 8px; }
.topbar strong { color: var(--lino); font-weight: 600; }

.header { border-bottom: 1px solid var(--linea); background: var(--lino); }
.header .wrap {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 16px 32px; padding-top: 18px; padding-bottom: 18px;
}
.logo { display: flex; flex-direction: column; gap: 4px; line-height: 1.1; text-decoration: none; }
.logo__brand { font-size: 12px; font-weight: 600; letter-spacing: 0.28em; color: var(--verde); }
.logo__name { font-family: var(--serif); font-size: 26px; color: var(--tinta); letter-spacing: -0.01em; }

.nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 15px; }
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 720px) {
    .header .wrap { gap: 12px; }
    .nav { order: 3; width: 100%; gap: 6px 18px; font-size: 14px; }
    .header .btn { min-height: 44px; padding: 0 16px; font-size: 14px; }
    .logo__name { font-size: 22px; }
}

/* ---------- Secciones ---------- */
.section { padding: 88px 0; }
.section--paper { background: var(--papel); border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); }
.section--dark { background: var(--verde); color: #EEF0E6; }
.section__head {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
    gap: 16px; margin-bottom: 40px;
}
.section__title { font-size: 40px; line-height: 1.1; }
.section__head p { margin: 0; max-width: 440px; color: var(--texto-2); }
@media (max-width: 720px) {
    .section { padding: 56px 0; }
    .section__title { font-size: 32px; }
}

.grid { display: grid; gap: 28px; }
.grid--products { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid--cats { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.grid--posts { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 32px; }

/* ---------- Placeholder de imagen ---------- */
.ph {
    position: relative; overflow: hidden; border-radius: var(--radio); background: var(--ph-1);
    display: flex; align-items: flex-end;
}
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph__label {
    padding: 16px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--texto-2);
}
.ph--2 { background: var(--ph-2); }
.ph--3 { background: var(--ph-3); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 88px; }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero__text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero__title {
    font-weight: 300; font-size: clamp(42px, 6vw, 76px); line-height: 1.02; letter-spacing: -0.025em;
}
.hero__lead { margin: 0; max-width: 520px; font-size: 18px; color: var(--texto-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__media {
    flex: 1 1 520px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
}
.hero__media .ph:first-child { grid-row: span 2; height: 560px; }
.hero__media .ph { height: 272px; }
@media (max-width: 720px) {
    .hero { padding: 40px 0 56px; }
    .hero__media .ph:first-child { height: 340px; }
    .hero__media .ph { height: 162px; }
}

/* ---------- Pasos ---------- */
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.steps li { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--tinta); padding-top: 20px; }
.steps__n { font-family: var(--serif); font-size: 34px; font-weight: 300; line-height: 1.2; }
.steps strong { font-size: 18px; font-weight: 600; }
.steps span:last-child { color: var(--texto-2); }

/* ---------- Tarjetas ---------- */
.cat-card { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: var(--tinta); }
.cat-card .ph { height: 300px; }
.cat-card__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cat-card__name { font-family: var(--serif); font-size: 24px; }
.cat-card__more { font-size: 14px; color: var(--texto-2); }
.cat-card:hover .cat-card__name { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

.product-card { display: flex; flex-direction: column; gap: 12px; }
.product-card > a { text-decoration: none; }
.product-card .ph { aspect-ratio: 4 / 5; }
.product-card__name { font-size: 22px; }
.product-card__name a { color: var(--tinta); text-decoration: none; }
.product-card__name a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.product-card__sci { font-style: italic; color: var(--texto-2); font-size: 14px; }
.product-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.product-card__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 4px; margin-top: auto; }
.product-card__price { font-size: 15px; color: var(--texto-2); }

.post-card { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--tinta); }
.post-card .ph { height: 220px; }
.post-card__title { font-family: var(--serif); font-size: 24px; line-height: 1.25; }
.post-card:hover .post-card__title { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

/* ---------- Banda plantación ---------- */
.band .wrap { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.band .ph { flex: 1 1 460px; min-width: 0; height: 420px; background: #2C4B3B; }
.band .ph__label { color: var(--verde-claro); }
.band__text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.band__text .eyebrow { color: var(--laton); }
.band__title { font-weight: 300; font-size: 48px; line-height: 1.08; letter-spacing: -0.02em; }
.band__text p { margin: 0; color: var(--verde-claro); font-size: 17px; }
.checklist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.checklist li { display: flex; gap: 12px; align-items: center; }
@media (max-width: 720px) { .band__title { font-size: 36px; } .band .ph { height: 260px; } }

/* ---------- Zonas ---------- */
.zones { display: flex; flex-wrap: wrap; gap: 56px; }
.zones__intro { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.zones__intro p { margin: 0; color: var(--texto-2); }
.zones__list { flex: 2 1 560px; min-width: 0; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); column-gap: 32px; }
.zones__list li { padding: 16px 0; border-bottom: 1px solid var(--linea); }

/* ---------- Página de categoría ---------- */
.page-head { padding: 48px 0 40px; border-bottom: 1px solid var(--linea); }
.page-head h1 { font-weight: 300; font-size: clamp(38px, 5vw, 60px); line-height: 1.05; letter-spacing: -0.02em; margin: 12px 0 16px; }
.page-head p { margin: 0; max-width: 680px; color: var(--texto-2); font-size: 17px; }

.crumbs { font-size: 13px; color: var(--texto-2); }
.crumbs ol { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; }
.crumbs a { color: var(--texto-2); }

.prose { max-width: 760px; color: var(--tinta); font-size: 17px; line-height: 1.75; }
.prose h2 { font-size: 30px; margin: 40px 0 12px; }
.prose h3 { font-size: 24px; margin: 32px 0 10px; }
.prose p, .prose ul, .prose ol { margin: 0 0 18px; }
.prose img { border-radius: var(--radio); margin: 24px 0; }
.prose a { text-underline-offset: 3px; }

.pagination { margin-top: 48px; }

/* ---------- Ficha de producto ---------- */
.product { padding: 32px 0 80px; }
.product .wrap { display: flex; flex-wrap: wrap; gap: 56px; }
.product__gallery { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.product__gallery .ph--main { aspect-ratio: 4 / 5; max-height: 720px; }
.product__thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.product__thumbs a { display: block; aspect-ratio: 1; border-radius: var(--radio); overflow: hidden; background: var(--ph-2); }
.product__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product__info { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.product__title { font-weight: 300; font-size: clamp(40px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.02em; margin: 6px 0; }
.product__aka { font-size: 17px; color: var(--texto-2); }
.product__lead { margin: 0; color: var(--texto-2); }

.sizes { margin: 0; padding: 0; border: 0; }
.sizes legend { padding: 0; margin-bottom: 12px; font-weight: 600; }
.sizes__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.size {
    position: relative; display: flex; flex-direction: column; gap: 2px; padding: 14px;
    border: 1px solid var(--linea); border-radius: 6px; background: var(--papel); cursor: pointer;
}
.size input { position: absolute; opacity: 0; pointer-events: none; }
.size:has(input:checked) { border: 2px solid var(--tinta); padding: 13px; }
.size:has(input:focus-visible) { outline: 2px solid var(--verde); outline-offset: 3px; }
.size__name { font-weight: 600; }
.size__detail { font-size: 13px; color: var(--texto-2); }
.size__price { font-size: 14px; }

.addon {
    display: flex; gap: 14px; align-items: flex-start; padding: 16px;
    border: 1px solid var(--linea); border-radius: 6px; background: var(--papel); cursor: pointer;
}
.addon input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--verde); flex: none; }
.addon strong { display: block; font-weight: 600; }
.addon span span { font-size: 14px; color: var(--texto-2); }

.cta-note { margin: 12px 0 0; font-size: 14px; color: var(--texto-2); text-align: center; }
.cta-note strong { color: var(--tinta); font-weight: 600; }

.facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--linea); }
.facts div { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--linea); }
.facts dt { font-size: 13px; color: var(--texto-2); }
.facts dd { margin: 0; }

.care { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; margin-bottom: 48px; }
.care div { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--tinta); padding-top: 18px; }
.care strong { font-weight: 600; }
.care span { color: var(--texto-2); }

/* ---------- Publicación ---------- */
.article-head { padding: 40px 0 32px; }
.article-head h1 { font-weight: 300; font-size: clamp(36px, 5vw, 56px); line-height: 1.08; letter-spacing: -0.02em; margin: 12px 0 16px; max-width: 900px; }
.article-cover { margin-bottom: 48px; }
.article-cover .ph { aspect-ratio: 16 / 7; }

/* ---------- 404 ---------- */
.notfound { padding: 120px 0; text-align: center; }
.notfound h1 { font-weight: 300; font-size: 56px; margin-bottom: 16px; }

/* ---------- Footer ---------- */
.footer { background: var(--tinta); color: var(--verde-claro); font-size: 14px; }
.footer .wrap--cols { display: flex; flex-wrap: wrap; gap: 40px 64px; justify-content: space-between; padding-top: 64px; padding-bottom: 40px; }
.footer__brand { flex: 1 1 280px; display: flex; flex-direction: column; gap: 12px; }
.footer__brand .logo__brand { color: var(--laton); }
.footer__brand .logo__name { color: var(--lino); }
.footer nav { display: flex; flex-direction: column; gap: 8px; }
.footer nav strong { color: var(--lino); font-weight: 600; }
.footer a { color: var(--verde-claro); text-decoration: none; }
.footer a:hover { color: var(--lino); text-decoration: underline; }
.footer__legal { border-top: 1px solid #2C3D33; padding-top: 20px; padding-bottom: 32px; font-size: 13px; }

/* ---------- Botón flotante de WhatsApp ---------- */
.wa-float {
    position: fixed; right: 20px; bottom: 20px; z-index: 50;
    width: 56px; height: 56px; border-radius: 999px; background: var(--verde); color: var(--lino);
    display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(23, 37, 29, .25);
}
.wa-float:hover { background: var(--verde-hover); color: var(--lino); }
