/* =========================================================
   SUSLIMP — Estilos globales (mobile-first)
   ========================================================= */

:root {
  --color-yellow: #f1d168;
  --color-yellow-strong: #e8b93e;
  --color-yellow-soft: #faf0d4;
  --color-black: #1a1a1a;
  --color-dark: #22262b;
  --color-dark-2: #37424e;
  --color-white: #ffffff;
  --color-gray-100: #f5f5f5;
  --color-gray-300: #e9ecef;
  --color-gray-500: #7a7f85;
  --color-whatsapp: #25d366;

  --font-heading: 'Manrope', 'Inter', 'Segoe UI', sans-serif;
  --font-body: 'Manrope', 'Inter', 'Segoe UI', sans-serif;

  --radius-md: 14px;
  --radius-lg: 26px;
  --radius-xl: 32px;
  --shadow-card: 0 20px 50px rgba(26, 26, 26, 0.1);
  --shadow-soft: 0 6px 18px rgba(26, 26, 26, 0.07);

  --header-height: 72px;
  --max-width: 1180px;
  --max-width-narrow: 760px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-black);
  background: var(--color-white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 700;
}
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-yellow);
  color: var(--color-black);
  padding: 12px 18px;
  z-index: 200;
  border-radius: 0 0 var(--radius-md) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--color-yellow-strong);
  color: var(--color-black);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { background: var(--color-yellow); }

/* ---------- Borde animado (beam giratorio) ---------- */
.btn-border-beam {
  position: relative;
  display: inline-block;
  padding: 3px;
  border-radius: 999px;
  overflow: hidden;
}
.btn-border-beam::before {
  content: '';
  position: absolute;
  inset: -60%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    #ffd400 30deg,
    transparent 100deg,
    #ffffff 190deg,
    transparent 260deg,
    #ffd400 330deg,
    transparent 360deg
  );
  animation: btn-border-spin 3.2s linear infinite;
}
.btn-border-beam .btn {
  position: relative;
  z-index: 1;
}
@keyframes btn-border-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .btn-border-beam::before { animation: none; }
}

.btn-dark {
  background: var(--color-black);
  color: var(--color-white);
}
.btn-dark:hover { background: var(--color-dark-2); }

.btn-outline {
  background: transparent;
  border-color: var(--color-black);
  color: var(--color-black);
}
.btn-outline:hover { background: var(--color-black); color: var(--color-white); }

.btn-whatsapp {
  background: var(--color-whatsapp);
  color: var(--color-white);
}
.btn-whatsapp:hover { filter: brightness(1.05); }

.btn-block { width: 100%; }

/* ---------- Header flotante ---------- */
body { padding-top: 82px; }
@media (min-width: 900px) { body { padding-top: 90px; } }

.site-header {
  position: fixed;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 100;
  max-width: 1040px;
  margin: 0 auto;
  border-radius: 999px;
  background: var(--color-white);
  box-shadow: 0 6px 20px rgba(26, 26, 26, 0.06);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  padding: 0 8px 0 18px;
  max-width: none;
}
@media (min-width: 900px) {
  .site-header { top: 18px; }
  .site-header .container { height: 58px; padding: 0 10px 0 22px; }
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--color-black);
}
.brand img { height: 30px; width: auto; }

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
}
.nav-toggle:hover { background: var(--color-gray-100); }
.nav-toggle .bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-black);
  position: relative;
  transition: background 0.2s ease;
}
.nav-toggle .bar::before,
.nav-toggle .bar::after {
  content: '';
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--color-black);
  transition: transform 0.2s ease;
}
.nav-toggle .bar::before { top: -8px; }
.nav-toggle .bar::after { top: 8px; }
.nav-toggle[aria-expanded="true"] .bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .bar::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar::after { transform: translateY(-8px) rotate(-45deg); }

