:root {
  --bg: #f7f9ff;
  --surface: rgba(255, 255, 255, 0.72);
  --text: #0f172a;
  --muted: #475569;
  --primary: #2563eb;
  --secondary: #7c3aed;
  --accent: #0284c7;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background:
    radial-gradient(circle at 18% 12%, rgba(37, 99, 235, 0.16), transparent 34%),
    radial-gradient(circle at 82% 20%, rgba(124, 58, 237, 0.14), transparent 32%),
    radial-gradient(circle at 50% 85%, rgba(14, 165, 233, 0.10), transparent 38%),
    linear-gradient(135deg, #ffffff 0%, #f3f6ff 45%, #eef3ff 100%);
  color: var(--text);
  scroll-behavior: smooth;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.75), transparent 75%);
  z-index: -1;
}

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

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.76);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
}

.logo img {
  height: 42px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 1.1rem;
  margin: 0;
  padding: 0;
}

.nav a {
  font-weight: 700;
  color: #1e293b;
}

.nav a:hover {
  color: var(--primary);
}

/* HERO */

.hero {
  position: relative;
  overflow: hidden;
  padding: 4rem 0;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 2.5rem;
}

.hero-brand {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-brand img {
  width: min(560px, 100%);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 28px 55px rgba(37, 99, 235, 0.20));
  opacity: 0.98;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.hero-brand img:hover {
  transform: translateY(-4px) scale(1.02);
  filter: drop-shadow(0 34px 70px rgba(124, 58, 237, 0.22));
}

.hero-glow {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  top: 7%;
  right: -180px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.16), rgba(124, 58, 237, 0.04), transparent 68%);
  filter: blur(28px);
  opacity: 0.85;
  z-index: 1;
}

/* TEXTOS */

.eyebrow {
  color: var(--primary);
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 0.7rem;
}

h1,
h2,
h3 {
  margin-top: 0;
}

h1 {
  max-width: 18ch;
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  line-height: 1.05;
  color: #0f172a;
  letter-spacing: -1px;
}

.hero-text {
  max-width: 60ch;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

/* BOTONES */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.45rem;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
  margin-top: 1rem;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 16px 35px rgba(37, 99, 235, 0.24);
}

.btn-secondary {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: var(--shadow);
}

/* SECCIONES */

.section-title {
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  margin-bottom: 1.4rem;
  color: #0f172a;
  letter-spacing: -0.5px;
}

.grid {
  display: grid;
  gap: 1rem;
}

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

.card,
.product-card,
.cta-box {
  background: var(--surface);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius);
  padding: 1.45rem;
  box-shadow: var(--shadow);
}

.card h3,
.product-card h3 {
  color: #0f172a;
}

.card p,
.product p,
.cta p {
  color: var(--muted);
  line-height: 1.6;
}

/* PRODUCTO */

.product {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.20), rgba(37, 99, 235, 0.05));
}

.product-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.3rem;
  align-items: start;
}

.product-card ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.product-card li + li {
  margin-top: 0.6rem;
}

/* CTA */

.cta-box {
  text-align: center;
}

/* FOOTER */

.site-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding: 2rem 0;
  background: rgba(255, 255, 255, 0.40);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
}

.footer-content a {
  color: var(--primary);
  font-weight: 700;
}

/* WHATSAPP */

.whatsapp-btn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: linear-gradient(135deg, #25d366, #16a34a);
  color: #fff;
  font-weight: 800;
  border-radius: 999px;
  padding: 0.8rem 1.05rem;
  box-shadow: 0 12px 30px rgba(22, 163, 74, 0.32);
  z-index: 120;
}

/* ANIMACIONES */

.fade-in {
  animation: fadeIn 0.7s ease both;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .hero-brand {
    order: 2;
  }

  .hero-brand img {
    max-width: 420px;
  }

  .product-layout {
    grid-template-columns: 1fr;
  }

  .nav ul {
    display: none;
  }

  .section {
    padding: 4rem 0;
  }
}

@media (max-width: 768px) {
  .hero-brand img {
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .btn {
    width: 100%;
  }

  .footer-content {
    flex-direction: column;
  }
}