/* ===== Colores y medidas generales ===== */
:root {
  --lila: #f4f0fe;
  --lila-2: #e9e0fc;
  --lila-3: #d9cbf8;
  --azul: #2433b5;
  --azul-osc: #1b2694;
  --rojo: #d7282f;
  --rojo-osc: #b11f25;
  --amarillo: #f6c324;
  --violeta: #a65ad8;
  --texto: #262b5e;
  --texto-suave: #545a8c;
  --blanco: #fff;
  --radio: 24px;
  --sombra: 0 10px 30px rgba(36, 51, 181, 0.1);
  --fuente-titulos: "Fredoka", system-ui, sans-serif;
  --fuente-texto: "Nunito", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--fuente-texto);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--texto);
  background: var(--lila);
}

h1, h2, h3 {
  font-family: var(--fuente-titulos);
  font-weight: 700;
  color: var(--azul);
  line-height: 1.12;
  margin: 0 0 .5em;
}

a { color: var(--azul); }
img { max-width: 100%; display: block; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.container--narrow { width: min(760px, 100% - 32px); }

/* ===== Botones ===== */
.btn {
  display: inline-block;
  padding: .8em 1.7em;
  border-radius: 999px;
  border: 2px solid var(--rojo);
  background: var(--rojo);
  color: var(--blanco);
  font-family: var(--fuente-titulos);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--rojo-osc);
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--rojo-osc); }
.btn--ghost { background: var(--blanco); color: var(--azul); border-color: var(--azul); box-shadow: 0 4px 0 var(--azul); }
.btn--ghost:hover { box-shadow: 0 6px 0 var(--azul); }
.btn--small { padding: .45em 1.3em; font-size: 1rem; box-shadow: 0 3px 0 var(--rojo-osc); }

/* ===== Dibujitos (chispas, huella, hueso) ===== */
.chispa { width: 34px; height: 34px; flex: none; }
.chispa--roja { color: var(--rojo); }
.chispa--amarilla { color: var(--amarillo); }
.chispa--espejo { transform: scaleX(-1); }

/* ===== Encabezado ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 240, 254, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--lila-3);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--fuente-titulos);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--azul);
  text-decoration: none;
}
/* Dibujo del logo (las salchichas y el cochecito); el nombre va como texto al lado */
.logo__img { display: block; height: 52px; width: auto; }
/* Logo del pie: va sobre la parte clara del degradado, sin recuadro */
.logo--light { color: var(--azul); font-size: 1.6rem; flex-direction: column; gap: .6rem; margin-bottom: 2.4rem; }
.logo--light .logo__img { height: 84px; }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a:not(.btn) {
  color: var(--azul);
  text-decoration: none;
  font-family: var(--fuente-titulos);
  font-weight: 600;
  font-size: 1.05rem;
}
.nav a:not(.btn):hover { color: var(--rojo); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background: var(--azul);
  border-radius: 3px;
  transition: transform .2s, opacity .2s;
}

/* ===== Portada ===== */
.hero { padding: 64px 0 80px; background: var(--lila-2); overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; }
.hero h1 { font-size: clamp(2.5rem, 5.5vw, 4rem); }
.hero__lead { font-size: 1.3rem; color: var(--texto); margin: 0 0 .6rem; }
.hero__sub { color: var(--texto-suave); max-width: 32em; margin: 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__actions .btn { padding-inline: 1.3em; }

/* Logo animado */
.hero__logo { position: relative; text-align: center; }
.hero__logo-mover { animation: logo-entra 2.2s cubic-bezier(.2, .7, .3, 1) both; }
.hero__logo img {
  width: 100%;
  max-width: 460px;
  height: auto;
  margin-inline: auto;
  animation: logo-trote .26s ease-in-out 8 alternate;
}
.hero__marca {
  margin: 10px 0 0;
  font-family: var(--fuente-titulos);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  color: var(--azul);
  animation: aparece .6s ease-out 2s both;
}
.hero__marca span { color: var(--rojo); }
.hero__chispa { position: absolute; width: 46px; height: 46px; animation: pop .45s cubic-bezier(.3, 1.6, .5, 1) 2.1s both; }
.hero__chispa--1 { left: 2%; top: -4%; color: var(--rojo); transform: rotate(-25deg); }
.hero__chispa--2 { right: 2%; top: 4%; color: var(--amarillo); transform: rotate(20deg); }

@keyframes logo-entra {
  0%   { transform: translateX(-120vw); }
  75%  { transform: translateX(4%); }
  88%  { transform: translateX(-1.5%); }
  100% { transform: translateX(0); }
}
@keyframes logo-trote { to { transform: translateY(-8px); } }
@keyframes aparece { from { opacity: 0; transform: translateY(14px); } }
@keyframes pop { from { opacity: 0; scale: 0; } }

.tag {
  display: inline-block;
  background: var(--blanco);
  color: var(--azul);
  font-weight: 700;
  padding: .35em 1em;
  border-radius: 999px;
  font-size: .9rem;
  margin: 0 0 1.1rem;
}

/* ===== Secciones ===== */
.section { padding: 88px 0; }
.section--alt { background: var(--lila-2); }
.section__title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
}
.section__intro.section__intro--corto { margin-bottom: 8px; font-family: var(--fuente-titulos); font-weight: 600; color: var(--azul); }
.section__intro { text-align: center; color: var(--texto-suave); max-width: 40em; margin: 0 auto 48px; font-size: 1.1rem; }