.main-nav {
  position: fixed;
  top: 78px;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: calc(100vh - 78px);
  height: calc(100svh - 78px);
  background: var(--color-white);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
  z-index: 99;
}
.main-nav.is-open { transform: translateX(0); }
.main-nav ul {
  display: flex;
  flex-direction: column;
  padding: 20px;
  gap: 4px;
}
.main-nav a {
  display: block;
  padding: 16px 12px;
  font-weight: 600;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
  min-height: 44px;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: var(--color-yellow-soft);
  color: var(--color-black);
}
.main-nav .nav-cta { margin-top: 12px; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .main-nav {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    width: auto;
    height: auto;
    transform: none;
    background: transparent;
    overflow: visible;
  }
  .main-nav ul {
    flex-direction: row;
    align-items: center;
    padding: 0;
  }
  .main-nav a { padding: 10px 14px; font-size: 0.88rem; }
  .main-nav .nav-cta { margin-top: 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 56px 0 48px;
  text-align: center;
  overflow: hidden;
  box-sizing: border-box;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 72px;
}
@media (min-width: 900px) {
  .hero { padding: 72px 0 56px; }
  .hero .container { gap: 100px; }
}
.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero h1 {
  font-size: 1.9rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  max-width: 26ch;
  line-height: 1.18;
  margin-bottom: 0;
  color: var(--color-dark-2);
}
.hero h1 .highlight {
  position: relative;
  display: inline-block;
  font-weight: 800;
  color: var(--color-black);
  animation: highlight-color 0.7s ease forwards;
  animation-delay: 0.5s;
}
.hero h1 .highlight::after {
  content: '';
  position: absolute;
  left: -2%;
  bottom: 0.06em;
  height: 0.28em;
  width: 0%;
  background: var(--color-yellow-soft);
  z-index: -1;
  border-radius: 3px;
  animation: highlight-sweep 0.6s cubic-bezier(0.65, 0, 0.35, 1) forwards;
  animation-delay: 0.9s;
}
@keyframes highlight-color {
  to { color: var(--color-yellow-strong); }
}
@keyframes highlight-sweep {
  to { width: 104%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero h1 .highlight,
  .hero h1 .highlight::after { animation: none; }
  .hero h1 .highlight { color: var(--color-yellow-strong); }
  .hero h1 .highlight::after { width: 104%; }
}
.hero p {
  font-size: 1.05rem;
  color: var(--color-dark-2);
  max-width: 48ch;
  margin: 10px 0 0;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 22px;
}
@media (min-width: 560px) {
  .hero-actions { flex-direction: row; }
}
.hero .hero-location {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 14px;
  padding: 6px 14px;
  border: 1px solid var(--color-gray-300);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-gray-500);
}
@media (min-width: 860px) {
  .hero h1 { font-size: 2.6rem; max-width: 30ch; }
  .hero p { font-size: 1.2rem; }
}
@media (min-width: 1100px) {
  .hero h1 { font-size: 3.2rem; max-width: 32ch; }
}

/* ---------- Pila de productos que caen al cargar ---------- */
.price-pile {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}
.price-chip {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  background: var(--color-white);
  border: 1px solid var(--color-gray-300);
  box-shadow: var(--shadow-soft);
  border-radius: 12px;
  padding: 9px 16px;
  margin: -4px -10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-dark-2);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(var(--y, 0)) rotate(var(--rot, 0deg));
  animation: chip-fall 0.85s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, z-index 0s;
  cursor: default;
}
.price-chip:hover {
  transform: translateY(calc(var(--y, 0) - 8px)) rotate(0deg) scale(1.08);
  box-shadow: 0 18px 34px rgba(26, 26, 26, 0.2);
  background: var(--color-yellow-soft);
  z-index: 10;
}
.price-chip .price {
  color: var(--color-black);
  font-weight: 700;
  background: var(--color-yellow-soft);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.74rem;
}

