:root {
  --ink: #161616;
  --muted: #5a5a62;
  --red: #da281e;
  --red-dark: #a81c14;
  --paper: #ffffff;
  --soft: #f4f4f5;
  --line: #e3e3e6;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  background: var(--paper);
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px clamp(18px, 5vw, 72px);
  color: #ffffff;
  transition: background 220ms ease, box-shadow 220ms ease, color 220ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.11);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
}

.brand-mark {
  display: block;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand small {
  opacity: 0.86;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-weight: 700;
}

.main-nav a {
  position: relative;
}

.main-nav a:not(.nav-cta)::after {
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 2px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.main-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 0;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: filter 180ms ease;
}

.nav-cta,
.btn-primary {
  color: #ffffff;
  background: var(--red);
}

.btn-secondary {
  color: var(--ink);
  background: #ffffff;
  box-shadow: inset 0 0 0 2px var(--ink);
}

.nav-cta:hover,
.btn:hover {
  filter: brightness(0.92);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.18);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 92vh;
  overflow: hidden;
  color: #ffffff;
  isolation: isolate;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  z-index: -3;
  background-image: url("https://images.unsplash.com/photo-1553062407-98eeb64c6a62?auto=format&fit=crop&w=1400&q=65");
  background-position: center;
  background-size: cover;
  transform: scale(1.04);
  transition: background-image 500ms ease, transform 6500ms ease;
}

.hero-bg.is-moving {
  transform: scale(1.1);
}

.hero-overlay {
  z-index: -2;
  background: rgba(12, 12, 12, 0.62);
}

.hero-content {
  width: min(880px, 100%);
  padding: 150px clamp(18px, 5vw, 72px) 110px;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.2rem, 5.4vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 680px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 2vw, 1.22rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-dots {
  position: absolute;
  right: clamp(18px, 5vw, 72px);
  bottom: 14px;
  display: flex;
  gap: 4px;
}

.hero-dots button {
  width: 40px;
  height: 44px;
  padding: 19px 0;
  border: 0;
  background: rgba(255, 255, 255, 0.45);
  background-clip: content-box;
  cursor: pointer;
}

.hero-dots button.is-active {
  background: #ffffff;
  background-clip: content-box;
}


.section,
.brands,
.contact {
  padding: 88px clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 770px;
  margin-bottom: 34px;
}

.section-heading h2,
.contact h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.section-heading p,
.contact-copy p {
  color: var(--muted);
  font-size: 1.05rem;
}

.benefits,
.audience {
  background: var(--soft);
}

.benefit-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.benefit,
.audience-item {
  padding-top: 20px;
  border-top: 2px solid var(--ink);
}

.benefit h3,
.audience-item h3,
.product-card h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  line-height: 1.18;
}

.benefit p,
.audience-item p,
.product-card p {
  margin: 0;
  color: var(--muted);
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.product-slider {
  position: relative;
}

.product-track {
  display: grid;
  grid-auto-columns: minmax(280px, 31%);
  grid-auto-flow: column;
  gap: 18px;
  overflow-x: auto;
  padding: 8px 4px 24px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.product-track::-webkit-scrollbar {
  display: none;
}

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  scroll-snap-align: start;
}

.product-card img {
  width: 100%;
  height: 245px;
  object-fit: cover;
}

.product-card div {
  padding: 22px;
}

.product-card a {
  display: inline-flex;
  margin-top: 18px;
  color: var(--red-dark);
  font-weight: 900;
}

.slider-btn {
  position: absolute;
  top: 42%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  font-size: 2rem;
}

.slider-btn.prev {
  left: -14px;
}

.slider-btn.next {
  right: -14px;
}

.brands {
  overflow: hidden;
  background: var(--ink);
  color: #ffffff;
}

.brands .section-heading p {
  color: rgba(255, 255, 255, 0.74);
}

.logo-marquee {
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.logo-track {
  display: flex;
  width: max-content;
  animation: marquee 24s linear infinite;
}

.logo-track span {
  display: grid;
  place-items: center;
  min-width: 190px;
  min-height: 84px;
  color: #ffffff;
  font-weight: 900;
  opacity: 0.9;
}

.center-action {
  margin-top: 30px;
  text-align: center;
}

.location {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 48px;
  align-items: center;
  background: var(--paper);
}

.location h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.location-copy > p {
  color: var(--muted);
  font-size: 1.05rem;
}

.location address {
  margin: 22px 0 14px;
  font-style: normal;
  font-size: 1.1rem;
  line-height: 1.6;
}

.location .location-note {
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.map-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  aspect-ratio: 4 / 3;
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: 34px;
  align-items: start;
  background: var(--soft);
}

.contact-copy {
  position: sticky;
  top: 110px;
}

.lead-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.lead-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font: inherit;
  background: #ffffff;
  outline: none;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(218, 40, 30, 0.16);
}

.lead-form small {
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 32px clamp(18px, 5vw, 72px);
  color: #ffffff;
  background: #121212;
}

.site-footer p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  align-items: baseline;
  justify-content: flex-end;
  gap: 10px 22px;
  max-width: 540px;
  font-weight: 800;
}