.titulo__corazon { width: 40px; height: 40px; flex: none; }


/* Historia */
.historia { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; margin: 8px 0 48px; }
.historia__texto p { color: var(--texto-suave); font-size: 1.1rem; }
.historia__texto .historia__destacado { font-family: var(--fuente-titulos); font-weight: 700; font-size: 1.6rem; line-height: 1.25; color: var(--azul); margin-top: 0; }
.historia__foto { margin: 0; text-align: center; }
.historia__foto img {
  width: 100%;
  max-width: 440px;
  height: auto;
  margin-inline: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radio);
  border: 6px solid var(--blanco);
  box-shadow: 0 14px 30px rgba(36, 51, 181, .18);
  transform: rotate(-2deg);
}
.historia--invertida { grid-template-columns: 1fr 1.15fr; margin: 64px 0 0; }
.historia--invertida .historia__foto img { transform: rotate(2deg); }
.historia__subtitulo { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--rojo); margin: 0 0 .4rem; }
.historia__foto figcaption { margin-top: 14px; font-family: var(--fuente-titulos); font-weight: 600; color: var(--azul); }

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.timeline__item {
  background: var(--blanco);
  border-radius: var(--radio);
  padding: 28px;
  box-shadow: var(--sombra);
  text-align: center;
}
.timeline__icon { font-size: 2.6rem; display: block; margin-bottom: .4rem; }
.timeline__item p { margin: 0; color: var(--texto-suave); }

/* Servicios */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 40px; }
.card {
  background: var(--blanco);
  border-radius: var(--radio);
  padding: 32px;
  box-shadow: var(--sombra);
  display: flex;
  flex-direction: column;
}
.card__head { display: flex; align-items: center; gap: 16px; margin-bottom: .8rem; }
.card__icon { position: relative; width: 64px; height: 64px; flex: none; }
.card__icon > svg:first-child { width: 100%; height: 100%; }
.card__chispa { position: absolute; width: 24px; height: 24px; top: -12px; right: -10px; color: var(--amarillo); transform: rotate(25deg); }
.card h3 { font-size: 1.8rem; margin: 0; }
.card p { color: var(--texto-suave); }

.checklist { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.checklist li { padding-left: 1.8em; position: relative; margin-bottom: .45em; font-weight: 600; }
.checklist li::before { content: "🐾"; position: absolute; left: 0; font-size: .9em; }

/* Salchineta: bloque destacado */
.section--sin-arriba { padding-top: 0; }
.destacado {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 48px;
  border-radius: 32px;
  background: var(--blanco);
  box-shadow: var(--sombra);
  border: 3px dashed var(--lila-3);
}
.destacado h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.destacado__texto p { color: var(--texto-suave); }
.destacado__texto strong { color: var(--azul); }
.destacado__foto img {
  width: 100%;
  max-width: 380px;
  margin-inline: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radio);
  border: 6px solid var(--blanco);
  box-shadow: 0 14px 30px rgba(36, 51, 181, .18);
  transform: rotate(2deg);
}
.tag--lila { background: var(--lila-2); }

/* Cada uno a su ritmo */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pillar {
  text-align: center;
  padding: 30px 20px;
  border-radius: var(--radio);
  background: var(--blanco);
  box-shadow: var(--sombra);
}
.pillar__icon {
  display: inline-grid;
  place-items: center;
  width: 72px;
  height: 72px;
  font-size: 2rem;
  border-radius: 50%;
  background: var(--lila-2);
  margin-bottom: .8rem;
}
.pillar h3 { font-size: 1.3rem; }
.pillar p { margin: 0; color: var(--texto-suave); font-size: .98rem; }

