@font-face { font-family: 'Marcellus'; src: url('/fuentes/Marcellus-Regular.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url('/fuentes/CormorantGaramond.ttf') format('truetype'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url('/fuentes/CormorantGaramond-Italic.ttf') format('truetype'); font-weight: 300 700; font-style: italic; font-display: swap; }

:root {
  --verde-osc: #3F5236; --verde: #5E7548; --salvia: #8A9A6B; --salvia-clara: #B5C08F;
  --azul: #6B86B8; --azul-osc: #44608F; --cielo: #C9D8E8;
  --crema: #F5EEDF; --papel: #FBF6EA; --kraft: #D7B98A;
  --rojo: #D2643A; --dorado: #E3AE4A; --dorado-osc: #B98523; --tinta: #33402C;
  --sombra: 0 10px 30px rgba(63, 82, 54, 0.12);
  --radio: 18px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--crema); color: var(--tinta); font: 500 1.2rem/1.6 'Cormorant', Georgia, serif; }
img { max-width: 100%; height: auto; }
a { color: var(--azul-osc); }
h1, h2, h3 { font-family: 'Marcellus', Georgia, serif; font-weight: 400; color: var(--verde-osc); line-height: 1.15; }
.contenedor { width: min(1120px, 92vw); margin: 0 auto; }

/* cabecera */
.cabecera { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .5rem 4vw; background: rgba(251, 246, 234, .92); backdrop-filter: blur(6px); border-bottom: 1px solid rgba(185, 133, 35, .25); }
.cabecera__marca { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-family: 'Marcellus', serif; font-size: 1.35rem; color: var(--verde-osc); }
.cabecera__nav { display: flex; gap: 1.6rem; }
.cabecera__nav a { text-decoration: none; color: var(--verde-osc); font-family: 'Marcellus', serif; font-size: 1.05rem; letter-spacing: .04em; }
.cabecera__nav a:hover { color: var(--rojo); }
.cabecera__menu { display: none; background: none; border: 0; font-size: 1.7rem; color: var(--verde-osc); cursor: pointer; }

/* portada */
.portada { position: relative; min-height: 88vh; display: grid; place-items: center; overflow: hidden; padding: 3rem 0 4rem; }
.portada__fondo { position: absolute; inset: 0; background: url('/img/marca/banner-escena.svg?v=8') center bottom / cover no-repeat; opacity: .55; }
.portada__fondo::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(245, 238, 223, .92) 35%, rgba(245, 238, 223, .35) 75%); }
.portada__contenido { position: relative; text-align: center; width: min(760px, 92vw); }
.portada__logo { width: 100%; height: auto; filter: drop-shadow(0 4px 14px rgba(255, 250, 238, .7)); }
.portada__lema { font-style: italic; font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--verde-osc); margin: .3rem 0 1.4rem; }

.botones { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center; }
.boton { display: inline-block; padding: .65rem 1.4rem; border-radius: 999px; background: var(--verde-osc); color: var(--papel); text-decoration: none; font-family: 'Marcellus', serif; font-size: 1rem; letter-spacing: .03em; border: 2px solid var(--verde-osc); cursor: pointer; transition: transform .15s, background .15s; }
.boton:hover { transform: translateY(-2px); background: var(--verde); }
.boton--claro { background: transparent; color: var(--verde-osc); }
.boton--claro:hover { background: rgba(94, 117, 72, .1); }

/* secciones */
.seccion { padding: 5rem 0; }
.seccion--papel { background: var(--papel); border-block: 1px solid rgba(185, 133, 35, .18); }
.titulo { font-size: clamp(2rem, 4vw, 2.8rem); text-align: center; margin: 0 0 .4rem; }
.titulo::after { content: '✦'; display: block; font-size: 1rem; color: var(--dorado-osc); margin-top: .3rem; }
.subtitulo { text-align: center; font-style: italic; font-size: 1.3rem; max-width: 760px; margin: 0 auto 2rem; }
.texto p { margin: 0 0 1rem; }

.nosotros { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: center; }
.nosotros .titulo { text-align: left; }
.nosotros .titulo::after { text-align: left; }
.nosotros__frase { width: min(420px, 100%); margin-top: 1rem; }
.nosotros__mascota { margin: 0; text-align: center; }
.nosotros__mascota img { width: min(340px, 80%); }
.nosotros__mascota figcaption { font-style: italic; color: var(--verde); }