@keyframes chip-fall {
  0% { transform: translateY(-260px) rotate(0deg); opacity: 0; }
  55% { opacity: 1; }
  78% { transform: translateY(calc(var(--y, 0) + 10px)) rotate(var(--rot, 0deg)); }
  100% { transform: translateY(var(--y, 0)) rotate(var(--rot, 0deg)); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .price-chip { animation: none; opacity: 1; transform: translateY(var(--y, 0)) rotate(var(--rot, 0deg)); }
}

@media (min-width: 700px) {
  .price-chip { font-size: 0.85rem; padding: 10px 14px; }
  .price-chip .price { font-size: 0.8rem; }
}

/* ---------- Secciones generales ---------- */
.section { padding: 64px 0; }
@media (min-width: 900px) { .section { padding: 100px 0; } }

.section-header {
  max-width: var(--max-width-narrow);
  margin: 0 0 40px;
}
.section-header.text-center { margin-left: auto; margin-right: auto; }
.section-eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-dark-2);
  margin-bottom: 14px;
}
.section-title {
  font-size: 1.9rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.5em;
}
@media (min-width: 860px) { .section-title { font-size: 2.35rem; } }
.section-lead {
  color: var(--color-dark-2);
  font-size: 1.08rem;
  max-width: 60ch;
  margin-bottom: 0;
}

.grid-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 640px) {
  .grid-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grid-cards { grid-template-columns: repeat(3, 1fr); }
  .grid-cards.grid-cards-2 { grid-template-columns: repeat(2, 1fr); }
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5em;
}
.card .card-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 16px;
  background: var(--color-yellow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.card p { color: var(--color-dark-2); margin-bottom: 0.5em; }
.card a.card-link {
  font-weight: 600;
  color: var(--color-black);
  border-bottom: 2px solid var(--color-yellow-strong);
  display: inline-block;
  margin-top: 6px;
}

/* ---------- Pasos "cómo comprar" ---------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  counter-reset: step;
}
@media (min-width: 700px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
.step {
  position: relative;
  padding: 30px 24px 26px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-gray-300);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-black);
  color: var(--color-yellow);
  font-weight: 700;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.1rem; }

/* ---------- Animaciones al hacer scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- Footer minimalista ---------- */
.site-footer {
  padding: 56px 0 32px;
  margin-top: 40px;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-top: 1px solid var(--color-gray-300);
  padding-top: 28px;
}
.footer-logo { display: flex; }
.footer-logo img { height: 34px; width: auto; border-radius: 8px; }
.back-to-top {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-black);
  color: var(--color-yellow);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.back-to-top:hover { background: var(--color-dark-2); }
.back-to-top svg { width: 18px; height: 18px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}
.site-footer h4 {
  color: var(--color-gray-500);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.1em;
}
.site-footer p, .site-footer li { color: var(--color-dark-2); font-size: 0.95rem; }
.site-footer li { margin-bottom: 0.5em; }
.site-footer a:hover { color: var(--color-yellow-strong); }
.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--color-gray-300);
  font-size: 0.85rem;
  color: var(--color-gray-500);
}

/* ---------- Botón flotante WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 150;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  animation: wa-pulse 2.6s ease-in-out infinite;
}
.whatsapp-float svg { width: 30px; height: 30px; }
.whatsapp-float:hover { animation-play-state: paused; filter: brightness(1.05); }

@keyframes wa-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

/* Cuando el visor de PDF está en pantalla completa, subir el botón para no tapar controles */
body.pdf-fullscreen .whatsapp-float {
  bottom: 84px;
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float { animation: none; }
}

/* ---------- Página / breadcrumb simple ---------- */
.page-hero {
  padding: 40px 0 24px;
  position: relative;
}
.page-hero h1 { font-size: 2rem; color: var(--color-black); margin-bottom: 0.4em; letter-spacing: -0.01em; }
.page-hero p { color: var(--color-dark-2); margin: 0; font-size: 1.05rem; max-width: 50ch; }
@media (min-width: 860px) {
  .page-hero { padding: 76px 0; }
  .page-hero h1 { font-size: 2.6rem; }
}

/* ---------- Contacto ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 860px) {
  .contact-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}
.contact-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-gray-300);
}
.contact-list .icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-yellow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-gray-300);
  aspect-ratio: 4 / 3;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Placeholder de imagen ---------- */
.img-placeholder {
  background: var(--color-gray-300);
  color: var(--color-gray-500);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.9rem;
  border-radius: var(--radius-lg);
  min-height: 200px;
  padding: 20px;
}

/* ---------- Utilidades ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