/* Zona */
.zona { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; }
.zona .section__title { justify-content: flex-start; }
.zona__note { font-weight: 700; color: var(--rojo); }
.zona__map {
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra);
  border: 6px solid var(--blanco);
  aspect-ratio: 4 / 3;
  background: var(--blanco);
}
.zona__map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* La manada: tira que se desliza */
.carrusel {
  overflow-x: auto;
  scrollbar-width: none;
  /* bordes que se desvanecen a los costados */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.carrusel::-webkit-scrollbar { display: none; }
.carrusel__pista {
  display: flex;
  gap: 22px;
  width: max-content;
  padding: 12px 22px 24px;
}
.carrusel .photo { width: 250px; flex: none; }
.photo { margin: 0; }
.photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radio);
  border: 5px solid var(--blanco);
  box-shadow: var(--sombra);
}
.photo figcaption { text-align: center; margin-top: .5rem; color: var(--texto-suave); font-size: .9rem; }
.photo .photo__name { font-family: var(--fuente-titulos); font-weight: 700; font-size: 1.25rem; color: var(--azul); }

/* Botón "Ver fotos" */
.btn--fotos {
  background: var(--blanco);
  color: var(--azul);
  border-color: var(--azul);
  box-shadow: 0 4px 0 var(--azul);
  padding: .6em 1.4em;
}
.btn--fotos:hover { box-shadow: 0 6px 0 var(--azul); }
.card__pie { margin-top: auto; padding-top: 22px; }
.destacado__texto .btn--fotos { margin-top: 24px; }
.centrado { text-align: center; margin-top: 40px; }

/* Ventanas de fotos */
.galeria {
  width: min(1100px, 100% - 24px);
  max-width: none;
  max-height: calc(100% - 24px);
  border: 0;
  border-radius: 28px;
  padding: 22px 0 26px;
  background: var(--lila);
  color: var(--texto);
  box-shadow: 0 20px 60px rgba(27, 38, 148, .35);
}
.galeria::backdrop { background: rgba(27, 38, 148, .55); backdrop-filter: blur(3px); }
.galeria__cabeza { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 26px 10px; }
.galeria__cabeza h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); }
.galeria__cerrar {
  width: 44px;
  height: 44px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: var(--blanco);
  color: var(--azul);
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--sombra);
}
.galeria__cerrar:hover { color: var(--rojo); }
.galeria .photo img.horizontal { aspect-ratio: auto 4 / 3; }
.galeria .photo { width: auto; }
.galeria .photo img,
.galeria .photo video {
  display: block;
  height: min(58vh, 440px);
  width: auto;
  /* proporción antes de cargar (así Safari las carga); las horizontales llevan .horizontal */
  aspect-ratio: auto 3 / 4;
  object-fit: cover;
  border-radius: var(--radio);
  border: 5px solid var(--blanco);
  box-shadow: var(--sombra);
  background: var(--lila-3);
}
/* Con pocas fotos no se desliza: quedan centradas */
.carrusel--quieto { -webkit-mask-image: none; mask-image: none; }
.carrusel--quieto .carrusel__pista { width: auto; min-width: 100%; }
/* centradas si entran; si no entran, se pueden deslizar sin que se corte la primera */
.carrusel--quieto .carrusel__pista > :first-child { margin-left: auto; }
.carrusel--quieto .carrusel__pista > :last-child { margin-right: auto; }

/* Preguntas */
.faq { margin-top: 32px; }
.faq details {
  background: var(--blanco);
  border-radius: 18px;
  margin-bottom: 12px;
  padding: 18px 22px;
  box-shadow: 0 4px 14px rgba(36, 51, 181, .07);
}
.faq summary {
  cursor: pointer;
  font-family: var(--fuente-titulos);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--azul);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--rojo); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: .8rem 0 0; color: var(--texto-suave); }

