:root {
  --red: #e63a3f;
  --blue: #17a9e1;
  --green: #7fbf3a;
  --ink: #16222e;
  --muted: #5b6b7a;
  --ice: #eef7fc;
  --line: #dbe8f1;
  --wa: #25d366;
  --radius: 18px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: "Nunito", system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
}

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

.container { width: min(1100px, 100% - 32px); margin-inline: auto; }

.c-red { color: var(--red); }
.c-blue { color: var(--blue); }
.c-green { color: var(--green); }
.bg-red { background: var(--red); }
.bg-blue { background: var(--blue); }
.bg-green { background: var(--green); }

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn--sm { padding: 10px 18px; font-size: .95rem; }
.btn--wa { background: var(--wa); color: #fff; box-shadow: 0 6px 18px rgba(37, 211, 102, .3); }
.btn--ghost { border: 2px solid var(--ink); }
.btn--ig {
  color: #fff;
  background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7);
  margin-top: 8px;
}

/* Encabezado */
.header {
  transition: box-shadow .3s;
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header--scrolled { box-shadow: 0 6px 24px rgba(22, 34, 46, .08); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 70px; }
.header__logo img { height: 46px; width: auto; }
.nav { display: flex; gap: 28px; font-weight: 700; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 70px);
  min-height: calc(100svh - 70px);
  display: grid;
  place-items: center;
  padding: 72px 0 96px;
  text-align: center;
  background:
    radial-gradient(600px 400px at 15% 20%, rgba(23, 169, 225, .18), transparent 70%),
    radial-gradient(500px 380px at 85% 30%, rgba(127, 191, 58, .15), transparent 70%),
    radial-gradient(520px 360px at 60% 95%, rgba(230, 58, 63, .10), transparent 70%),
    linear-gradient(180deg, var(--ice), #fff);
}
.hero__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.tag {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--line);
  padding: 6px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .9rem;
  color: var(--muted);
}
.hero h1 { font-size: clamp(2.4rem, 7vw, 4.8rem); line-height: 1.05; font-weight: 900; margin: 20px 0; letter-spacing: -.02em; }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 580px; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

/* Cubitos flotantes */
.hero__cubes { position: absolute; inset: 0; pointer-events: none; will-change: transform; }
.hero__cubes span {
  position: absolute;
  width: var(--s, 60px);
  height: var(--s, 60px);
  border-radius: 22%;
  background: linear-gradient(135deg, rgba(255, 255, 255, .95), rgba(190, 228, 247, .55));
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: inset -6px -8px 16px rgba(23, 169, 225, .18), 0 10px 30px rgba(23, 169, 225, .15);
  backdrop-filter: blur(2px);
  animation: float var(--t, 9s) ease-in-out infinite;
  animation-delay: var(--dl, 0s);
}
.hero__cubes span:nth-child(1) { --s: 90px; top: 12%; left: 7%; --r: -14deg; --t: 10s; }
.hero__cubes span:nth-child(2) { --s: 54px; top: 64%; left: 12%; --r: 20deg; --t: 8s; --dl: -2s; }
.hero__cubes span:nth-child(3) { --s: 70px; top: 18%; right: 10%; --r: 12deg; --t: 11s; --dl: -4s; }
.hero__cubes span:nth-child(4) { --s: 110px; top: 60%; right: 6%; --r: -8deg; --t: 12s; --dl: -1s; }
.hero__cubes span:nth-child(5) { --s: 36px; top: 40%; left: 22%; --r: 30deg; --t: 7s; --dl: -3s; }
.hero__cubes span:nth-child(6) { --s: 42px; top: 8%; left: 55%; --r: -24deg; --t: 9s; --dl: -5s; }
.hero__cubes span:nth-child(7) { --s: 48px; top: 80%; left: 48%; --r: 16deg; --t: 10s; --dl: -6s; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-22px) rotate(calc(var(--r, 0deg) + 8deg)); }
}

.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  translate: -50% 0;
  width: 28px;
  height: 44px;
  border: 2px solid var(--muted);
  border-radius: 999px;
  opacity: .6;
}
.hero__scroll span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 4px;
  background: var(--muted);
  animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

