:root {
  --ink: #343A40;
  --muted: #69635c;
  --paper: #f7f3ed;
  --paper-2: #efe9df;
  --white: #fff;
  --accent: #FF214F;
  --accent-dark: #FF214F;
  --line: rgba(52, 58, 64, .12);
  --dark-line: rgba(255, 255, 255, .12);
  --radius: 22px;
  --shadow: 0 24px 70px rgba(52, 58, 64, .12);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 9999; padding: 10px 14px;
  background: var(--white); border-radius: 10px; transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 1000; padding: 14px 0;
  transition: background .25s ease, box-shadow .25s ease, padding .25s ease;
}
.site-header.scrolled {
  background: rgba(52, 58, 64, .94); backdrop-filter: blur(16px);
  box-shadow: 0 8px 30px rgba(0,0,0,.14); padding: 8px 0;
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--white); font-weight: 900; letter-spacing: -.03em; }
.brand img { width: 52px; height: 52px; border-radius: 15px; object-fit: cover; }
.brand span { font-size: 1.08rem; }
.main-nav { display: flex; align-items: center; gap: 28px; color: rgba(255,255,255,.88); font-weight: 700; font-size: .94rem; }
.main-nav > a:not(.btn) { position: relative; }
.main-nav > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 2px;
  background: var(--accent); transition: right .2s ease;
}
.main-nav > a:not(.btn):hover::after { right: 0; }
.nav-toggle { display: none; border: 0; background: transparent; padding: 10px; }
.nav-toggle span:not(.sr-only) { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; border-radius: 9px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 22px; border-radius: 999px; font-weight: 850;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-small { min-height: 42px; padding: 0 17px; font-size: .88rem; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 12px 32px rgba(255,33,79,.24); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { color: #fff; border: 1px solid rgba(255,255,255,.34); background: rgba(255,255,255,.06); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-ghost-dark { color: var(--ink); border: 1px solid var(--line); background: rgba(255,255,255,.25); }

.hero {
  position: relative; min-height: 760px; height: 100svh; max-height: 980px; overflow: hidden;
  display: grid; align-items: center; color: var(--white); background: #343A40;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: linear-gradient(90deg, rgba(52,58,64,.92) 0%, rgba(52,58,64,.74) 42%, rgba(52,58,64,.18) 75%), url('../imgs/main.webp');
  background-size: cover; background-position: center;
  transform: scale(1.015);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.22), transparent 28%, rgba(0,0,0,.2));
}
.hero-grid { position: relative; z-index: 1; padding-top: 78px; }
.hero-copy { max-width: 760px; }
.eyebrow {
  margin: 0 0 16px; text-transform: uppercase; letter-spacing: .18em;
  font-size: .76rem; font-weight: 900; color: var(--accent);
}
.hero h1, .section-heading h2, .about-copy h2, .gallery-head h2, .contact-copy h2 {
  margin: 0; letter-spacing: -.055em; line-height: .98;
}
.hero h1 { font-size: clamp(3.4rem, 7vw, 6.8rem); max-width: 900px; }
.hero h1 span { color: #FF214F; }
.hero-lead { max-width: 670px; margin: 26px 0 0; color: rgba(255,255,255,.78); font-size: clamp(1.05rem, 2vw, 1.28rem); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.trust-list { list-style: none; padding: 0; margin: 50px 0 0; display: flex; flex-wrap: wrap; gap: 0; }
.trust-list li { min-width: 180px; padding: 0 24px; border-left: 1px solid rgba(255,255,255,.2); }
.trust-list li:first-child { padding-left: 0; border-left: 0; }
.trust-list strong, .trust-list span { display: block; }
.trust-list strong { font-size: 1.02rem; }
.trust-list span { color: rgba(255,255,255,.55); font-size: .86rem; margin-top: 3px; }
.scroll-cue { position: absolute; z-index: 2; bottom: 26px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.7); font-size: 1.8rem; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translate(-50%, 7px); } }

.section { padding: 112px 0; }
.section-light { background: var(--paper); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr); gap: 70px; align-items: end; margin-bottom: 52px; }
.section-heading h2, .about-copy h2, .gallery-head h2, .contact-copy h2 { font-size: clamp(2.5rem, 4.8vw, 4.6rem); }
.section-heading > p { margin: 0; color: var(--muted); line-height: 1.75; }
.section-heading.inverse { color: #fff; }
.section-heading.inverse > p { color: rgba(255,255,255,.62); }

.lot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.lot-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 8px 30px rgba(52,58,64,.05); transition: transform .25s ease, box-shadow .25s ease; }
.lot-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.lot-card.featured { transform: translateY(-14px); }
.lot-card.featured:hover { transform: translateY(-20px); }
.card-image { position: relative; aspect-ratio: 1.55; overflow: hidden; background: #ddd; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.lot-card:hover .card-image img { transform: scale(1.035); }
.price-pill, .feature-label { position: absolute; top: 16px; border-radius: 999px; font-size: .78rem; font-weight: 900; }
.price-pill { left: 16px; background: #fff; color: var(--ink); padding: 10px 13px; }
.feature-label { right: 16px; background: var(--accent); color: #fff; padding: 10px 13px; }
.card-content { padding: 28px; }
.card-kicker { margin: 0 0 8px; font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); font-weight: 900; }
.card-content h3, .product-panel h3 { margin: 0; font-size: 1.75rem; letter-spacing: -.035em; }
.product-list { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 10px; color: var(--muted); font-size: .93rem; }
.product-list li { position: relative; padding-left: 18px; }
.product-list li::before { content: "•"; position: absolute; left: 0; color: var(--accent); }
.card-copy { margin: 22px 0 52px; color: var(--muted); line-height: 1.7; }
.card-cta { display: flex; justify-content: space-between; align-items: center; padding-top: 18px; border-top: 1px solid var(--line); font-weight: 900; }
.card-cta span { font-size: 1.25rem; transition: transform .2s ease; }
.card-cta:hover span { transform: translateX(4px); }

.products-section { background: var(--ink); color: #fff; }
.product-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 26px; }
.tab-btn { border: 1px solid var(--dark-line); background: transparent; color: rgba(255,255,255,.68); padding: 12px 18px; border-radius: 999px; cursor: pointer; font-weight: 850; }
.tab-btn.active, .tab-btn:hover { color: #fff; border-color: var(--accent); background: var(--accent); }
.product-panel { display: grid; grid-template-columns: .82fr 1.18fr; overflow: hidden; border: 1px solid var(--dark-line); border-radius: 28px; background: #343A40; min-height: 420px; }
.product-panel[hidden] { display: none; }
.product-panel img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; }
.product-panel > div { padding: clamp(30px, 5vw, 64px); align-self: center; }
.product-panel h3 { font-size: clamp(2rem, 4vw, 3.8rem); max-width: 650px; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.chips span { padding: 10px 13px; border-radius: 999px; border: 1px solid var(--dark-line); color: rgba(255,255,255,.75); font-size: .86rem; background: rgba(255,255,255,.025); }
.center-action { display: flex; justify-content: center; margin-top: 32px; }

.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 80px; align-items: center; }
.about-photo { position: relative; }
.about-photo img { width: 100%; border-radius: 30px; box-shadow: var(--shadow); aspect-ratio: 1.12; object-fit: cover; }
.about-badge { position: absolute; right: -28px; bottom: 34px; width: 132px; height: 132px; background: var(--accent); color: #fff; border-radius: 50%; display: grid; place-content: center; text-align: center; box-shadow: 0 18px 40px rgba(255,33,79,.28); }
.about-badge strong { font-size: 1.7rem; }
.about-badge span { font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; }
.about-copy > p:not(.eyebrow) { color: var(--muted); line-height: 1.8; font-size: 1.03rem; margin: 26px 0 34px; }
.steps { display: grid; gap: 0; }
.steps > div { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 20px 0; border-top: 1px solid var(--line); }
.steps > div:last-child { border-bottom: 1px solid var(--line); }
.steps span { font-weight: 900; color: var(--accent); font-size: .8rem; padding-top: 3px; }
.steps p { margin: 0; color: var(--muted); line-height: 1.55; }
.steps strong { color: var(--ink); }

.gallery-section { padding: 96px 0 0; background: var(--paper-2); }
.gallery-head { display: flex; justify-content: space-between; gap: 40px; align-items: end; padding-bottom: 42px; }
.gallery-head h2 { max-width: 820px; }
.gallery-head > a { font-weight: 900; padding-bottom: 8px; border-bottom: 1px solid var(--ink); white-space: nowrap; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.gallery-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; }

.contact-section { display: grid; grid-template-columns: 1fr 1fr; min-height: 660px; background: #fff; }
.contact-map iframe { display: block; width: 100%; height: 100%; min-height: 660px; border: 0; filter: grayscale(.15) contrast(.95); }
.contact-copy { align-self: center; padding: 70px clamp(36px, 7vw, 110px); }
.contact-copy > p:not(.eyebrow) { color: var(--muted); line-height: 1.75; max-width: 650px; margin: 24px 0 32px; }
.contact-details { border-top: 1px solid var(--line); }
.contact-details > * { display: grid; grid-template-columns: 125px 1fr; gap: 18px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.contact-details span { color: var(--muted); font-size: .82rem; }
.contact-details strong { font-size: .92rem; }
.contact-details a:hover strong { color: var(--accent); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }

.site-footer { background: var(--ink); color: #fff; padding: 68px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr .7fr .7fr; gap: 40px; }
.footer-brand { width: fit-content; }
.footer-grid p { color: rgba(255,255,255,.5); margin: 14px 0 0; }
.footer-links, .footer-social { display: grid; align-content: start; gap: 12px; color: rgba(255,255,255,.72); }
.footer-links a:hover, .footer-social a:hover { color: #fff; }
.footer-bottom { margin-top: 52px; padding-top: 22px; border-top: 1px solid var(--dark-line); display: flex; justify-content: space-between; color: rgba(255,255,255,.42); font-size: .82rem; }

.whatsapp-float { position: fixed; right: 22px; bottom: 22px; z-index: 900; display: inline-flex; align-items: center; gap: 9px; background: #25d366; color: #071b0e; font-weight: 900; padding: 12px 16px; border-radius: 999px; box-shadow: 0 14px 36px rgba(0,0,0,.22); transition: transform .2s ease; }
.whatsapp-float:hover { transform: translateY(-3px); }
.whatsapp-float img { width: 28px; height: 28px; }

:focus-visible { outline: 3px solid #FF214F; outline-offset: 3px; }

@media (max-width: 980px) {
  .site-header { background: rgba(52,58,64,.92); }
  .nav-toggle { display: block; }
  .main-nav { position: fixed; inset: 80px 20px auto; display: grid; gap: 0; padding: 14px; border-radius: 18px; background: #343A40; box-shadow: var(--shadow); transform: translateY(-18px); opacity: 0; visibility: hidden; transition: .2s ease; }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; }
  .main-nav > a { padding: 15px 12px; }
  .main-nav > a:not(.btn)::after { display: none; }
  .main-nav .btn { margin-top: 8px; }
  .section-heading { grid-template-columns: 1fr; gap: 20px; }
  .lot-grid { grid-template-columns: 1fr 1fr; }
  .lot-card:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: .85fr 1.15fr; }
  .lot-card:last-child .card-image { height: 100%; aspect-ratio: auto; }
  .lot-card.featured { transform: none; }
  .lot-card.featured:hover { transform: translateY(-7px); }
  .about-grid { grid-template-columns: 1fr; gap: 60px; }
  .about-photo { width: min(720px, 94%); }
  .about-badge { right: -4%; }
  .contact-section { grid-template-columns: 1fr; }
  .contact-map iframe { min-height: 430px; }
}

@media (max-width: 720px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .brand img { width: 44px; height: 44px; }
  .main-nav { top: 72px; }
  .hero { min-height: 720px; height: auto; padding: 135px 0 80px; }
  .hero-bg { background-image: linear-gradient(180deg, rgba(52,58,64,.58) 0%, rgba(52,58,64,.90) 58%, rgba(52,58,64,.96) 100%), url('../imgs/main.webp'); background-position: 58% center; }
  .hero h1 { font-size: clamp(3rem, 14vw, 4.6rem); }
  .hero-actions { display: grid; }
  .hero-actions .btn { width: 100%; }
  .trust-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 0; margin-top: 36px; }
  .trust-list li { min-width: 0; padding: 0 14px; }
  .trust-list li:nth-child(3) { grid-column: 1 / -1; padding-left: 0; border-left: 0; }
  .section { padding: 78px 0; }
  .section-heading { margin-bottom: 34px; }
  .lot-grid { grid-template-columns: 1fr; }
  .lot-card:last-child { grid-column: auto; display: block; }
  .lot-card:last-child .card-image { aspect-ratio: 1.55; }
  .product-panel { grid-template-columns: 1fr; }
  .product-panel img { min-height: 240px; height: 240px; }
  .product-panel > div { padding: 28px; }
  .product-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .product-tabs::-webkit-scrollbar { display: none; }
  .tab-btn { flex: 0 0 auto; }
  .about-badge { width: 110px; height: 110px; bottom: -28px; }
  .gallery-head { display: grid; gap: 24px; }
  .gallery-head > a { width: fit-content; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid img:last-child { grid-column: 1 / -1; aspect-ratio: 2 / 1; }
  .contact-copy { padding: 62px 24px 76px; }
  .contact-details > * { grid-template-columns: 1fr; gap: 4px; }
  .contact-actions { display: grid; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .whatsapp-float span { display: none; }
  .whatsapp-float { width: 56px; height: 56px; padding: 0; justify-content: center; border-radius: 50%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

/* --- Reparto a domicilio: panel informativo en lugar de mapa/punto de venta --- */
.delivery-panel {
  min-height: 660px;
  display: grid;
  place-items: center;
  padding: 70px clamp(36px, 7vw, 100px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(52,58,64,.96), rgba(52,58,64,.80)),
    url('../imgs/furgoneta-tonipinchos.webp') center / cover no-repeat;
}
.delivery-panel-inner { max-width: 650px; }
.delivery-panel h2 {
  margin: 0;
  font-size: clamp(2.5rem, 4.8vw, 4.6rem);
  letter-spacing: -.055em;
  line-height: .98;
}
.delivery-panel-inner > p:not(.eyebrow) {
  margin: 24px 0 32px;
  color: rgba(255,255,255,.72);
  line-height: 1.75;
}
.delivery-points { border-top: 1px solid var(--dark-line); }
.delivery-points > div {
  display: grid;
  gap: 5px;
  padding: 18px 0;
  border-bottom: 1px solid var(--dark-line);
}
.delivery-points strong { font-size: 1rem; }
.delivery-points span { color: rgba(255,255,255,.62); font-size: .9rem; }
.about-note { margin-top: 24px !important; }
.about-note strong { color: var(--ink); }

@media (max-width: 980px) {
  .delivery-panel { min-height: 520px; }
}

@media (max-width: 720px) {
  .delivery-panel { min-height: 480px; padding: 64px 24px; }
}

/* --- Reseñas de clientes --- */
.reviews-section {
  background: #fff;
}
.reviews-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: 80px;
  align-items: center;
}
.reviews-copy h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.5rem, 4.8vw, 4.6rem);
  letter-spacing: -.055em;
  line-height: .98;
}
.reviews-copy > p:not(.eyebrow) {
  max-width: 680px;
  margin: 26px 0 32px;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.8;
}
.google-rating-card {
  padding: clamp(30px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 0 18px 50px rgba(52,58,64,.08);
}
.google-rating-top {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}
.google-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 1.15rem;
  font-weight: 900;
}
.rating-score {
  margin-top: 28px;
  font-size: clamp(4.4rem, 8vw, 7rem);
  font-weight: 950;
  letter-spacing: -.08em;
  line-height: .9;
}
.rating-stars {
  margin-top: 14px;
  color: #f5b301;
  letter-spacing: .12em;
  font-size: 1.2rem;
}
.google-rating-card p {
  margin: 22px 0 8px;
  color: var(--muted);
}
.google-rating-card p strong { color: var(--ink); }
.rating-note {
  display: block;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .reviews-grid { grid-template-columns: 1fr; gap: 42px; }
  .google-rating-card { max-width: 620px; }
}

@media (max-width: 720px) {
  .google-rating-card { padding: 28px; }
}
