/* bonsai.tienda (9/11/2026) */
:root {
    --verde: #2f5d34;
    --verde-osc: #1f3f23;
    --verde-claro: #e7efe3;
    --tierra: #a8643a;
    --fondo: #f7f5ef;
    --papel: #ffffff;
    --texto: #24311f;
    --suave: #5f6b5a;
    --borde: #e2ded2;
    --radio: 14px;
    --sombra: 0 6px 24px rgba(36, 49, 31, .08);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; background: var(--fondo); color: var(--texto);
    font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--verde); }
a:hover { color: var(--verde-osc); }
h1, h2, h3 { font-family: Fraunces, Georgia, serif; font-weight: 700; line-height: 1.2; color: var(--verde-osc); }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 .6rem; }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); margin: 2rem 0 .8rem; }
h3 { font-size: 1.1rem; margin: 0 0 .3rem; }
.saltar { position: absolute; left: -999px; top: 0; background: #fff; padding: .5rem 1rem; z-index: 10; }
.saltar:focus { left: 1rem; }
.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Cabecera */
.cab { background: var(--papel); border-bottom: 1px solid var(--borde); position: sticky; top: 0; z-index: 5; }
.cab-in { max-width: 1180px; margin: 0 auto; padding: .6rem 16px; display: flex; align-items: center; gap: 1rem; }
.marca { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--verde-osc); font-family: Fraunces, Georgia, serif; font-size: 1.35rem; font-weight: 700; }
.marca img { border-radius: 50%; }
.marca em, .pie-marca em { font-style: normal; color: var(--tierra); }
.menu { display: flex; gap: .2rem; margin-left: auto; }
.menu a { text-decoration: none; color: var(--texto); padding: .45rem .7rem; border-radius: 999px; font-weight: 500; font-size: .95rem; }
.menu a:hover { background: var(--verde-claro); }
.menu a[aria-current] { background: var(--verde); color: #fff; }
.cesta { position: relative; display: flex; align-items: center; gap: .4rem; text-decoration: none; color: var(--verde-osc);
    border: 1px solid var(--borde); border-radius: 999px; padding: .4rem .85rem; font-weight: 600; }
.cesta:hover { border-color: var(--verde); }
.cuenta { background: var(--tierra); color: #fff; border-radius: 999px; font-size: .75rem; min-width: 1.4rem; height: 1.4rem;
    display: inline-flex; align-items: center; justify-content: center; padding: 0 .35rem; }
@media (max-width: 760px) {
    .cab-in { flex-wrap: wrap; gap: .5rem; }
    .marca { font-size: 1.15rem; }
    .marca img { width: 36px; height: 36px; }
    .cesta { margin-left: auto; }
    .cesta span { display: none; }
    .menu { order: 3; width: 100%; margin: 0; overflow-x: auto; scrollbar-width: none; padding-bottom: .2rem; }
    .menu a { white-space: nowrap; padding: .35rem .65rem; }
}

/* Portada */
.portada { background: linear-gradient(135deg, var(--verde-osc), var(--verde) 60%, #4a7a45); color: #fff; }
.portada-in { max-width: 1180px; margin: 0 auto; padding: 3.2rem 16px 3.4rem; }
.portada.corta .portada-in { padding: 1.8rem 16px 2rem; }
.portada h1 { color: #fff; max-width: 22ch; }
.portada p { max-width: 60ch; color: rgba(255, 255, 255, .88); font-size: 1.08rem; margin: 0 0 1rem; }
.portada .migas, .portada .migas a { color: rgba(255, 255, 255, .8); }
.portada-botones { display: flex; flex-wrap: wrap; gap: .6rem; }

/* Cajas */
.caja { max-width: 1180px; margin: 0 auto; padding: 1.6rem 16px 3rem; }
.caja.estrecha { max-width: 760px; }
.bloque { margin-top: 2.4rem; }
.texto p { max-width: 72ch; }
.centrado { text-align: center; }
.centrado p { margin-left: auto; margin-right: auto; }
.titulo-pag { margin-top: .4rem; }
.migas { font-size: .88rem; color: var(--suave); margin: 0 0 1rem; }
.migas span { opacity: .6; margin: 0 .25rem; }
.nota { color: var(--suave); font-size: .9rem; }
.vacio { text-align: center; color: var(--suave); padding: 2rem 0; }

/* Botones */
.boton { display: inline-block; background: var(--verde); color: #fff; border: 0; border-radius: 12px; padding: .75rem 1.25rem;
    font: 600 1rem Inter, system-ui, sans-serif; text-decoration: none; cursor: pointer; text-align: center; }
.boton:hover { background: var(--verde-osc); color: #fff; }
.boton.claro { background: var(--papel); color: var(--verde-osc); border: 1px solid var(--borde); }
.boton.claro:hover { border-color: var(--verde); color: var(--verde-osc); }
.portada .boton.claro { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .35); }
.portada .boton.claro.activo, .portada .boton.claro:hover { background: #fff; color: var(--verde-osc); }
.boton.ancho { width: 100%; }
.enlace { background: none; border: 0; padding: 0; color: var(--verde); text-decoration: underline; cursor: pointer; font: inherit; }
.enlinea { display: inline; }
:focus-visible { outline: 3px solid var(--tierra); outline-offset: 2px; }

/* Ventajas */
.ventajas { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; }
.ventajas li { background: var(--papel); border: 1px solid var(--borde); border-radius: var(--radio); padding: .9rem 1rem; }
.ventajas strong { display: block; color: var(--verde-osc); }
.ventajas span { color: var(--suave); font-size: .92rem; }

/* Rejilla de bonsais */
.rejilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.2rem; }
@media (max-width: 560px) { .rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; } }
.tarjeta { background: var(--papel); border: 1px solid var(--borde); border-radius: var(--radio); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--sombra); }
.tarjeta-foto { position: relative; display: block; aspect-ratio: 1; background: var(--verde-claro); }
.tarjeta-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.tarjeta:hover .tarjeta-foto img { transform: scale(1.03); }
.tarjeta-txt { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; flex: 1; }
.tarjeta h3 a { color: var(--verde-osc); text-decoration: none; }
.tarjeta form { margin-top: auto; }
.tarjeta .boton { width: 100%; padding: .6rem .8rem; font-size: .95rem; }
.tarjeta.agotado .tarjeta-foto img { filter: grayscale(.6); opacity: .75; }
.tipo { color: var(--tierra); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 .2rem; }
.precio { font-weight: 700; font-size: 1.15rem; color: var(--verde-osc); margin: .2rem 0 .8rem; }
.precio s { color: var(--suave); font-weight: 400; font-size: .9em; margin-right: .3rem; }
.precio.grande { font-size: 1.8rem; margin: .4rem 0 1rem; }
.etiqueta { position: absolute; top: .7rem; left: .7rem; background: var(--tierra); color: #fff; font-size: .78rem; font-weight: 600;
    padding: .2rem .6rem; border-radius: 999px; }
.etiqueta.gris { background: #6b6b6b; }
@media (max-width: 560px) {
    .tarjeta-txt { padding: .7rem; }
    .tarjeta h3 { font-size: .98rem; }
    .precio { font-size: 1.05rem; margin-bottom: .6rem; }
    .tarjeta .boton { font-size: .85rem; padding: .55rem .4rem; }
}

/* Ficha */
.ficha { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2.4rem; align-items: start; }
@media (max-width: 820px) { .ficha { grid-template-columns: 1fr; gap: 1.2rem; } }
.ficha-foto { position: relative; border-radius: var(--radio); overflow: hidden; background: var(--verde-claro); box-shadow: var(--sombra); }
.ficha-foto img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.entradilla { font-size: 1.05rem; }
.comprar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 1.2rem 0 .4rem; }
.comprar label { font-weight: 600; }
.comprar select, .linea select { font: inherit; padding: .6rem .5rem; border: 1px solid var(--borde); border-radius: 10px; background: #fff; }
.comprar .boton { flex: 1; min-width: 200px; }
.envio-nota { color: var(--suave); font-size: .9rem; margin: 0 0 1.2rem; }
.datos { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1rem; background: var(--papel); border: 1px solid var(--borde);
    border-radius: var(--radio); padding: 1rem 1.2rem; margin: 1rem 0 0; }
.datos dt { color: var(--suave); }
.datos dd { margin: 0; font-weight: 500; }
.aviso { background: #fff6e8; border-left: 4px solid #d7a13a; padding: .8rem 1rem; border-radius: 8px; margin: 1rem 0; }
.aviso.ok { background: var(--verde-claro); border-left-color: var(--verde); }

/* Carrito */
.lineas { list-style: none; padding: 0; margin: 1rem 0; }
.linea { display: grid; grid-template-columns: 96px 1fr auto; gap: 1rem; align-items: center; background: var(--papel);
    border: 1px solid var(--borde); border-radius: var(--radio); padding: .7rem; margin-bottom: .7rem; }
.linea img { border-radius: 10px; width: 96px; height: 96px; object-fit: cover; }
.linea-nombre { font-weight: 600; color: var(--verde-osc); text-decoration: none; display: block; }
.linea-acciones { display: flex; align-items: center; gap: 1rem; margin-top: .3rem; }
.linea-precio { font-weight: 700; white-space: nowrap; }
@media (max-width: 520px) {
    .linea { grid-template-columns: 64px 1fr; }
    .linea img { width: 64px; height: 64px; }
    .linea-precio { grid-column: 2; }
}
.totales { display: grid; grid-template-columns: 1fr auto; gap: .4rem 1rem; max-width: 360px; margin: 1.2rem 0 1.4rem auto; }
.totales dd { margin: 0; text-align: right; }
.totales .total { font-weight: 700; font-size: 1.2rem; color: var(--verde-osc); border-top: 1px solid var(--borde); padding-top: .4rem; }
.carrito-botones { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .6rem; }

/* Pedido */
.pedido-cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
@media (max-width: 900px) { .pedido-cols { grid-template-columns: 1fr; } }
.formulario fieldset { border: 1px solid var(--borde); background: var(--papel); border-radius: var(--radio); padding: 1.1rem 1.2rem 1.2rem;
    margin: 0 0 1.2rem; display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1rem; }
@media (max-width: 560px) { .formulario fieldset { grid-template-columns: 1fr; } }
.formulario legend { font-family: Fraunces, Georgia, serif; font-weight: 700; font-size: 1.15rem; color: var(--verde-osc); padding: 0 .3rem; }
.campo { display: flex; flex-direction: column; gap: .25rem; }
.campo.ancho, .casilla.ancho, .subbloque { grid-column: 1 / -1; }
.subbloque { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1rem; }
.subbloque[hidden] { display: none; }
@media (max-width: 560px) { .subbloque { grid-template-columns: 1fr; } }
.campo label { font-weight: 600; font-size: .92rem; }
.campo small, .opc { color: var(--suave); font-size: .82rem; font-weight: 400; }
.campo input, .campo select, .campo textarea { font: inherit; padding: .65rem .75rem; border: 1px solid #cfcabb; border-radius: 10px; background: #fff; width: 100%; }
.campo input:focus, .campo select:focus, .campo textarea:focus { border-color: var(--verde); outline: 2px solid var(--verde-claro); }
.casilla { display: flex; gap: .55rem; align-items: flex-start; cursor: pointer; }
.casilla input { margin-top: .3rem; accent-color: var(--verde); }
.resumen { background: var(--papel); border: 1px solid var(--borde); border-radius: var(--radio); padding: 1.2rem; position: sticky; top: 90px; box-shadow: var(--sombra); }
.resumen h2 { margin-top: 0; }
.resumen ul { list-style: none; padding: 0; margin: 0 0 .5rem; }
.resumen li { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; border-bottom: 1px dashed var(--borde); }
.resumen li.total { font-weight: 700; font-size: 1.15rem; border-bottom: 0; color: var(--verde-osc); }
.resumen .pago { display: flex; flex-direction: column; gap: .4rem; padding: .8rem 1rem; margin: 1rem 0; }
.resumen .legal { margin: 0 0 1rem; font-size: .9rem; }

/* Contacto, envios y textos legales */
.contacto { list-style: none; padding: 0; }
.contacto li { display: flex; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--borde); }
.contacto span { color: var(--suave); min-width: 6rem; }
.poblaciones { list-style: none; padding: 0; columns: 4 180px; gap: 1.5rem; }
.poblaciones li { break-inside: avoid; padding: .15rem 0; }
.legal-txt { font-size: .95rem; }
.legal-txt h6 { font-size: 1.05rem; margin: 1.4rem 0 .4rem; color: var(--verde-osc); }

/* Pie */
.pie { background: var(--verde-osc); color: rgba(255, 255, 255, .82); margin-top: 3rem; }
.pie-in { max-width: 1180px; margin: 0 auto; padding: 2.4rem 16px 1.2rem; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 1.6rem; }
@media (max-width: 820px) { .pie-in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .pie-in { grid-template-columns: 1fr; } }
.pie a { display: block; color: #fff; text-decoration: none; padding: .15rem 0; }
.pie a:hover { text-decoration: underline; }
.pie-marca { font-family: Fraunces, Georgia, serif; font-size: 1.3rem; color: #fff; margin: 0 0 .4rem; }
.pie-tit { color: #fff; font-weight: 600; margin: 0 0 .4rem; }
.pie-copy { text-align: center; font-size: .85rem; padding: 1rem 16px 1.4rem; margin: 0; border-top: 1px solid rgba(255, 255, 255, .12); }