.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 18px;
  border-radius: 999px;
  color: #ffffff;
  background: #0a7a3d;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  font-weight: 900;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 980px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 76px;
    right: 18px;
    left: 18px;
    display: grid;
    gap: 0;
    padding: 14px;
    color: var(--ink);
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav a {
    padding: 12px;
  }

  .benefit-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .audience-grid,
  .location,
  .contact {
    grid-template-columns: 1fr;
  }

  .product-track {
    grid-auto-columns: minmax(270px, 48%);
  }

  .contact-copy {
    position: static;
  }
}

@media (max-width: 680px) {
  .site-header {
    padding: 12px 16px;
  }

  .brand {
    min-width: auto;
  }

  .brand small {
    font-size: 0.75rem;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-content {
    padding: 120px 18px 92px;
  }

  .hero-actions,
  .hero-actions .btn {
    width: 100%;
  }

  .hero-dots {
    right: 18px;
    bottom: 8px;
  }

  .section,
  .brands,
  .contact {
    padding: 64px 18px;
  }

  .benefit-list,
  .audience-grid {
    grid-template-columns: 1fr;
  }

  .product-track {
    grid-auto-columns: 88%;
  }

  .slider-btn {
    display: none;
  }

  .lead-form {
    padding: 20px;
  }

  .site-footer {
    display: grid;
  }

  .floating-whatsapp span {
    font-size: 0;
  }

  .floating-whatsapp::before {
    content: "WA";
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .logo-track {
    animation: none;
  }

  .hero-bg {
    transition: none;
  }
}

/* ---------- Accesibilidad ---------- */
.skip-link {
  position: fixed;
  top: -60px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius);
  color: #ffffff;
  background: var(--ink);
  font-weight: 800;
}

.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 0;
  box-shadow: 0 0 0 6px var(--ink);
}

.lead-form input:focus-visible,
.lead-form select:focus-visible,
.lead-form textarea:focus-visible {
  outline: none;
}

/* ---------- Formulario: errores y anti spam ---------- */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field-error {
  min-height: 0;
  color: #b42318;
  font-size: 0.9rem;
  font-weight: 700;
}

.lead-form [aria-invalid="true"] {
  border-color: #b42318;
}

.form-status {
  margin: 0;
  color: var(--red-dark);
  font-weight: 800;
}

.form-status.is-error {
  color: #b42318;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.lead-form small a {
  text-decoration: underline;
}

/* ---------- Banner de cookies ---------- */
.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 880px;
  margin: 0 auto;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.22);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-text p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.cookie-text a {
  color: var(--red-dark);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  flex-shrink: 0;
  gap: 10px;
}

.btn-ghost {
  color: var(--ink);
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--ink);
}

.has-cookie-banner .floating-whatsapp {
  bottom: 130px;
}

/* ---------- Pie de página: enlaces legales ---------- */
.link-button {
  padding: 0;
  border: 0;
  color: inherit;
  background: none;
  font: inherit;
  font-weight: 800;
  line-height: inherit;
  text-decoration: underline;
  cursor: pointer;
}

/* ---------- Páginas legales y 404 ---------- */
.legal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(18px, 5vw, 72px);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.back-link {
  color: var(--red-dark);
  font-weight: 800;
  text-decoration: underline;
}

.legal {
  width: min(780px, 100%);
  margin: 0 auto;
  padding: 56px 18px 80px;
}

.legal h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
}

.legal h2 {
  margin: 38px 0 10px;
  font-size: 1.35rem;
  line-height: 1.2;
}

.legal p,
.legal li {
  color: #2b2b30;
}

.legal ul {
  padding-left: 22px;
}

.legal a {
  color: var(--red-dark);
  text-decoration: underline;
}

.legal code {
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--soft);
}

.legal .legal-date {
  color: var(--muted);
}

.not-found {
  width: min(640px, 100%);
  margin: 0 auto;
  padding: 80px 18px 100px;
  text-align: center;
}

.not-found h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
}

.not-found p {
  color: var(--muted);
}

.not-found .not-found-code {
  margin: 0;
  color: var(--red);
  font-size: clamp(4rem, 14vw, 7rem);
  font-weight: 900;
  line-height: 1;
}

.not-found .hero-actions {
  justify-content: center;
}

@media (max-width: 680px) {
  .cookie-banner {
    right: 12px;
    bottom: 12px;
    left: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px;
  }

  .cookie-actions .btn {
    flex: 1;
  }

  .has-cookie-banner .floating-whatsapp {
    display: none;
  }

  .footer-links {
    gap: 12px 18px;
  }
}

/* El menú fijo no tapa los títulos al saltar a una sección */
section[id] {
  scroll-margin-top: 72px;
}

.footer-logo {
  width: min(240px, 100%);
  height: auto;
  border-radius: 4px;
}

@media (max-width: 680px) {
  .footer-links {
    justify-content: flex-start;
    max-width: none;
  }
}
