:root {
  --color-bg-dark: #101113;
  --color-red: #e0342c;
  --color-blue: #1e9bd7;
  --color-white: #ffffff;
  --color-offwhite: #f6f7f8;
  --color-text: #1c1c1c;
  --color-text-muted: #5a5f66;
  --color-whatsapp: #25D366;
  --color-whatsapp-dark: #1ebe5a;
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.5;
}

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

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  text-align: center;
}

.section-sub {
  text-align: center;
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 10px auto 0;
}

/* ---------- BOTONES WHATSAPP ---------- */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--color-whatsapp);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 16px 28px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: background .2s ease, transform .15s ease;
}

.btn-whatsapp:hover { background: var(--color-whatsapp-dark); transform: translateY(-1px); }

.btn-cta { width: auto; }

.wa-icon { width: 22px; height: 22px; flex-shrink: 0; }

/* ---------- HERO ---------- */
.hero {
  background: linear-gradient(160deg, #16181b 0%, var(--color-bg-dark) 60%);
  color: #fff;
  padding: 24px 24px 40px;
}

.hero-inner { max-width: 1100px; margin: 0 auto; }

.hero-logo { height: 44px; margin-bottom: 28px; }

.hero-content {
  display: flex;
  flex-direction: column-reverse;
  gap: 28px;
  align-items: center;
}

.hero-text { width: 100%; }

.hero-text h1 {
  font-size: clamp(1.7rem, 4.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
}

.hero-sub {
  color: #cfd3d8;
  font-size: 1.05rem;
  margin-bottom: 24px;
  max-width: 560px;
}

.hero-image {
  width: 100%;
  max-width: 340px;
  position: relative;
}

.hero-blob {
  position: absolute;
  inset: -14px;
  background: linear-gradient(135deg, var(--color-red), var(--color-blue));
  border-radius: 20px;
  opacity: .35;
  filter: blur(2px);
  transform: rotate(-4deg);
  z-index: 0;
}

.hero-image img {
  position: relative;
  z-index: 1;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 20px 40px rgba(0,0,0,.35);
}

.whatsapp-form {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 18px;
  max-width: 420px;
}

.whatsapp-form label {
  display: block;
  font-size: .9rem;
  color: #cfd3d8;
  margin-bottom: 8px;
}

.whatsapp-form input {
  width: 100%;
  padding: 13px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.95);
  font-size: 1rem;
  margin-bottom: 12px;
}

.whatsapp-form input:focus {
  outline: 2px solid var(--color-blue);
}

.hero-microcopy {
  font-size: .85rem;
  color: #9aa0a7;
  margin-top: 10px;
  max-width: 420px;
}

/* ---------- TRUST BAR ---------- */
.trust-bar {
  background: var(--color-offwhite);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px 40px;
  padding: 26px 24px;
  border-bottom: 1px solid #eaeaea;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.trust-icon {
  width: 26px;
  height: 26px;
  color: var(--color-blue);
  margin-bottom: 6px;
}

.trust-item strong {
  font-size: 1.3rem;
  color: var(--color-red);
  font-weight: 800;
}

.trust-item span {
  font-size: .85rem;
  color: var(--color-text-muted);
}

/* ---------- PLAN CANJE ---------- */
.plan-canje {
  background: #0d3b4f;
  color: #fff;
}

.plan-canje-inner {
  display: flex;
  flex-direction: column-reverse;
  gap: 32px;
  align-items: center;
}

.badge {
  display: inline-block;
  background: var(--color-red);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.plan-canje-text h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 800;
  margin-bottom: 14px;
}

.plan-canje-text p {
  color: #d7e6ec;
  margin-bottom: 22px;
  max-width: 480px;
}

.plan-canje-image img {
  border-radius: var(--radius);
  max-width: 340px;
}

/* ---------- SERVICIOS ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 36px;
}

.card {
  background: var(--color-offwhite);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  padding-bottom: 22px;
  border-top: 3px solid var(--color-red);
  box-shadow: 0 4px 14px rgba(0,0,0,.05);
  transition: transform .2s ease, box-shadow .2s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(0,0,0,.1);
}

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

.card h3 {
  margin: 18px 20px 8px;
  font-size: 1.15rem;
}

.card p {
  margin: 0 20px;
  color: var(--color-text-muted);
  font-size: .95rem;
}

/* ---------- MARCAS ---------- */
.marcas { background: var(--color-offwhite); }

.marcas-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 36px;
}

