:root {
  --azul-oscuro: #0F172A;
  --azul-medio: #1E293B;
  --gris-claro: #F1F5F9;
  --blanco: #FFFFFF;
  --acento-verde: #22C55E;
  --whatsapp: #25D366;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
}

/* GENERALES */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}
body {
  font-family: 'Inter', sans-serif;
  background: var(--gris-claro);
  color: #1f2933;
  overflow-x: hidden;
  width: 100%;
}

iimg {
  max-width: 100%;
  display: block;
  image-rendering: auto;
}
a {
  transition: all 0.3s ease;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 20px;
}

.center {
  text-align: center;
}

h1,
h2,
h3 {
  color: var(--azul-oscuro);
  line-height: 1.2;
}

p {
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 750px;
}

/* DIVIDER */
.divider {
  width: 60px;
  height: 4px;
  background: var(--acento-verde);
  margin: 20px auto;
  border-radius: 999px;
}

  /* HEADER */
  .header-nav {
    position: sticky;
    top: 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    
    transition:
    background 0.3s ease,
    box-shadow 0.3s ease,
    padding 0.3s ease;
    
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  }

  .header-nav.scrolled {
    background: rgba(2, 6, 23, 0.96);

    box-shadow:
      0 10px 30px rgba(0,0,0,0.25);
  }

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: 0.2s ease;
}

.nav-menu a:hover {
  color: var(--acento-verde);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
}

/* HERO */
.hero {
  background:
    radial-gradient(
      circle at top left,
      rgba(34, 197, 94, 0.15),
      transparent 35%
    ),
    linear-gradient(
      135deg,
      var(--azul-oscuro),
      var(--azul-medio)
    );

  color: white;
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;

  isolation: isolate;
}
.hero::before {
  content: "";

  position: absolute;

  width: 500px;
  height: 500px;

  background:
    radial-gradient(
      circle,
      rgba(34,197,94,0.18),
      transparent 70%
    );

  top: -120px;
  right: -120px;

  filter: blur(30px);

  animation:
    heroGlow 8s ease-in-out infinite;

  z-index: -1;
}

.hero h1 {
  color: white;
  max-width: 800px;
  margin: 30px auto 20px;
  font-size: clamp(2.3rem, 5vw, 5rem);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.05;
}

.hero p {
  max-width: 680px;
  margin: 0 auto 40px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.15rem;
  color: rgba(255,255,255,0.82);
}

.hero-image,
.section-image {
  border-radius: 24px;
  box-shadow:
    0 25px 50px rgba(0,0,0,0.25),
    0 0 40px rgba(34, 197, 94, 0.08);

  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.4s ease;
}
.hero-image:hover,
.section-image:hover {
  transform: translateY(-6px) scale(1.01);
}


/* WHATSAPP BUTTON */
.whatsapp-btn {
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--whatsapp);
  color: white;
  padding: 16px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s ease;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);

  border: 1px solid rgba(255,255,255,0.08);
}

.whatsapp-btn:hover {
  transform: translateY(-3px) scale(1.02);
}

.whatsapp-btn svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.3;
}

/* SECTIONS */
.section-white {
  background: white;
}

/* FEATURES SECTION */

.features-section {
  background: var(--gris-claro);
}

.features-intro {
  margin: 0 auto;
}

.features-grid {
  display: grid;

  grid-template-columns:
    repeat(auto-fit, minmax(280px, 1fr));

  gap: 28px;

  margin-top: 60px;
}

.feature-card {
  background: white;

  padding: 34px;

  border-radius: 24px;

  border:
    1px solid rgba(15,23,42,0.06);

  box-shadow:
    0 10px 30px rgba(15,23,42,0.05);

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;

  position: relative;

  overflow: hidden;
}

.feature-card:hover {

  transform:
    translateY(-8px);

  border-color:
    rgba(34,197,94,0.18);

  box-shadow:
    0 25px 50px rgba(15,23,42,0.10);
}

.feature-card::before {

  content: "";

  position: absolute;

  inset: 0;

  background:
    linear-gradient(
      135deg,
      rgba(34,197,94,0.05),
      transparent 40%
    );

  opacity: 0;

  transition: opacity 0.35s ease;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {

  width: 64px;
  height: 64px;

  border-radius: 20px;

  background:
    rgba(34,197,94,0.12);

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 24px;
}

.feature-icon svg {

  width: 30px;
  height: 30px;

  color: var(--acento-verde);

  stroke-width: 2.2;
}

.feature-card h3 {

  margin-bottom: 16px;

  font-size: 1.25rem;
}

.feature-card p {
  max-width: 100%;
  margin-bottom: 0;
}

/* SCROLL ANIMATIONS */

.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.9s ease,
    transform 0.9s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(220px, 1fr)
  );
  gap: 50px;
}

.footer h3,
.footer h4 {
  color: white;
  margin-bottom: 20px;
}

.footer-brand p {
  max-width: 320px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 14px;
}

.footer-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--acento-verde);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 60px;
  padding: 24px;
  text-align: center;
  font-size: 0.95rem;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .container {
  padding: 40px 20px;
}

.hero-image,
.section-image {
  width: 100%;
  height: auto;
}

.hero-image {
  border-radius: 18px;
}

.hero h1 {
  max-width: 100%;
}

.hero p {
  max-width: 100%;
}

.hero p {
  font-size: 1rem;
}

.whatsapp-btn {
  width: 100%;
  justify-content: center;
}

.hero .container {
  overflow: hidden;
}

.hero {
  padding: 40px 0;
}

.hero .container {
  padding-left: 24px;
  padding-right: 24px;
}

  .menu-toggle {
    display: block;
    cursor: pointer;
  }

  .nav-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(12px);
  flex-direction: column;
  display: none;
  padding-bottom: 20px;
}

  .nav-menu.active {
    display: flex;
  }

  .nav-menu a {
  padding: 18px 20px;
  width: 100%;
  text-align: center;
}

.hero {
  padding: 40px 0;
}

  .hero h1 {
  font-size: 1.9rem;
  line-height: 1.15;
  letter-spacing: -1px;
}

.whatsapp-btn {
  width: 100%;
  justify-content: center;
}

}

/* FLOATING WHATSAPP */

.floating-whatsapp {
  color: white;
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 64px;
  height: 64px;

  background: var(--whatsapp);

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow:
    0 15px 35px rgba(37, 211, 102, 0.35);

  z-index: 999;

  animation: floatWhatsapp 2.5s ease-in-out infinite;
}

.floating-whatsapp:hover {
  transform: scale(1.08);
}

.floating-whatsapp svg {
  width: 30px;
  height: 30px;
  stroke-width: 2.2;
}

@keyframes floatWhatsapp {

  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }

  100% {
    transform: translateY(0);
  }

}

@keyframes heroGlow {

  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(20px);
  }

  100% {
    transform: translateY(0px);
  }

}

::selection {
  background: var(--acento-verde);
  color: white;
}