/* Plan Mascotas · motivo: la chapita del collar (borde marcado, agujerito, sombra sólida tipo sticker) */
:root {
  --noche: #1E2347;      /* texto y bordes */
  --cielo: #F2F6FF;      /* fondo */
  --celeste: #DCE7FF;    /* bandas y fondos de imagen */
  --pasto: #13805A;      /* botones y links */
  --pasto-osc: #0C5E41;
  --pelota: #FFD23F;     /* precios, destacados */
  --lengua: #FF9EB5;     /* solo detalles */
  --gris: #5B6182;
  --linea: #C9D4F2;
  --rojo: #C62828;
  --titulos: 'Baloo 2', 'Trebuchet MS', system-ui, sans-serif;
  --texto: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --sticker: 0 4px 0 var(--noche);
  /* compatibilidad con estilos viejos */
  --tinta: var(--noche); --agua: var(--pasto); --agua-claro: var(--celeste); --arena: var(--cielo); --lima: var(--pelota); --verde: var(--pasto);
}
* { box-sizing: border-box; }
body { margin: 0; font: 17px/1.65 var(--texto); color: var(--noche); background: var(--cielo); }
img { max-width: 100%; height: auto; }
a { color: var(--pasto); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--pasto-osc); }
:focus-visible { outline: 3px solid var(--pasto); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--titulos); line-height: 1.12; letter-spacing: -.01em; font-weight: 800; }
h1 { font-size: clamp(34px, 5.4vw, 54px); margin: .25em 0 .3em; }
h2 { font-size: clamp(26px, 3.6vw, 34px); margin: 1.8em 0 .5em; }
h3 { font-size: 21px; margin: 1.3em 0 .35em; font-weight: 700; }
.ancho { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.gris { color: var(--gris); font-size: .92em; }

/* ---------- Cabecera ---------- */
.sitio-cab { background: #fff; border-bottom: 2px solid var(--noche); position: relative; z-index: 2; }
.sitio-cab .ancho { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 66px; }
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--noche); text-decoration: none; font: 800 25px/1 var(--titulos); letter-spacing: -.02em; }
.logo:hover { color: var(--noche); }
.logo-marca { width: 34px; height: 34px; color: var(--noche); flex: none; }
.sitio-cab nav { display: flex; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
.sitio-cab nav a { color: var(--noche); text-decoration: none; font-weight: 800; font-size: 15px; }
.sitio-cab nav a:hover { color: var(--pasto); }

.buscador { display: flex; flex: 1; max-width: 400px; border: 2px solid var(--noche); border-radius: 99px; background: #fff; overflow: hidden; }
.buscador input { flex: 1; min-width: 0; padding: 9px 16px; border: 0; font: 15px var(--texto); color: var(--noche); background: transparent; }
.buscador input:focus { outline: none; }
.buscador:focus-within { box-shadow: 0 0 0 3px var(--pelota); }
.buscador button { border: 0; border-left: 2px solid var(--noche); background: var(--pelota); color: var(--noche); padding: 0 14px; cursor: pointer; display: grid; place-items: center; }
.buscador.grande { max-width: 520px; margin: 22px 0 14px; box-shadow: var(--sticker); }
.buscador.grande:focus-within { box-shadow: var(--sticker), 0 0 0 4px var(--pelota); }
.buscador.grande input { padding: 14px 20px; font-size: 17px; }
.buscador.grande button { padding: 0 24px; font: 800 17px var(--titulos); }

/* ---------- Portada ---------- */
.portada { background: var(--celeste); color: var(--noche); padding: 46px 0 0; border-bottom: 2px solid var(--noche); overflow: hidden; }
.portada-grilla { display: grid; grid-template-columns: 1.05fr .95fr; align-items: end; gap: 10px; }
.portada-texto { padding-bottom: 48px; }
.portada h1 { max-width: 560px; }
.portada p { max-width: 520px; font-size: 19px; margin: 0; }
.portada .cifras { font-size: 15px; color: var(--gris); }
.dibujo-portada { width: 100%; max-width: 470px; display: block; margin: 0 auto -2px; }
.dibujo-portada .cola { transform-origin: 352px 292px; animation: cola 2.6s ease-in-out infinite; }
@keyframes cola { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-9deg); } }
@media (prefers-reduced-motion: reduce) { .dibujo-portada .cola { animation: none; } }