/* Beneficios */
.features { padding: 24px 0 8px; }
.features__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.feature__dot { display: block; width: 14px; height: 14px; border-radius: 50%; margin-bottom: 12px; }
.feature h3 { font-size: 1.15rem; margin-bottom: 4px; }
.feature p { color: var(--muted); }

/* Secciones */
.section { padding: 80px 0; }
.section--ice { background: var(--ice); }
.section__title { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 900; line-height: 1.2; margin-bottom: 8px; }
.section__sub { color: var(--muted); font-size: 1.1rem; margin-bottom: 36px; }

/* Productos */
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.product {
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.product:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(22, 34, 46, .1); }
.product__img { height: 220px; overflow: hidden; background: var(--ice); }
.product__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.product:hover .product__img img { transform: scale(1.05); }
.product__body { padding: 24px 28px 28px; }
.product__chip {
  display: inline-block;
  color: #fff;
  font-size: .8rem;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.product h3 { font-size: 1.35rem; margin-bottom: 6px; }
.product p { color: var(--muted); }
.products__cta {
  margin-top: 32px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--ice);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.products__cta p { font-size: 1.2rem; font-weight: 800; }

/* Alquiler de cámara */
.section--dark {
  background:
    radial-gradient(600px 400px at 90% 10%, rgba(23, 169, 225, .25), transparent 70%),
    radial-gradient(500px 400px at 5% 95%, rgba(127, 191, 58, .15), transparent 70%),
    var(--ink);
  color: #fff;
}
.rental { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.rental__gallery { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; align-items: end; }
.rental__gallery img { border-radius: 16px; width: 100%; object-fit: cover; box-shadow: 0 20px 40px rgba(0, 0, 0, .3); }
.rental__gallery img:first-child { height: 340px; }
.rental__gallery img:last-child { height: 260px; margin-bottom: -40px; }
.rental__text p { color: rgba(255, 255, 255, .78); font-size: 1.08rem; margin: 8px 0 20px; }
.checks { list-style: none; margin-bottom: 28px; }
.checks li { position: relative; padding: 6px 0 6px 34px; font-weight: 700; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Nosotros */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about__text p { color: var(--muted); font-size: 1.08rem; margin-bottom: 16px; }
.about__gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.about__gallery img { border-radius: 14px; width: 100%; height: 220px; object-fit: cover; }
.about__gallery img:first-child { grid-column: 1 / -1; height: 260px; }

/* Ubicación */
.location { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; }
.contact-list { list-style: none; margin: 20px 0 28px; }
.contact-list li { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.contact-list strong { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.contact-list a, .contact-list span { font-size: 1.1rem; font-weight: 700; text-decoration: none; }
.contact-list a:hover { color: var(--blue); }
.location__map iframe { width: 100%; height: 400px; border: 0; border-radius: var(--radius); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0 90px; text-align: center; color: var(--muted); }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.footer__logo { height: 56px; width: auto; margin-bottom: 8px; }
.footer__small { font-size: .85rem; }

/* WhatsApp flotante */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--wa);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
  z-index: 20;
  transition: transform .15s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }

/* Animaciones al scrollear */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--d, 0s);
}
.reveal--zoom { transform: scale(.94); }
.reveal.is-visible { opacity: 1; transform: none; }
.product.is-visible:hover { transform: translateY(-6px); transition-delay: 0s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__cubes span, .hero__scroll span { animation: none; }
}

/* Responsive */
@media (max-width: 860px) {
  .nav { display: none; }
  .hero { padding: 56px 0 88px; }
  .hero__cubes span:nth-child(5), .hero__cubes span:nth-child(6) { display: none; }
  .hero__cubes span { width: calc(var(--s) * .55); height: calc(var(--s) * .55); opacity: .8; }
  .about, .location, .rental { grid-template-columns: 1fr; gap: 32px; }
  .rental__gallery img:first-child { height: 220px; }
  .rental__gallery img:last-child { height: 220px; margin-bottom: 0; }
  .features__grid, .products { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .products__cta { flex-direction: column; text-align: center; }
}