/* Mensajes de las familias (capturas de WhatsApp) */
.carrusel--mensajes .carrusel__pista { gap: 26px; padding-top: 18px; align-items: center; }
.mensaje {
  width: 270px;
  flex: none;
  margin: 0;
  border-radius: 26px;
  overflow: hidden;
  background: #efe7dd;
  border: 6px solid var(--blanco);
  box-shadow: var(--sombra);
}
.mensaje:nth-child(odd) { transform: rotate(-1.5deg); }
.mensaje:nth-child(even) { transform: rotate(1.5deg); }
/* barra verde como la de WhatsApp */
.mensaje__barra {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #075e54;
  color: var(--blanco);
  font-family: var(--fuente-titulos);
  font-weight: 600;
  font-size: .95rem;
}
.mensaje__avatar { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--lila-2); font-size: .9rem; object-fit: cover; }
/* la captura se ve entera, sobre el fondo oscuro del chat de WhatsApp */
.mensaje__captura { display: block; width: 100%; height: auto; background: #0b141a; }
.mensaje__captura--vacia { aspect-ratio: 9 / 13; background: #efe7dd; }
/* mientras no hay captura */
.mensaje__captura--vacia {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  color: #6b7f78;
  font-weight: 700;
  text-align: center;
  padding: 20px;
}
.mensaje__captura--vacia svg { width: 54px; height: 54px; color: #25d366; }

/* Contacto */
.contacto { text-align: center; }
.contacto .section__intro { margin-bottom: 24px; }
.contacto__list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 32px;
  font-size: 1.1rem;
}
.contacto__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--texto);
  font-weight: 700;
  text-decoration: none;
}
a.contacto__item { color: var(--azul); }
a.contacto__item:hover { text-decoration: underline; }
/* círculo con el color de cada marca y el ícono en blanco; sube un poquito al pasar el mouse */
.contacto__ico {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  background: var(--azul);
  color: var(--blanco);
  box-shadow: 0 3px 0 var(--azul-osc);
  transition: background .15s, transform .15s;
}
.contacto__ico svg { width: 22px; height: 22px; }
a.contacto__item:hover .contacto__ico { transform: translateY(-3px); filter: brightness(1.08); }
.contacto__ico--pin { background: var(--rojo); box-shadow: 0 3px 0 var(--rojo-osc); }
.contacto__ico--wa { background: #25d366; box-shadow: 0 3px 0 #1a9e4b; }
.contacto__ico--ig,
.footer__ig-ico { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); box-shadow: 0 3px 0 #9b1b78; }

/* Pie de página */
/* Degradado de lila claro (arriba, donde va el logo) a azul (abajo) */
.footer {
  background: linear-gradient(to bottom, var(--lila-2) 0%, var(--lila-2) 30%, #a9aef0 50%, #5862d0 66%, var(--azul) 80%, var(--azul-osc) 100%);
  color: var(--blanco);
  padding: 56px 0 32px;
  text-align: center;
}
.footer__inner { display: grid; justify-items: center; gap: .3rem; }
.footer p { margin: 0; font-family: var(--fuente-titulos); font-weight: 600; font-size: 1.1rem; }
.footer__ig { display: inline-flex; align-items: center; gap: 8px; color: var(--blanco); text-decoration: none; }
.footer__ig-ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--blanco); box-shadow: none; }
.footer__ig-ico svg { width: 17px; height: 17px; }
.footer__ig:hover { text-decoration: underline; }
.footer .footer__small { opacity: .7; font-family: var(--fuente-texto); font-weight: 400; font-size: .85rem; margin-top: .6rem; }
/* Firma de quien hizo la web: chiquita y discreta */
.footer .footer__firma { font-family: var(--fuente-texto); font-weight: 400; font-size: .8rem; opacity: .7; margin-top: .2rem; }
.footer__firma a { color: var(--blanco); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.footer__firma a:hover { opacity: 1; color: var(--amarillo); }

/* WhatsApp flotante */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: var(--blanco);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .2);
  z-index: 60;
  transition: transform .15s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; }

/* ===== Tablet ===== */
@media (max-width: 900px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }

}

/* ===== Celular ===== */
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--lila);
    border-bottom: 1px solid var(--lila-3);
    padding: 8px 16px 20px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 12px 0; width: 100%; text-align: center; }
  .nav .btn { margin-top: 8px; }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .logo { font-size: 1.2rem; }
  .logo__img { height: 42px; }

  .hero { padding: 32px 0 56px; }
  .hero__inner { grid-template-columns: 1fr; gap: 28px; }
  .hero__logo { order: -1; max-width: 360px; margin-inline: auto; }
  .hero__chispa { width: 34px; height: 34px; }

  .section { padding: 64px 0; }
  .section__title { gap: 8px; }
  .section__title .chispa { width: 26px; height: 26px; }
  .timeline,
  .cards,
  .zona { grid-template-columns: 1fr; }
  .historia { grid-template-columns: 1fr; gap: 28px; }
  .card { padding: 26px; }
  .destacado { grid-template-columns: 1fr; padding: 28px 22px; gap: 24px; }
  .destacado__foto { max-width: 320px; margin: 0 auto; }
  .zona .section__title { justify-content: center; }
  .zona { text-align: center; }
}

@media (max-width: 480px) {
  .mensaje { width: 230px; }
  .galeria .photo img, .galeria .photo video { height: 52vh; }
  .galeria__cabeza { padding: 0 18px 8px; }
  .pillars { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; text-align: center; }
  .carrusel .photo { width: 190px; }
  .carrusel__pista { gap: 14px; }
  .photo .photo__name { font-size: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__logo-mover, .hero__logo img, .hero__marca, .hero__chispa { animation: none; }
}