/* ---------- Tarjetas de guías: chapitas ---------- */
.grilla-guias { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 30px 22px; padding: 18px 0 40px; }
.guia-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 2px solid var(--noche); border-radius: 28px;
  box-shadow: var(--sticker); color: inherit; text-decoration: none; transition: transform .12s, box-shadow .12s; }
.guia-card::before { content: ""; position: absolute; top: -13px; left: 50%; width: 22px; height: 22px; margin-left: -11px;
  border: 3px solid var(--noche); border-radius: 50%; background: var(--cielo); }
.guia-card:hover { transform: translateY(-3px) rotate(-.6deg); box-shadow: 0 7px 0 var(--noche); color: inherit; }
.guia-card-img { display: grid; place-items: center; height: 170px; margin: 18px 18px 0; background: var(--celeste); border-radius: 20px; }
.guia-card-img { isolation: isolate; }
.guia-card-img img { width: 100%; height: 150px; object-fit: contain; mix-blend-mode: multiply; }
.guia-card-img .icono-grupo { width: 64px; height: 64px; background: transparent; }
.guia-card-txt { display: block; padding: 14px 20px 20px; }
.guia-card-grupo { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: var(--pasto); }
.guia-card-grupo .icono-grupo { width: 22px; height: 22px; padding: 3px; }
.guia-card h3 { margin: 4px 0 6px; font-size: 21px; }
.guia-card p { margin: 0 0 8px; font-size: 15px; }