/* trabajos */
.filtros { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }
.filtro { padding: .4rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--salvia); background: transparent; color: var(--verde-osc); font: 500 1.1rem 'Cormorant', serif; cursor: pointer; }
.filtro[aria-selected="true"] { background: var(--verde-osc); color: var(--papel); border-color: var(--verde-osc); }
.galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.4rem; }
.tarjeta { background: var(--papel); border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra); border: 1px solid rgba(185, 133, 35, .2); }
.tarjeta img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: #efe6d2; }
.tarjeta div { padding: .8rem 1rem 1rem; }
.tarjeta h3 { margin: 0 0 .2rem; font-size: 1.2rem; }
.tarjeta p { margin: 0; font-size: 1.05rem; line-height: 1.4; }
.vacio { grid-column: 1 / -1; text-align: center; padding: 2rem; }
.vacio img { width: 180px; }
.vacio p { font-style: italic; font-size: 1.3rem; }

/* tienda (próximamente) */
.categorias { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.categoria { text-align: center; padding: 1.5rem; background: var(--crema); border-radius: var(--radio); border: 1px dashed var(--kraft); }
.categoria img { width: 150px; }
.categoria h3 { margin: .5rem 0 .2rem; }
.categoria p { margin: 0; font-style: italic; }
.etiqueta-pronto { display: inline-block; margin-top: .7rem; padding: .1rem .8rem; border-radius: 999px; background: var(--kraft); color: var(--verde-osc); font-size: .95rem; }

/* ubicación */
.ubicacion { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: center; }
.ubicacion .titulo { text-align: left; }
.direccion { font-size: 1.6rem; font-family: 'Marcellus', serif; color: var(--verde-osc); margin: .5rem 0; }
.estado-local { display: inline-block; padding: .15rem .9rem; border-radius: 999px; font-weight: 600; margin: 0 0 1rem; }
.estado-local.abierto { background: #DDE8C9; color: #3B5A22; }
.estado-local.cerrado { background: #F1DCCF; color: #8A3A1E; }
.horarios { border-collapse: collapse; margin-bottom: 1.5rem; width: 100%; max-width: 380px; }
.horarios td { padding: .35rem 0; border-bottom: 1px dotted var(--salvia); }
.horarios td:last-child { text-align: right; font-weight: 600; }
.horarios tr.hoy td { color: var(--rojo); }
.mapa { border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra); border: 6px solid var(--papel); aspect-ratio: 4 / 3; background: #e8e2d2; }
.mapa iframe { width: 100%; height: 100%; border: 0; display: block; }
.mapa .aviso { display: grid; place-items: center; height: 100%; padding: 1.5rem; text-align: center; font-style: italic; }

/* pie */
.pie { text-align: center; padding: 3rem 4vw 2rem; background: var(--papel); }
.pie__banner { width: min(1000px, 100%); height: auto; border-radius: 14px; }
.pie__gracias { font-style: italic; font-size: 1.5rem; color: var(--verde-osc); margin: 1rem 0 .3rem; }
.pie__redes a { margin: 0 .6rem; }
.pie__chico { font-size: .95rem; opacity: .7; }

/* chat */
.chat-boton { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 30; display: flex; align-items: center; gap: .5rem; padding: .35rem 1.1rem .35rem .4rem; border-radius: 999px; border: 2px solid var(--verde-osc); background: var(--papel); color: var(--verde-osc); font: 600 1.1rem 'Cormorant', serif; cursor: pointer; box-shadow: var(--sombra); }
.chat-boton:hover { background: #fff; }
.chat { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 31; width: min(380px, calc(100vw - 2rem)); height: min(560px, calc(100vh - 2rem)); display: flex; flex-direction: column; background: var(--papel); border-radius: 22px; box-shadow: 0 18px 50px rgba(63, 82, 54, .28); border: 2px solid var(--verde-osc); overflow: hidden; }
.chat[hidden] { display: none; }
.chat__cabecera { display: flex; align-items: center; gap: .6rem; padding: .6rem .9rem; background: var(--verde-osc); color: var(--papel); }
.chat__cabecera div { flex: 1; line-height: 1.1; }
.chat__cabecera small { display: block; opacity: .8; font-style: italic; }
.chat__cabecera img { background: var(--crema); border-radius: 50%; }
.chat__cerrar { background: none; border: 0; color: var(--papel); font-size: 1.8rem; cursor: pointer; line-height: 1; }
.chat__mensajes { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; background: url('/img/marca/sticker-campanillas.svg?v=8') right -40px bottom -40px / 180px no-repeat, var(--crema); }
.msg { max-width: 85%; padding: .5rem .85rem; border-radius: 16px; line-height: 1.35; font-size: 1.1rem; white-space: pre-wrap; }
.msg--bosque { align-self: flex-start; background: var(--papel); border: 1px solid rgba(94, 117, 72, .3); border-bottom-left-radius: 4px; }
.msg--yo { align-self: flex-end; background: var(--verde); color: var(--papel); border-bottom-right-radius: 4px; }
.msg--frase { align-self: center; font-style: italic; color: var(--verde); background: none; text-align: center; }
.msg .boton { margin-top: .5rem; font-size: .95rem; padding: .35rem 1rem; }
.msg form { display: flex; gap: .4rem; margin-top: .5rem; }
.msg input { flex: 1; min-width: 0; padding: .35rem .6rem; border-radius: 10px; border: 1px solid var(--salvia); font: inherit; font-size: 1rem; }
.msg form button { border: 0; border-radius: 10px; background: var(--verde-osc); color: var(--papel); padding: 0 .7rem; cursor: pointer; font: inherit; font-size: 1rem; }
.chat__agente { border: 0; border-bottom: 1px solid rgba(94, 117, 72, .25); background: #EEF2E4; color: var(--verde-osc); font: 600 1rem 'Cormorant', serif; padding: .35rem; cursor: pointer; }
.chat__agente:hover { background: #E2E9D2; }
.msg--agente { align-self: flex-start; background: #E6EEF8; border: 1px solid rgba(68, 96, 143, .3); border-bottom-left-radius: 4px; }
.msg--agente::before { content: attr(data-quien); display: block; font-size: .8rem; font-weight: 700; color: var(--azul-osc); }
.msg--sistema { align-self: center; text-align: center; font-size: .98rem; font-style: italic; color: var(--verde); background: rgba(255, 255, 255, .6); border-radius: 12px; max-width: 95%; }
.chat-boton { position: fixed; }
.chat-globo { position: absolute; top: -6px; right: -6px; }
.chat__sugeridas { display: flex; gap: .4rem; flex-wrap: wrap; padding: .5rem .8rem 0; background: var(--papel); }
.chat__sugeridas button { border: 1px solid var(--salvia); background: var(--crema); color: var(--verde-osc); border-radius: 999px; padding: .15rem .7rem; font: 500 .98rem 'Cormorant', serif; cursor: pointer; }
.chat__form { display: flex; gap: .5rem; padding: .7rem .8rem; background: var(--papel); }
.chat__form input { flex: 1; min-width: 0; padding: .55rem .9rem; border-radius: 999px; border: 1.5px solid var(--salvia); font: 500 1.1rem 'Cormorant', serif; background: #fff; }
.chat__form input:focus { outline: 2px solid var(--azul); }
.chat__form button { width: 44px; border-radius: 50%; border: 0; background: var(--verde-osc); color: var(--papel); font-size: 1.1rem; cursor: pointer; }


/* tienda */
.productos { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.4rem; }
.producto { background: var(--crema); border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra); border: 1px solid rgba(185, 133, 35, .2); display: flex; flex-direction: column; }
.producto img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: #efe6d2; }
.producto > div { padding: .8rem 1rem 1rem; display: flex; flex-direction: column; gap: .25rem; flex: 1; }
.producto h3 { margin: 0; font-size: 1.2rem; }
.producto p { margin: 0; font-size: 1.05rem; line-height: 1.35; }
.producto .boton { margin-top: auto; align-self: stretch; text-align: center; }
.producto__precio { font-family: 'Marcellus', serif; font-size: 1.35rem !important; color: var(--verde-osc); margin-top: .2rem !important; }
.producto__quedan { color: var(--rojo); font-weight: 600; }
.producto.agotado img { filter: grayscale(.7); opacity: .7; }
.boton:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.ir-carrito { text-align: center; margin-top: 2rem; }
.globo-carrito { display: inline-block; min-width: 1.4em; padding: 0 .35em; border-radius: 999px; background: var(--rojo); color: #fff; font: 600 .85rem sans-serif; text-align: center; line-height: 1.5; }
.cabecera__nav--fija { display: flex !important; position: static !important; flex-direction: row !important; background: none !important; border: 0 !important; }

/* carrito */
.compra { padding: 2.5rem 0 4rem; }
.compra__grilla { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2rem; align-items: start; }
.aviso-prueba { background: #FFF3D6; border: 1px dashed var(--dorado-osc); border-radius: 12px; padding: .5rem 1rem; text-align: center; }
.lineas { display: grid; gap: .7rem; margin-bottom: 1.5rem; }
.linea { display: grid; grid-template-columns: 64px 1fr 70px 110px 32px; gap: .8rem; align-items: center; background: var(--papel); border-radius: 14px; padding: .5rem .8rem; border: 1px solid rgba(185, 133, 35, .2); }
.linea img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.linea__nombre { display: grid; line-height: 1.2; }
.linea input { width: 100%; padding: .3rem; border-radius: 8px; border: 1.5px solid var(--salvia); font: inherit; text-align: center; }
.linea__total { text-align: right; font-weight: 600; }
.linea__quitar { background: none; border: 0; font-size: 1.6rem; color: var(--rojo); cursor: pointer; }
.ficha-compra { background: var(--papel); border-radius: var(--radio); padding: 1.2rem 1.4rem; box-shadow: var(--sombra); }
.ficha-compra h2 { font-size: 1.4rem; margin: .5rem 0 .8rem; }
.ficha-compra label { display: grid; gap: .2rem; font-weight: 600; }
.ficha-compra input, .ficha-compra select { padding: .5rem .7rem; border-radius: 10px; border: 1.5px solid var(--salvia); font: 500 1.1rem 'Cormorant', serif; background: #fff; color: var(--tinta); }
.campos { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin: .8rem 0; }
.campos .ancho { grid-column: 1 / -1; }
.opciones-envio { display: grid; gap: .5rem; margin: .8rem 0 .3rem; }
.opcion-envio { display: grid !important; grid-template-columns: auto 1fr auto; align-items: center; gap: .8rem !important; padding: .6rem .9rem; border-radius: 12px; border: 1.5px solid rgba(138, 154, 107, .5); background: #fff; cursor: pointer; font-weight: 500 !important; }
.opcion-envio:has(input:checked) { border-color: var(--verde-osc); background: #F1F4E8; }
.opcion-envio span { display: grid; line-height: 1.2; }
.opcion-envio small { opacity: .75; }
.opcion-envio--pendiente { opacity: .75; cursor: default; background: #faf7ef; }
#campo-calcular { display: flex; align-items: end; }
.nota { font-size: 1rem; font-style: italic; opacity: .85; }
.resumen { position: sticky; top: 90px; background: var(--papel); border-radius: var(--radio); padding: 1.2rem 1.4rem; box-shadow: var(--sombra); border: 1px solid rgba(185, 133, 35, .25); }
.resumen h2 { margin: 0 0 .6rem; font-size: 1.4rem; }
.resumen dl { display: grid; grid-template-columns: 1fr auto; gap: .3rem 1rem; margin: 0 0 1rem; }
.resumen dd { margin: 0; text-align: right; }
.resumen .total { font-family: 'Marcellus', serif; font-size: 1.35rem; color: var(--verde-osc); border-top: 1px dotted var(--salvia); padding-top: .4rem; }
.boton--mp { width: 100%; background: #009EE3; border-color: #009EE3; color: #fff; }
.boton--mp:hover { background: #0086C3; }
.resumen__etiqueta { display: block; width: 110px; margin: 1rem auto 0; transform: rotate(-6deg); }
.error { color: var(--rojo); }

/* pedido */
.pedido { padding: 3rem 0 4rem; text-align: center; max-width: 640px; }
.pedido__imagen { width: 150px; }
.pedido__numero { opacity: .75; }
.pedido__seguimiento { background: #F1F4E8; border-radius: 12px; padding: .5rem 1rem; display: inline-block; }
.pedido__tabla { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; text-align: left; background: var(--papel); border-radius: 14px; overflow: hidden; }
.pedido__tabla td { padding: .5rem 1rem; border-bottom: 1px dotted var(--salvia); }
.pedido__tabla td:last-child { text-align: right; }
.pedido__tabla .total td { font-family: 'Marcellus', serif; font-size: 1.25rem; color: var(--verde-osc); border-bottom: 0; }
.pedido .boton { margin: .3rem; }

.pedido-abierto { background: #FFF3D6; border: 1.5px solid var(--dorado); border-radius: 16px; padding: .8rem 1.2rem; margin-bottom: 1.5rem; text-align: center; }
.pedido-abierto p { margin: 0 0 .6rem; }
.pedido .boton--mp { width: auto; }

/* seguimiento */
.boton--chico { padding: .3rem .9rem; font-size: .9rem; }
.pedido__seguimiento { display: flex !important; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem .8rem; margin: .5rem auto 1rem; }
.pedido__seguimiento strong { font-family: 'Marcellus', serif; font-size: 1.3rem; letter-spacing: .05em; user-select: all; }
.linea-tiempo { list-style: none; padding: 0; margin: 1.5rem auto; text-align: left; max-width: 420px; }
.linea-tiempo li { position: relative; padding: 0 0 1.2rem 2.4rem; }
.linea-tiempo li::before { content: ''; position: absolute; left: .55rem; top: 1.4rem; bottom: 0; width: 2px; background: var(--salvia); opacity: .5; }
.linea-tiempo li:last-child::before { display: none; }
.linea-tiempo li::after { content: ''; position: absolute; left: 0; top: .25rem; width: 1.2rem; height: 1.2rem; border-radius: 50%; border: 2px solid var(--salvia); background: var(--crema); }
.linea-tiempo li.hecho::after { content: '✓'; background: var(--verde); border-color: var(--verde); color: #fff; font-size: .8rem; text-align: center; line-height: 1.1rem; }
.linea-tiempo li.actual::after { background: var(--dorado); border-color: var(--dorado-osc); box-shadow: 0 0 0 5px rgba(227, 174, 74, .25); }
.linea-tiempo li.pendiente { opacity: .5; }
.linea-tiempo li.actual strong { color: var(--verde-osc); font-size: 1.25rem; }
.linea-tiempo strong, .linea-tiempo small { display: block; }
.buscar { display: grid; gap: .8rem; text-align: left; max-width: 420px; margin: 0 auto 2rem; }
.mis-pedidos { display: grid; gap: .5rem; }
.mi-pedido { display: block; padding: .6rem 1rem; background: var(--papel); border-radius: 12px; border: 1px solid rgba(185, 133, 35, .25); text-decoration: none; color: var(--verde-osc); }
.mi-pedido:hover { background: #fff; }

@media (max-width: 820px) {
  .compra__grilla { grid-template-columns: 1fr; }
  .resumen { position: static; }
  .campos { grid-template-columns: 1fr; }
  .linea { grid-template-columns: 52px 1fr 60px 28px; }
  .linea img { width: 52px; height: 52px; }
  .linea__total { display: none; }
  .cabecera__menu { display: block; }
  .cabecera__nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--papel); border-bottom: 1px solid rgba(185, 133, 35, .25); }
  .cabecera__nav.abierta { display: flex; }
  .cabecera__nav a { padding: .8rem 4vw; border-top: 1px solid rgba(185, 133, 35, .15); }
  .nosotros, .ubicacion { grid-template-columns: 1fr; }
  .nosotros .titulo, .ubicacion .titulo { text-align: center; }
  .chat-boton span { display: none; }
  .chat-boton { padding: .35rem; }
}

.mantenimiento { margin: 1.5rem auto 0; max-width: 640px; padding: 1.6rem 1.4rem; text-align: center; font: 600 1.35rem/1.4 'Marcellus', serif; letter-spacing: .03em; color: var(--verde-osc); background: rgba(255, 252, 244, .85); border: 1.5px dashed var(--dorado); border-radius: 18px; }
