/* ==========================================================================
   VON FLOSHEN · Criadero de Boyeros de Berna
   Paleta: blanco / negro / gris (todo se cambia desde las variables)
   ========================================================================== */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f4;
  --ink: #111111;
  --ink-2: #3d3d3d;
  --muted: #7a7a7a;
  --line: #e4e4e2;
  --accent: #111111;       /* color de botones y detalles */
  --accent-hover: #3a3a3a;
  --ff-display: "Jost", system-ui, sans-serif;
  --ff-body: "Inter", system-ui, sans-serif;
  --radius: 4px;
  --nav-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) - 8px); }
body {
  margin: 0; background: var(--bg); color: var(--ink-2);
  font-family: var(--ff-body); font-weight: 300; font-size: 1.02rem; line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--ff-display); color: var(--ink); font-weight: 400; line-height: 1.15; margin: 0 0 .6em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; }

.eyebrow {
  font-family: var(--ff-display); font-size: .8rem; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem;
}
.eyebrow--light { color: rgba(255, 255, 255, .8); }

.section { padding: clamp(72px, 10vw, 128px) 0; }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }

/* ---------- Botones ---------- */
.btn-vf {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--ff-display); font-size: .9rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 15px 30px; border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer; transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn-vf--dark { background: var(--accent); color: #fff; }
.btn-vf--dark:hover { background: var(--accent-hover); color: #fff; }
.btn-vf--light { background: #fff; color: var(--ink); }
.btn-vf--light:hover { background: transparent; color: #fff; border-color: #fff; }
.btn-vf--ghost { color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn-vf--ghost:hover { background: #fff; color: var(--ink); }

/* ---------- Nav ---------- */
/* sticky (y no fixed): en Chrome Android un fixed se corre unos px mientras la barra de direcciones se oculta/muestra.
   El margin-bottom negativo hace que el hero siga empezando en el borde superior, debajo de la barra. */
.nav {
  position: sticky; top: 0; z-index: 900; height: var(--nav-h); margin-bottom: calc(var(--nav-h) * -1);
}
.nav__in { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav__logo img { height: 40px; width: auto; }
.nav__logo .logo-dark { display: none; }
/* El blur va en un pseudo-elemento: un backdrop-filter en .nav haría que el menú mobile (position: fixed) se ancle a la barra y no a la pantalla */
.nav::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); box-shadow: 0 1px 0 var(--line); opacity: 0; transition: opacity .35s var(--ease); }
.nav.scrolled::before { opacity: 1; }
.nav.scrolled .logo-dark { display: block; }
.nav.scrolled .logo-light { display: none; }
.nav__menu { display: flex; align-items: center; gap: 30px; }
.nav__link {
  font-family: var(--ff-display); font-size: .88rem; font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; color: #fff; position: relative; padding: 6px 0; transition: color .3s;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__link:hover::after, .nav__link.active::after { transform: scaleX(1); }
.nav.scrolled .nav__link { color: var(--ink); }
.nav__link--cta { border: 1px solid currentColor; padding: 9px 20px; border-radius: var(--radius); }
.nav__link--cta::after { display: none; }
.nav__link--cta:hover { background: #fff; color: var(--ink); }
.nav.scrolled .nav__link--cta:hover { background: var(--ink); color: #fff; }

.nav__toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav__toggle span { display: block; height: 2px; background: #fff; margin: 6px 0; transition: transform .3s, opacity .3s, background .3s; }
.nav.scrolled .nav__toggle span, body.menu-open .nav__toggle span { background: var(--ink); }
body.menu-open .nav__toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.menu-open .nav__toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav__toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 991px) {
  .nav__toggle { display: block; position: relative; z-index: 2; }
  .nav__menu {
    position: fixed; inset: 0; background: #fff; flex-direction: column; justify-content: center; gap: 26px;
    opacity: 0; visibility: hidden; transition: opacity .3s var(--ease);
  }
  body.menu-open .nav__menu { opacity: 1; visibility: visible; }
  body.menu-open .nav__logo .logo-dark { display: block; position: relative; z-index: 2; }
  body.menu-open .nav__logo .logo-light { display: none; }
  .nav__link { color: var(--ink); font-size: 1.1rem; }
  .nav__link--cta:hover { background: var(--ink); color: #fff; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; color: #fff; overflow: hidden; background: #000; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.28) 60%, rgba(0,0,0,.12) 100%); }
.hero__in { position: relative; padding-top: var(--nav-h); padding-bottom: 60px; }
.hero h1 { color: #fff; font-weight: 300; font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.05; letter-spacing: -.015em; max-width: 20ch; margin-bottom: .4em; }
.hero__lead { max-width: 520px; font-size: 1.05rem; line-height: 1.55; color: rgba(255, 255, 255, .88); margin-bottom: 1.6rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); color: #fff; font-size: 1.3rem; opacity: .85; }
.scroll-cue i { display: block; animation: bounce 1.8s infinite; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
@media (max-width: 575px) { .hero__shade { background: rgba(0, 0, 0, .5); } .hero__cta .btn-vf { width: 100%; justify-content: center; } }

/* ---------- Nosotros ---------- */
.about__img { display: block; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; }
.about__img--tall { aspect-ratio: 4 / 5; }
.about__img--narrow { max-width: 460px; margin-left: auto; margin-right: auto; }
.about__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; transition: transform .8s var(--ease); }
.about__img:hover img { transform: scale(1.04); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(56px, 8vw, 96px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { text-align: center; padding: 34px 12px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-family: var(--ff-display); font-weight: 300; font-size: clamp(2rem, 4vw, 3rem); color: var(--ink); line-height: 1.1; }
.stat span { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 767px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Raza ---------- */
.feat { background: #fff; padding: 36px 30px; height: 100%; border: 1px solid var(--line); border-radius: var(--radius); }
.feat i { font-size: 1.5rem; color: var(--ink); margin-bottom: 18px; display: block; }
.feat p { margin: 0; font-size: .95rem; }
.note { text-align: center; color: var(--muted); font-size: .95rem; margin: 40px 0 0; }
.note i { margin-right: 8px; }

/* ---------- Cachorros ---------- */
.checks { list-style: none; padding: 0; margin: 0 0 2rem; }
.checks li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; gap: 14px; align-items: baseline; }
.checks i { color: var(--ink); font-size: .85rem; }

/* ---------- Galería ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 240px; gap: 14px; }
.g { overflow: hidden; border-radius: var(--radius); display: block; }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .3s; }
.g:hover img { transform: scale(1.05); opacity: .92; }
.g--tall { grid-row: span 2; }
.g--wide { grid-column: span 2; }
@media (max-width: 767px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; gap: 10px; } .g--wide { grid-column: span 2; } }

/* ---------- Ubicación ---------- */
.qr { text-align: center; max-width: 280px; margin: 0 auto; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); }
.qr img { width: 200px; height: 200px; margin: 0 auto 16px; }
.qr p { margin: 0; font-size: .9rem; color: var(--muted); }

/* ---------- Contacto ---------- */
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; }
.contact-list li { padding: 8px 0; display: flex; gap: 14px; align-items: center; }
.contact-list i { width: 20px; color: var(--ink); text-align: center; }
.contact-list a:hover { color: var(--ink); text-decoration: underline; }
.form { background: #fff; padding: clamp(24px, 4vw, 44px); border: 1px solid var(--line); border-radius: var(--radius); }
.form label { display: block; font-family: var(--ff-display); font-size: .78rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.form input, .form textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--bg-soft);
  border: 1px solid transparent; border-radius: var(--radius); padding: 13px 15px; transition: border-color .25s, background .25s;
}
.form input:focus, .form textarea:focus { outline: 0; background: #fff; border-color: var(--ink); }
.form .invalid { border-color: #b3261e; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__msg { margin: 16px 0 0; font-size: .95rem; min-height: 1.4em; }
.form__msg.ok { color: #2b6a3a; }
.form__msg.err { color: #b3261e; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 72px 0 32px; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer__logo { height: 44px; width: auto; margin-bottom: 20px; }
.footer h4 { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { padding: 4px 0; }
.footer a:hover { color: var(--ink); text-decoration: underline; }
.footer__contact i { width: 22px; color: var(--ink); }
.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding-top: 28px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.footer-badges { display: flex; align-items: flex-start; gap: 18px; }
.footer-badges img { display: block; height: auto; opacity: .9; }
.footer-badges a:first-child img { width: 59px; }   /* badge "Google Sitio Seguro" */
.footer-badges a:last-child img { width: 150px; }   /* "Desarrollado por Haciendo Web" */
@media (max-width: 767px) { .footer__grid { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Botones flotantes (WhatsApp + Scroll top) ---------- */
.floats { position: fixed; right: 22px; bottom: 22px; z-index: 950; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.fab {
  width: 58px; height: 58px; border-radius: 50%; border: 0; display: grid; place-items: center;
  font-size: 1.6rem; color: #fff; cursor: pointer; position: relative;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .25); transition: transform .3s var(--ease), background .3s;
}
.fab:hover { transform: scale(1.08); color: #fff; }
.fab--wa { background: #25d366; }
.fab--wa::before { content: ""; position: absolute; inset: 0; border-radius: 50%; animation: waPulse 2.2s infinite; }
@keyframes waPulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.fab--top { background: var(--ink); font-size: 1.2rem; width: 48px; height: 48px; opacity: 0; visibility: hidden; transform: translateY(14px); }
.fab--top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.fab--top.show:hover { background: var(--accent-hover); transform: translateY(0) scale(1.08); }

/* ---------- Animación de entrada ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue i, .fab--wa::before { animation: none; }
  html { scroll-behavior: auto; }
}