/* ---------- Categorías ---------- */
#categorias { padding-bottom: 30px; }
.grupos { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.grupo-caja { background: #fff; border: 2px solid var(--linea); border-radius: 22px; padding: 16px 18px 18px; }
.grupo { display: flex; align-items: center; gap: 10px; font: 800 19px/1.2 var(--titulos); margin: 0 0 12px; color: var(--noche); }
.icono-grupo { display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 7px; flex: none;
  background: var(--pelota); border: 2px solid var(--noche); border-radius: 50%; color: var(--noche); }
.icono-grupo svg { width: 100%; height: 100%; }
.lista-cats { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lista-cats a { display: inline-block; background: var(--cielo); border: 1.5px solid var(--linea); border-radius: 18px; padding: 5px 13px;
  color: var(--noche); text-decoration: none; font-size: 15px; font-weight: 700; }
.lista-cats a:hover { border-color: var(--noche); background: var(--pelota); color: var(--noche); }

/* ---------- Texto de las guías ---------- */
.migas { font-size: 14px; color: var(--gris); padding-top: 20px; }
.migas a { color: var(--gris); }
.guia-cab, .texto { max-width: 740px; }
.ancho.texto { max-width: 1080px; }
.ancho.texto > * { max-width: 740px; }
.bajada { font-size: 20px; color: var(--gris); }
.meta { font-size: 14px; color: var(--gris); }
.aviso { font-size: 13px; color: var(--gris); border-left: 4px solid var(--pelota); padding-left: 10px; }
.aviso-previa { background: #FFF4C7; border: 2px dashed var(--noche); padding: 8px 12px; border-radius: 12px; }
.texto p, .texto li { max-width: 68ch; }

.rapida { background: #fff; border: 2px solid var(--noche); border-radius: 24px; box-shadow: var(--sticker); padding: 6px 26px 12px; margin: 30px 0; max-width: 760px; }
.rapida h2 { margin-top: .7em; font-size: 24px; }

/* elecciones (las mejores por perfil) */
.elecciones { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; margin: 30px 0; }
.tarjeta { background: #fff; border: 2px solid var(--noche); border-radius: 24px; box-shadow: var(--sticker); padding: 16px 18px 18px; display: flex; flex-direction: column; }
/* fotos de Mercado Libre (fondo blanco) sobre celeste: el blanco se funde con multiply */
.foto, .ficha-img, .prod-img { display: block; background: var(--celeste); border-radius: 18px; padding: 10px; isolation: isolate; }
.foto img, .ficha-img img, .prod-img img { display: block; margin: 0 auto; mix-blend-mode: multiply; background: none; border-radius: 0; }
.tarjeta img { height: 160px; object-fit: contain; width: 100%; }
.tarjeta h3 { font-size: 18px; margin: 10px 0 4px; }
.tarjeta h3 a { color: inherit; text-decoration: none; }
.tarjeta h3 a:hover { color: var(--pasto); }
.tarjeta .por-que { font-size: 15px; flex: 1; }
.rol { align-self: flex-start; margin: -30px 0 10px; background: var(--pelota); color: var(--noche); border: 2px solid var(--noche); font: 800 14px/1 var(--titulos);
  padding: 7px 12px 5px; border-radius: 99px; }
/* precio como etiqueta de precio con agujerito */
.precio { font-weight: 800; margin: 6px 0; }
.tarjeta .precio, .ficha .precio { display: inline-block; align-self: flex-start; position: relative; background: var(--pelota); color: var(--noche);
  padding: 3px 12px 3px 22px; border-radius: 4px 10px 10px 4px; clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%); }
.tarjeta .precio::before, .ficha .precio::before { content: ""; position: absolute; left: 9px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: #fff; }
.estrellas { color: #9A6A00; font-weight: 700; margin-left: 6px; }

.btn { display: inline-block; background: var(--pasto); color: #fff; text-decoration: none; font: 800 16px/1 var(--titulos);
  padding: 13px 20px 11px; border-radius: 99px; text-align: center; border: 2px solid var(--noche); box-shadow: 0 3px 0 var(--noche); }
.btn:hover { background: var(--pasto-osc); color: #fff; transform: translateY(1px); box-shadow: 0 2px 0 var(--noche); }
.btn-sec { display: inline-block; font-size: 15px; margin-left: 10px; }

.claves li { margin: 8px 0; }
.tabla-scroll { overflow-x: auto; background: #fff; border: 2px solid var(--noche); border-radius: 18px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { padding: 11px 13px; border-bottom: 1px solid var(--linea); text-align: left; vertical-align: top; }
tbody tr:nth-child(even) td { background: #F8FAFF; }
thead th { background: var(--celeste); color: var(--noche); font: 800 15px var(--titulos); white-space: nowrap; border-bottom: 2px solid var(--noche); }
td.num { white-space: nowrap; }
.specs th { width: 45%; color: var(--gris); font-weight: 700; }

/* fichas de producto */
.ficha { display: grid; grid-template-columns: 220px 1fr; gap: 26px; background: #fff; border: 2px solid var(--linea);
  border-radius: 24px; padding: 22px; margin: 20px 0; }
.ficha-img { align-self: start; }
.ficha-img img { width: 100%; height: 200px; object-fit: contain; }
.ficha h3 { margin-top: 0; font-size: 24px; }
.ficha h3 a { color: inherit; text-decoration: none; }
.pros-contras { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; font-size: 15px; }
.pros-contras h4, .pros-contras h3 { margin: 6px 0; font: 800 16px var(--titulos); }
.pros-contras > div:first-child h4, .pros-contras > div:first-child h3 { color: var(--pasto); }
.pros-contras > div:last-child h4, .pros-contras > div:last-child h3 { color: var(--rojo); }
.pros-contras ul { margin: 0; padding-left: 18px; }
blockquote { position: relative; margin: 18px 0; padding: 14px 18px 14px 20px; background: var(--cielo); border: 2px solid var(--linea);
  border-radius: 6px 20px 20px 20px; font-style: italic; }
blockquote cite { display: block; font-style: normal; font-size: 13px; color: var(--gris); margin-top: 6px; }

/* página de producto */
.prod-cab { display: grid; grid-template-columns: minmax(240px, 380px) 1fr; gap: 32px; background: #fff;
  border: 2px solid var(--noche); box-shadow: var(--sticker); border-radius: 26px; padding: 26px; margin-top: 14px; }

.prod-cab h1 { font-size: clamp(26px, 3.5vw, 34px); }
.precio-grande { font: 800 42px/1.1 var(--titulos); margin: 10px 0 0; }
.grafico { width: 100%; max-width: 680px; background: #fff; border: 2px solid var(--linea); border-radius: 18px; }
.grafico .eje { stroke: var(--linea); }
.grafico .linea { fill: none; stroke: var(--pasto); stroke-width: 3; stroke-linejoin: round; }
.grafico .punto { fill: var(--pelota); stroke: var(--noche); stroke-width: 2; }
.grafico .et { font: 12px var(--texto); fill: var(--gris); }

.relacionadas ul { columns: 2; padding-left: 18px; }
.resultados li { margin: 6px 0; }

/* preguntas frecuentes */
.faq h3 { font-size: 20px; }

/* ---------- Pie con huellas ---------- */
.sitio-pie { position: relative; background: var(--noche); color: #DCE2FF; margin-top: 100px; padding: 34px 0 30px; }
.sitio-pie .huellas { position: absolute; top: -48px; left: 0; right: 0; height: 44px; opacity: .22;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='44' viewBox='0 0 150 44'%3E%3Cg fill='%231E2347'%3E%3Cg transform='translate%2830 30%29 rotate%2890%29 scale%281.7%29'%3E%3Cellipse rx='4.6' ry='3.8' cy='2'/%3E%3Ccircle cx='-4.6' cy='-3' r='1.7'/%3E%3Ccircle cx='-1.6' cy='-5.6' r='1.7'/%3E%3Ccircle cx='1.6' cy='-5.6' r='1.7'/%3E%3Ccircle cx='4.6' cy='-3' r='1.7'/%3E%3C/g%3E%3Cg transform='translate%28105 14%29 rotate%2890%29 scale%281.7%29'%3E%3Cellipse rx='4.6' ry='3.8' cy='2'/%3E%3Ccircle cx='-4.6' cy='-3' r='1.7'/%3E%3Ccircle cx='-1.6' cy='-5.6' r='1.7'/%3E%3Ccircle cx='1.6' cy='-5.6' r='1.7'/%3E%3Ccircle cx='4.6' cy='-3' r='1.7'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat-x left center; }
.sitio-pie a { color: var(--pelota); }
.pie-marca { display: flex; align-items: center; gap: 10px; font: 800 22px var(--titulos); color: #fff; margin: 0 0 6px; }
.pie-marca .logo-marca { color: var(--noche); width: 40px; height: 40px; padding: 3px; background: #fff; border-radius: 50%; }
.sitio-pie .chico { font-size: 13px; color: #AEB6E0; max-width: 760px; }

/* ---------- Imágenes propias de las guías ---------- */
.portada-guia { margin: 0 0 24px; }
.portada-guia img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 24px; border: 2px solid var(--noche); display: block; }
.img-guia { margin: 22px 0; }
.img-guia img { width: 100%; height: auto; border-radius: 20px; display: block; }
.img-guia figcaption { font-size: .85em; color: var(--gris); margin-top: 6px; }

/* ---------- Ofertas ---------- */
.oferta { display: inline-block; background: #FFE3E3; color: var(--rojo); font-weight: 800; font-size: .8em; padding: 2px 9px; border-radius: 99px; margin-left: 4px; white-space: nowrap; }
.oferta-tarjeta .rol { background: var(--rojo); color: #fff; }
.oferta-tarjeta s { font-weight: 400; margin: 0 4px; }
.alerta { color: var(--rojo); }
.banner-ofertas { display: flex; align-items: center; gap: 12px; background: #fff; border: 2px solid var(--noche); box-shadow: var(--sticker);
  padding: 14px 20px; border-radius: 20px; color: inherit; text-decoration: none; margin: 30px 0 0; }
.banner-ofertas::before { content: "%"; display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%;
  background: var(--rojo); color: #fff; font: 800 20px/1 var(--titulos); }
.banner-ofertas:hover { color: inherit; transform: translateY(-2px); }
.como-medimos { background: #fff; border: 2px solid var(--linea); padding: 4px 20px; border-radius: 20px; }
.vacio { padding: 18px 20px; background: #fff; border: 2px dashed var(--linea); border-radius: 20px; }

/* ---------- Celular ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .sitio-cab .ancho { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  .sitio-cab .buscador { order: 3; max-width: none; flex-basis: 100%; }
  body:has(.portada) .sitio-cab .buscador { display: none; }   /* en la home ya está el buscador grande */
  .logo { font-size: 22px; } .logo-marca { width: 30px; height: 30px; }
  .sitio-cab nav { gap: 12px; }
  .portada { padding-top: 26px; }
  .portada-grilla { grid-template-columns: 1fr; }
  .portada-texto { padding-bottom: 6px; }
  .dibujo-portada { max-width: 330px; }
  .ficha, .prod-cab { grid-template-columns: 1fr; }
  .ficha-img img { height: 180px; }
  .pros-contras { grid-template-columns: 1fr; }
  .relacionadas ul { columns: 1; }
}

/* ---------- Temas ---------- */
.lista-temas { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.lista-temas a { display: inline-flex; align-items: center; gap: 9px; background: #fff; border: 2px solid var(--linea); border-radius: 99px;
  padding: 5px 16px 5px 6px; color: var(--noche); text-decoration: none; font-weight: 800; font-size: 15px; }
.lista-temas a:hover { border-color: var(--noche); background: var(--pelota); }
.lista-temas .icono-grupo { width: 32px; height: 32px; padding: 6px; }
.lista-temas.grande { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.lista-temas.grande a { display: flex; border-radius: 22px; padding: 12px 16px 12px 12px; border-color: var(--noche); box-shadow: var(--sticker); }
.lista-temas.grande a:hover { transform: translateY(-2px); }
.lista-temas.grande .icono-grupo { width: 46px; height: 46px; padding: 9px; }
.lista-temas.grande span { display: flex; flex-direction: column; line-height: 1.25; }
.lista-temas.grande b { font: 800 18px/1.15 var(--titulos); }
.lista-temas.grande small { font-weight: 600; color: var(--gris); font-size: 13px; }
.tema-cab { background: var(--celeste); border-bottom: 2px solid var(--noche); padding-bottom: 30px; }
.tema-cab-fila { display: flex; gap: 22px; align-items: flex-start; }
.tema-cab-fila > .icono-grupo { width: 84px; height: 84px; padding: 16px; margin-top: 18px; border-width: 3px; box-shadow: var(--sticker); }
.tema-seccion { padding-top: 6px; }
.guia-card-pick { display: block; font-size: 14px; background: var(--cielo); border-radius: 12px; padding: 8px 10px; margin-top: 4px; }
.precio-chico { display: inline-block; background: var(--pelota); border-radius: 6px; padding: 0 6px; font-weight: 800; white-space: nowrap; }
.otros-temas { padding-top: 10px; }
/* relacionadas al pie de cada guía */
.rel-grilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.rel-item { display: flex; align-items: center; gap: 10px; background: #fff; border: 2px solid var(--linea); border-radius: 18px; padding: 10px 14px 10px 10px;
  color: var(--noche); text-decoration: none; font-weight: 800; }
.rel-item:hover { border-color: var(--noche); color: var(--noche); background: var(--pelota); }
.rel-temas { margin-top: 16px; }
.relacionadas ul { columns: initial; }
@media (max-width: 760px) {
  .tema-cab-fila > .icono-grupo { width: 56px; height: 56px; padding: 11px; }
}

/* ---------- Directorio ---------- */
.grilla-lugares { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.lugar-card { background: #fff; border: 2px solid var(--linea); border-radius: 22px; padding: 16px 18px; display: flex; flex-direction: column; }
.lugar-card h3 { margin: 0 0 2px; font-size: 20px; }
.lugar-card h3 a { color: var(--noche); text-decoration: none; }
.lugar-card p { margin: 4px 0; font-size: 15px; }
.lugar-card .btn { margin-top: auto; align-self: flex-start; font-size: 14px; padding: 10px 16px 8px; }
.lugar-servicios { display: flex; flex-wrap: wrap; gap: 6px; }
.lugar-servicios span { background: var(--celeste); border-radius: 99px; padding: 2px 10px; font-size: 13px; font-weight: 700; }
.lugar-ficha { grid-template-columns: 1fr minmax(240px, 320px); }
.lugar-datos { background: var(--cielo); border-radius: 18px; padding: 16px 18px; }
.lugar-botones { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-claro { background: #fff; color: var(--noche); }
.btn-claro:hover { background: var(--pelota); color: var(--noche); }
.chico { font-size: 13px; }
.pocas-opiniones { display: inline-block; margin-left: 6px; background: #fff; border: 1.5px dashed var(--gris); color: var(--gris); border-radius: 99px; padding: 0 8px; font-size: 12px; font-weight: 700; }
