/* ============================================================
   Everest Klima Solutions — estilos
   Paleta inspirada en el Everest: azul profundo, hielo y nieve
   ============================================================ */

:root {
  --navy-950: #081827;
  --navy-900: #0B1F3A;
  --navy-700: #13314f;
  --navy-500: #1d4368;
  --ice-500: #5BC8E8;
  --ice-300: #A8E6F5;
  --snow: #F7FAFC;
  --snow-tint: #EFF6FA;
  --text: #22344a;
  --text-muted: #5b6e85;
  --font-display: "Sora", sans-serif;
  --font-body: "Inter", sans-serif;
  --radius: 16px;
  --shadow: 0 12px 32px rgba(11, 31, 58, 0.10);
  --container: 1140px;
}

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

html { scroll-behavior: smooth; }

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

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

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

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; }

.accent { color: var(--ice-500); }

/* ===== Botones ===== */
.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  font-family: var(--font-body);
}
.btn--lg { padding: 0.9rem 2rem; font-size: 1.05rem; }
.btn--primary {
  background: linear-gradient(135deg, var(--ice-500), #3aa8d8);
  color: var(--navy-950);
  box-shadow: 0 8px 24px rgba(91, 200, 232, 0.35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(91, 200, 232, 0.5); }
.btn--ghost {
  color: var(--snow);
  border-color: rgba(247, 250, 252, 0.4);
}
.btn--ghost:hover { border-color: var(--ice-300); color: var(--ice-300); }

/* ===== Nav ===== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 0.9rem 0;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
  color: var(--snow);
}
.nav--solid {
  background: rgba(8, 24, 39, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  padding: 0.55rem 0;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav__logo img { height: 40px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 1.6rem; }
.nav__links a {
  color: var(--snow);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.nav__links a:hover { color: var(--ice-300); }
.nav__links .nav__cta { color: var(--navy-950); }
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav__toggle span {
  width: 26px; height: 2.5px;
  background: var(--snow);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(1100px 500px at 75% -10%, rgba(91, 200, 232, 0.18), transparent 60%),
    linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-500) 100%);
  color: var(--snow);
  overflow: hidden;
}
.hero__content {
  position: relative;
  z-index: 3;
  padding: 9rem 0 16rem;
  max-width: 760px;
}
.hero__eyebrow {
  display: inline-block;
  background: rgba(91, 200, 232, 0.12);
  border: 1px solid rgba(91, 200, 232, 0.35);
  color: var(--ice-300);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 1.4rem;
}
.hero__title {
  font-size: clamp(2.3rem, 5.5vw, 4rem);
  font-weight: 800;
  margin-bottom: 1.2rem;
}
.hero__subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(247, 250, 252, 0.82);
  max-width: 560px;
  margin-bottom: 2.2rem;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero__mountains {
  position: absolute;
  inset: auto 0 0 0;
  height: clamp(180px, 34vh, 340px);
  z-index: 1;
  pointer-events: none;
}
.mountain {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: 100%;
  will-change: transform;
}
.mountain--back { opacity: 0.8; }
.mountain--mid { height: 86%; }
.mountain--front { height: 56%; }

/* Nieve */
.hero__snow {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}
.snowflake {
  position: absolute;
  top: -2vh;
  border-radius: 50%;
  background: rgba(247, 250, 252, 0.85);
  animation: snowfall linear infinite;
}
@keyframes snowfall {
  to { transform: translateY(110vh) translateX(6vw); }
}

/* ===== Stats ===== */
.stats {
  background: var(--navy-950);
  color: var(--snow);
  padding: 3rem 0;
  border-top: 1px solid rgba(91, 200, 232, 0.15);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat__number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--ice-300);
}
.stat__label { color: rgba(247, 250, 252, 0.7); font-size: 0.95rem; }

/* ===== Secciones genéricas ===== */
.section { padding: 6rem 0; position: relative; }
.section--tint { background: var(--snow-tint); }
.section--dark {
  background: linear-gradient(180deg, var(--navy-900), var(--navy-700));
  color: var(--snow);
}
.section--dark .section__lead { color: rgba(247, 250, 252, 0.75); }

.section__eyebrow {
  color: var(--ice-500);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  margin-bottom: 0.6rem;
}
.section__title {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  max-width: 680px;
}
.section__lead {
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 3rem;
  font-size: 1.05rem;
}

/* Divisores tipo pico de montaña */
.divider { position: absolute; left: 0; right: 0; line-height: 0; }
.divider svg { width: 100%; height: clamp(34px, 5vw, 70px); display: block; }
.divider--top { top: -1px; }
.divider--bottom { bottom: -1px; }
.section--dark.section { padding-top: 9rem; padding-bottom: 9rem; }

/* ===== Cards Soluciones ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--ice-500);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(11, 31, 58, 0.16); }
.card__icon {
  width: 56px; height: 56px;
  color: var(--navy-900);
  background: var(--snow-tint);
  border-radius: 14px;
  display: grid;
  place-items: center;
  padding: 10px;
  margin-bottom: 1.2rem;
}
.card__icon svg { width: 100%; height: 100%; }
.card h3 { font-size: 1.2rem; margin-bottom: 0.6rem; color: var(--navy-900); }
.card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1rem; }
.card__list { list-style: none; }
.card__list li {
  font-size: 0.92rem;
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.45rem;
}
.card__list li::before {
  content: "❄";
  position: absolute;
  left: 0;
  color: var(--ice-500);
  font-size: 0.85rem;
}

/* ===== Equipos / flota ===== */
.fleet {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.fleet__card {
  background: rgba(247, 250, 252, 0.06);
  border: 1px solid rgba(168, 230, 245, 0.22);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.fleet__card:hover {
  transform: translateY(-6px);
  border-color: var(--ice-500);
  background: rgba(247, 250, 252, 0.1);
}
.fleet__art { margin-bottom: 1.2rem; }
.fleet__art svg { width: 100%; height: auto; }
.fleet__card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; color: var(--ice-300); }
.fleet__card p { color: rgba(247, 250, 252, 0.75); font-size: 0.95rem; }

/* ===== Ruta de mantenimiento ===== */
.route { position: relative; }
.route__path {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.route__steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  position: relative;
}
/* Escalonado ascendente en desktop */
.route__step:nth-child(1) { margin-top: 9rem; }
.route__step:nth-child(2) { margin-top: 6rem; }
.route__step:nth-child(3) { margin-top: 3rem; }
.route__step:nth-child(4) { margin-top: 0; }

.route__step {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  box-shadow: var(--shadow);
  position: relative;
}
.route__badge {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--ice-300);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.9rem;
}
.route__step h3 { font-size: 1.05rem; color: var(--navy-900); margin-bottom: 0.45rem; }
.route__step p { font-size: 0.92rem; color: var(--text-muted); }
.route__step--summit {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-500));
}
.route__step--summit h3 { color: var(--ice-300); }
.route__step--summit p { color: rgba(247, 250, 252, 0.8); }
.route__step--summit .route__badge { background: var(--ice-500); color: var(--navy-950); }

