/* =========================================================
   Planeta Azul Soluciones Integrales S.A.S. — planet-azul.com
   ========================================================= */

:root {
  --navy-900: #0b1e42;
  --navy-800: #10295a;
  --navy-700: #16346f;
  --blue-600: #1d5fd0;
  --cyan-400: #35b6e8;
  --cyan-300: #6fd3f5;
  --magenta-500: #b02a68;
  --ink: #21304a;
  --ink-soft: #51617d;
  --bg: #ffffff;
  --bg-tint: #f4f8fc;
  --line: #dde7f1;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(11, 30, 66, 0.10);
  --shadow-soft: 0 4px 14px rgba(11, 30, 66, 0.07);
  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue-600); text-decoration: none; }
ul { list-style: none; }

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

/* ===== Botones ===== */
.btn {
  display: inline-block;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: linear-gradient(120deg, var(--blue-600), var(--cyan-400));
  color: #fff;
  box-shadow: 0 8px 20px rgba(29, 95, 208, 0.35);
}
.btn--primary:hover { box-shadow: 0 12px 26px rgba(29, 95, 208, 0.45); }
.btn--ghost {
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.7);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.btn--light {
  background: #fff;
  color: var(--navy-800);
  box-shadow: var(--shadow-soft);
}
.btn--outline {
  color: var(--blue-600);
  border: 2px solid var(--blue-600);
}
.btn--outline:hover { background: var(--blue-600); color: #fff; }

/* ===== Header ===== */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(11, 30, 66, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.header.is-scrolled {
  background: rgba(11, 30, 66, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.7rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
}
.brand__mark { width: 40px; height: 40px; color: var(--cyan-400); flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.04em;
}
.brand__text small { font-size: 0.72rem; opacity: 0.8; letter-spacing: 0.05em; }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}
.nav a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 2px;
  background: var(--cyan-400);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav a:not(.nav__cta):hover::after,
.nav a.is-active:not(.nav__cta)::after { transform: scaleX(1); }
.nav__cta {
  background: linear-gradient(120deg, var(--blue-600), var(--cyan-400));
  color: #fff !important;
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
}
.nav__cta:hover { filter: brightness(1.1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px; height: 3px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: url("../img/planta-tratamiento.jpg") center 30% / cover no-repeat;
  animation: hero-zoom 18s ease-out both;
}
@keyframes hero-zoom {
  from { transform: scale(1.12); }
  to   { transform: scale(1); }
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(11, 30, 66, 0.92) 0%, rgba(16, 41, 90, 0.78) 45%, rgba(11, 30, 66, 0.45) 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
  padding-block: 9rem 7rem;
  max-width: 780px;
}
.hero__kicker {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-300);
  font-weight: 600;
  margin-bottom: 1rem;
}
.hero h1 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.12;
  margin-bottom: 1.2rem;
}
.hero .accent {
  background: linear-gradient(120deg, var(--cyan-300), var(--cyan-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead {
  font-size: clamp(1rem, 2vw, 1.18rem);
  color: rgba(255, 255, 255, 0.88);
  max-width: 640px;
  margin-bottom: 2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__wave {
  position: absolute;
  bottom: -1px; left: 0;
  width: 100%; height: 90px;
  z-index: 2;
}

/* ===== Secciones ===== */
.section { padding-block: 5.5rem; }
.section--tint { background: var(--bg-tint); }
.section__kicker {
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--cyan-400);
  margin-bottom: 0.5rem;
}
.section__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  color: var(--navy-800);
  margin-bottom: 1rem;
  max-width: 720px;
}
.section__lead { color: var(--ink-soft); max-width: 700px; margin-bottom: 2.5rem; }

/* ===== Nosotros ===== */
.about {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-block: 2rem 3.5rem;
}
.about__text p { margin-bottom: 1rem; color: var(--ink-soft); }
.about__text p strong { color: var(--navy-800); }
.about__highlights { margin-top: 1.4rem; display: grid; gap: 0.7rem; }
.about__highlights li {
  position: relative;
  padding-left: 1.9rem;
  color: var(--ink-soft);
}
.about__highlights li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.28em;
  width: 1.1rem; height: 1.1rem;
  border-radius: 50%;
  background:
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5 13l4 4 10-10" fill="none" stroke="white" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/></svg>') center / 68% no-repeat,
    linear-gradient(120deg, var(--blue-600), var(--cyan-400));
}
.about__media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about__media img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.about__media figcaption {
  padding: 0.8rem 1.2rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  background: #fff;
  border-top: 3px solid var(--cyan-400);
}

.mv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.mv-card {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-700));
  color: #fff;
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}
.mv-card:hover { transform: translateY(-6px); }
.mv-card__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(53, 182, 232, 0.18);
  color: var(--cyan-300);
  margin-bottom: 1.1rem;
}
.mv-card__icon svg { width: 28px; height: 28px; }
.mv-card h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  color: var(--cyan-300);
}
.mv-card p { font-size: 0.93rem; color: rgba(255, 255, 255, 0.85); }