.marca-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 16px 22px;
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, box-shadow .2s ease;
}

.marca-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,.1);
}

.marcas-grid img {
  height: 40px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
}

.marca-text {
  font-weight: 800;
  font-size: 1rem;
  color: var(--color-text-muted);
  letter-spacing: .5px;
}

/* ---------- TESTIMONIOS ---------- */
.testimonios { padding: 60px 0; overflow: hidden; }

.marquee {
  margin-top: 32px;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: scroll-right 40s linear infinite;
  padding: 4px 0;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes scroll-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0%); }
}

.testimonial-card {
  background: var(--color-offwhite);
  border-radius: var(--radius);
  padding: 20px;
  width: 300px;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0,0,0,.05);
  transition: transform .2s ease, box-shadow .2s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,.1);
}

.testimonial-stars { color: #f5a623; letter-spacing: 2px; margin-bottom: 10px; }

.testimonial-quote {
  font-size: .95rem;
  color: var(--color-text);
  margin-bottom: 16px;
  min-height: 66px;
}

.testimonial-author { display: flex; align-items: center; gap: 12px; }

.testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  flex-shrink: 0;
}

.testimonial-name { font-weight: 700; font-size: .9rem; }
.testimonial-loc { font-size: .8rem; color: var(--color-text-muted); }

/* ---------- GALERIA ---------- */
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 36px;
}

.galeria-grid img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform .3s ease, box-shadow .3s ease;
}

.galeria-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 24px rgba(0,0,0,.15);
}

/* ---------- CTA FINAL ---------- */
.cta-final {
  background: var(--color-bg-dark);
  color: #fff;
  text-align: center;
}

.cta-final h2 { font-size: clamp(1.4rem, 3.5vw, 2rem); margin-bottom: 12px; }
.cta-final p { color: #cfd3d8; margin-bottom: 26px; }

/* ---------- FOOTER ---------- */
.footer {
  background: #0a0a0a;
  color: #9aa0a7;
  text-align: center;
  padding: 40px 24px 100px;
  font-size: .9rem;
}

.footer-logo { height: 32px; margin: 0 auto 16px; }
.footer p { margin-bottom: 6px; }
.footer-copy { margin-top: 16px; color: #666; font-size: .8rem; }

/* ---------- BOTON FLOTANTE ---------- */
.floating-whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 58px;
  height: 58px;
  background: var(--color-whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
  z-index: 999;
  transition: transform .15s ease;
}

.floating-whatsapp:hover { transform: scale(1.06); animation-play-state: paused; }
.floating-whatsapp svg { width: 30px; height: 30px; }

.floating-whatsapp::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--color-whatsapp);
  animation: wa-pulse 2.4s ease-out infinite;
  z-index: -1;
}

@keyframes wa-pulse {
  0% { transform: scale(1); opacity: .55; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* ---------- SCROLL REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (min-width: 860px) {
  .hero-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .hero-text { max-width: 540px; }
  .hero-image { max-width: 380px; }

  .plan-canje-inner {
    flex-direction: row;
    justify-content: space-between;
  }
  .plan-canje-image { max-width: 400px; }
  .plan-canje-image img { max-width: 100%; }

  .cards-grid { grid-template-columns: repeat(3, 1fr); }

  .galeria-grid { grid-template-columns: repeat(3, 1fr); }
}