/* ===== Nosotros ===== */
.nosotros {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}
.nosotros__text p { color: var(--text-muted); margin-bottom: 1.4rem; }
.checklist { list-style: none; display: grid; gap: 0.7rem; }
.checklist li {
  padding-left: 2rem;
  position: relative;
  font-weight: 500;
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 1.35rem; height: 1.35rem;
  border-radius: 50%;
  background: var(--ice-500);
  color: var(--navy-950);
  font-size: 0.8rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.nosotros__art svg {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

/* ===== Contacto ===== */
.section--contact { background: linear-gradient(180deg, var(--navy-900), var(--navy-950)); }
.contact {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: start;
}
.contact__form {
  background: rgba(247, 250, 252, 0.05);
  border: 1px solid rgba(168, 230, 245, 0.2);
  border-radius: var(--radius);
  padding: 2rem;
  display: grid;
  gap: 1.2rem;
}
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.88rem; font-weight: 500; color: var(--ice-300); }
.field input, .field textarea {
  background: rgba(8, 24, 39, 0.6);
  border: 1px solid rgba(168, 230, 245, 0.25);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: var(--snow);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ice-500);
  box-shadow: 0 0 0 3px rgba(91, 200, 232, 0.2);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(247, 250, 252, 0.35); }
.contact__form .btn { justify-self: start; border: 0; }
.contact__success { color: var(--ice-300); font-weight: 500; }

.contact__info {
  background: rgba(247, 250, 252, 0.05);
  border: 1px solid rgba(168, 230, 245, 0.2);
  border-radius: var(--radius);
  padding: 2rem;
}
.contact__info h3 { color: var(--ice-300); margin-bottom: 1.2rem; font-size: 1.1rem; }
.contact__info ul { list-style: none; display: grid; gap: 0.9rem; margin-bottom: 1.6rem; }
.contact__info li { display: flex; gap: 0.7rem; align-items: baseline; color: rgba(247, 250, 252, 0.85); font-size: 0.95rem; }
.contact__map {
  height: 160px;
  border-radius: 12px;
  border: 1.5px dashed rgba(168, 230, 245, 0.35);
  display: grid;
  place-items: center;
  color: rgba(247, 250, 252, 0.45);
  font-size: 0.9rem;
}

/* ===== Footer ===== */
.footer {
  background: var(--navy-950);
  color: rgba(247, 250, 252, 0.75);
  padding: 3.5rem 0 1.8rem;
  border-top: 1px solid rgba(91, 200, 232, 0.12);
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(247, 250, 252, 0.1);
}
.footer__brand { color: var(--snow); max-width: 320px; }
.footer__brand img { height: 36px; width: auto; margin-bottom: 0.9rem; }
.footer__brand p { font-size: 0.9rem; color: rgba(247, 250, 252, 0.6); }
.footer__links { display: flex; gap: 1.4rem; flex-wrap: wrap; align-items: center; }
.footer__links a { color: rgba(247, 250, 252, 0.75); text-decoration: none; font-size: 0.92rem; }
.footer__links a:hover { color: var(--ice-300); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.6rem;
  font-size: 0.85rem;
  color: rgba(247, 250, 252, 0.5);
}
.footer__signature a { color: var(--ice-300); text-decoration: none; font-weight: 500; }
.footer__signature a:hover { text-decoration: underline; }

/* ===== 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: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .snowflake { display: none; }
  .mountain { transform: none !important; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .cards, .fleet { grid-template-columns: 1fr 1fr; }
  .route__steps { grid-template-columns: 1fr 1fr; }
  .route__step { margin-top: 0 !important; }
  .route__path { display: none; }
  .nosotros { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed;
    top: 0; right: 0;
    height: 100dvh;
    width: min(78vw, 320px);
    background: var(--navy-950);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 2.5rem 2rem;
    gap: 1.6rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.4);
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__links a { font-size: 1.1rem; }

  .hero__content { padding: 7.5rem 0 13rem; }
  .cards, .fleet, .route__steps { grid-template-columns: 1fr; }
  .section { padding: 4.5rem 0; }
  .section--dark.section { padding-top: 7rem; padding-bottom: 7rem; }
  .footer__bottom { justify-content: center; text-align: center; }
}