/* ===== Servicios ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.6rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--cyan-400);
}
.card__icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(29, 95, 208, 0.1), rgba(53, 182, 232, 0.14));
  color: var(--blue-600);
  margin-bottom: 1.1rem;
}
.card__icon svg { width: 28px; height: 28px; }
.card h3 {
  font-family: var(--font-head);
  font-size: 1.08rem;
  color: var(--navy-800);
  margin-bottom: 0.55rem;
}
.card p { font-size: 0.92rem; color: var(--ink-soft); }

.assist {
  margin-top: 3rem;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  padding: 2.2rem 2rem;
}
.assist__title {
  font-family: var(--font-head);
  color: var(--navy-800);
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}
.assist__lead { color: var(--ink-soft); margin-bottom: 1.3rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chips li {
  background: linear-gradient(120deg, rgba(29, 95, 208, 0.08), rgba(53, 182, 232, 0.12));
  border: 1px solid rgba(29, 95, 208, 0.18);
  color: var(--navy-700);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.45rem 1rem;
  border-radius: 999px;
}

/* ===== Banner ===== */
.banner {
  background:
    radial-gradient(1000px 400px at 85% -50%, rgba(53, 182, 232, 0.35), transparent 60%),
    linear-gradient(120deg, var(--navy-900), var(--navy-700));
  color: #fff;
  padding-block: 3.2rem;
}
.banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.banner__text {
  font-family: var(--font-head);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 600;
  max-width: 720px;
}

/* ===== Productos ===== */
.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.product {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  border-top: 4px solid var(--cyan-400);
  box-shadow: var(--shadow-soft);
  padding: 1.8rem 1.6rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product__head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.1rem;
}
.product__icon {
  width: 48px; height: 48px; flex: none;
  border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-400));
  color: #fff;
}
.product__icon svg { width: 26px; height: 26px; }
.product h3 { font-family: var(--font-head); font-size: 1.05rem; color: var(--navy-800); }
.product ul { display: grid; gap: 0.5rem; }
.product li {
  position: relative;
  padding-left: 1.3rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.product li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.52em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan-400);
}

/* ===== Laboratorio ===== */
.section--dark {
  background:
    radial-gradient(900px 500px at 10% 0%, rgba(53, 182, 232, 0.18), transparent 55%),
    linear-gradient(160deg, var(--navy-900), var(--navy-800));
  color: #fff;
}
.section--dark .section__title { color: #fff; }
.lab-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.lab-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 1.9rem 1.6rem;
  transition: background 0.25s ease, transform 0.25s ease;
}
.lab-item:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-5px); }
.lab-item__num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2rem;
  background: linear-gradient(120deg, var(--cyan-300), var(--cyan-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.7rem;
}
.lab-item h3 {
  font-family: var(--font-head);
  font-size: 1.08rem;
  margin-bottom: 0.5rem;
}
.lab-item p { font-size: 0.92rem; color: rgba(255, 255, 255, 0.8); }

/* ===== Contacto ===== */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 1.5rem;
}
.contact__list { display: grid; gap: 1.4rem; margin-bottom: 2rem; }
.contact__list li { display: flex; gap: 1rem; color: var(--ink-soft); }
.contact__list strong { color: var(--navy-800); }
.contact__icon {
  width: 46px; height: 46px; flex: none;
  border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(29, 95, 208, 0.1), rgba(53, 182, 232, 0.16));
  color: var(--blue-600);
}
.contact__icon svg { width: 24px; height: 24px; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.contact__map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 380px;
}
.contact__map iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
  display: block;
}

/* ===== Footer ===== */
.footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.8);
  padding-block: 3rem 2rem;
}
.footer__inner { display: grid; gap: 1.8rem; }
.footer__brand {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}
.footer__brand .brand__mark { color: var(--cyan-400); }
.footer__brand strong {
  font-family: var(--font-head);
  color: #fff;
  display: block;
  margin-bottom: 0.2rem;
}
.footer__brand p { font-size: 0.9rem; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer__nav a { color: rgba(255, 255, 255, 0.75); font-size: 0.92rem; }
.footer__nav a:hover { color: var(--cyan-300); }
.footer__copy {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.4rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ===== Volver arriba ===== */
.to-top {
  position: fixed;
  right: 1.3rem; bottom: 1.3rem;
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(120deg, var(--blue-600), var(--cyan-400));
  color: #fff;
  box-shadow: 0 8px 20px rgba(29, 95, 208, 0.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 90;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top svg { width: 22px; height: 22px; }

/* ===== Animaciones de aparición ===== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }

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

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .cards, .products, .mv-grid, .lab-grid { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; }
  .about__media { order: -1; max-width: 560px; }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav {
    position: fixed;
    top: 0; right: 0;
    height: 100dvh;
    width: min(78vw, 320px);
    background: var(--navy-900);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.4rem;
    padding: 5.5rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.35);
  }
  .nav.is-open { transform: translateX(0); }
  .nav a { font-size: 1.05rem; padding: 0.55rem 0; width: 100%; }
  .nav__cta { text-align: center; margin-top: 0.8rem; }
  .nav-toggle { display: flex; z-index: 110; }
  .hero__content { padding-block: 7.5rem 6rem; }
  .section { padding-block: 3.8rem; }
}

@media (max-width: 560px) {
  .cards, .products, .mv-grid, .lab-grid { grid-template-columns: 1fr; }
  .brand__text strong { font-size: 0.9rem; }
  .brand__text small { font-size: 0.65rem; }
  .hero__actions .btn { width: 100%; text-align: center; }
  .banner__inner { flex-direction: column; align-items: flex-start; }
}
