/* ─── Google Fonts ─────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,600;0,9..40,700;0,9..40,800;0,9..40,900;1,9..40,400&family=Manrope:wght@300;400;600;700;800&display=swap');

/* ─── Variables ─────────────────────────────────────────────────────────────── */
:root {
  --green: #00b864;
  --navy:  #0a2342;
  --blue:  #10315e;
  --gray:  #f0f1f2;
  --dark-footer: #061829;
  --font-dm: 'DM Sans', sans-serif;
  --font-mn: 'Manrope', sans-serif;
}

/* ─── Reset / base ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-mn); background: #fff; color: var(--navy); }
img  { display: block; max-width: 100%; }
a    { text-decoration: none; }
button { cursor: pointer; border: none; background: none; padding: 0; }

/* ─── Fade-up animation ─────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

.stagger-child:nth-child(1) { transition-delay: 0ms; }
.stagger-child:nth-child(2) { transition-delay: 80ms; }
.stagger-child:nth-child(3) { transition-delay: 160ms; }
.stagger-child:nth-child(4) { transition-delay: 240ms; }
.stagger-child:nth-child(5) { transition-delay: 320ms; }

/* ─── Card lift ─────────────────────────────────────────────────────────────── */
.card-lift {
  transition: transform 0.25s cubic-bezier(0.22,1,0.36,1), box-shadow 0.25s cubic-bezier(0.22,1,0.36,1);
}
.card-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* ─── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50px;
  font-family: var(--font-mn);
  font-weight: 700;
  font-size: 13px;
  padding: 11px 20px;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
  user-select: none;
  border: none;
}
.btn:hover  { opacity: 0.88; }
.btn:active { opacity: 0.6; transform: scale(0.97); }
.btn-green  { background-color: var(--green); color: #fff; }

/* ─── Header ────────────────────────────────────────────────────────────────── */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background-color: var(--navy);
}
.header-inner {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}
.logo-link { display: inline-flex; }
.sisa-logo { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.logo-tagline {
  font-family: var(--font-dm);
  font-weight: 800;
  font-size: 8px;
  line-height: 10px;
  color: #fff;
  letter-spacing: 0.4px;
  white-space: nowrap;
  margin: 0;
}

/* Desktop nav */
.desktop-nav { display: none; align-items: center; gap: 24px; }
.nav-link {
  font-family: var(--font-mn);
  font-weight: 400;
  font-size: 11px;
  color: #fff;
  white-space: nowrap;
  transition: color 0.15s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--green);
  transition: width 0.2s ease;
}
.nav-link:hover { color: var(--green); }
.nav-link:hover::after { width: 100%; }
.nav-cta { background-color: var(--green); color: #fff; }

/* Hamburger */
.hamburger { display: flex; color: #fff; padding: 4px; transition: color 0.15s; }
.hamburger:hover { color: var(--green); }
.hamburger .icon-close { display: none; }
.hamburger.open .icon-menu { display: none; }
.hamburger.open .icon-close { display: block; }

/* Mobile drawer */
.mobile-drawer {
  display: none;
  flex-direction: column;
  padding: 8px 20px 24px;
  gap: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  background-color: var(--navy);
}
.mobile-drawer.open { display: flex; }
.mobile-nav-link {
  font-family: var(--font-mn);
  font-weight: 400;
  font-size: 14px;
  color: #fff;
  transition: color 0.15s;
}
.mobile-nav-link:hover { color: var(--green); }
.mobile-cta { align-self: flex-start; }

/* Main offset for fixed header */
main { padding-top: 70px; }

/* ─── Hero slider (contenedor) ────────────────────────────────────────────── */
.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.hero-slider .hero-section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
  z-index: 1;
}
.hero-slider .hero-section.active {
  position: relative; /* el primero fija la altura real del slider */
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* ─── Hero sections ─────────────────────────────────────────────────────────── */
.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
}
.hero-bg-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(10,35,66,0.55);
  mix-blend-mode: multiply;
}
.hero-content-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 48px 0;
}
.hero-content {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

/* Hero product composition */
.hero-composition {
  position: relative;
  flex-shrink: 0;
  width: min(340px, 88vw);
  height: min(290px, 75vw);
}
.hero-circle {
  position: absolute;
  border-radius: 50%;
  background-color: var(--green);
}
.hero-prod { position: absolute; }
.prod-img { width: 100%; height: 100%; object-fit: cover; }
.prod-contain { object-fit: contain; }

/* Hero text */
.hero-text {
  width: 100%;
  max-width: 560px;
}
.hero-text-left  { text-align: center; }
.hero-text-right { text-align: center; }
.hero-heading {
  color: #fff;
  font-family: var(--font-dm);
  font-weight: 400;
  font-size: clamp(24px, 5vw, 44px);
  line-height: clamp(32px, 6vw, 52px);
  margin: 0 0 24px;
}
.hero-heading strong { font-weight: 800; }
.hero-cta { margin-top: 0; }

/* ─── Section Nosotros (claro) ──────────────────────────────────────────────── */
.section-nosotros {
  background: #fff;
  padding: 48px 20px;
}
.nosotros-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}
.nosotros-text {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
}
.section-label {
  font-family: var(--font-dm);
  font-weight: 800;
  font-size: 16px;
  line-height: 40px;
  color: var(--green);
  margin: 0;
}
.nosotros-heading {
  font-family: var(--font-dm);
  font-weight: 800;
  font-size: clamp(26px, 4vw, 40px);
  line-height: clamp(32px, 5vw, 48px);
  color: var(--navy);
  letter-spacing: -1.5px;
  margin: 0;
}
.nosotros-body {
  font-family: var(--font-mn);
  font-weight: 400;
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.6;
  color: var(--navy);
  margin: 0;
}
.nosotros-photo-wrap {
  width: 100%;
  max-width: 614px;
  border-radius: 10px;
  overflow: hidden;
  height: clamp(220px, 35vw, 401px);
}
.nosotros-photo { width: 100%; height: 100%; object-fit: cover; }

/* ─── Section cards (Seguridad / Climatización) ─────────────────────────────── */
.section-cards {
  overflow: hidden;
  padding: 40px 20px 64px;
}
.section-gray  { background-color: var(--gray); }
.section-white { background-color: #fff; }

.section-cards-inner {
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
}

/* Watermark */
.watermark-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  height: clamp(48px, 8vw, 96px);
}
.watermark {
  position: absolute;
  font-family: var(--font-dm);
  font-weight: 900;
  line-height: 1;
  color: var(--green);
  opacity: 0.1;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  margin: 0;
  text-align: center;
}
.watermark-seg  { font-size: clamp(52px, 12vw, 140px); }
.watermark-clim { font-size: clamp(32px, 8vw, 120px); }

.cards-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.mt-section { margin-top: 56px; }

/* Section headings */
.section-heading {
  font-family: var(--font-dm);
  font-weight: 800;
  font-size: clamp(22px, 3.5vw, 32px);
  line-height: clamp(28px, 4.5vw, 40px);
  color: var(--navy);
  letter-spacing: -1.5px;
  text-align: center;
  margin: 0;
}
.what-heading {
  font-family: var(--font-dm);
  font-weight: 700;
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.3;
  color: var(--blue);
  letter-spacing: -1px;
  text-align: center;
  margin: 0;
}

/* Audience cards grid */
.audience-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: stretch;
  justify-content: center;
}
.audience-card {
  display: flex;
  align-items: center;
  padding: 20px 20px;
  border-radius: 10px;
}
.bg-white { background-color: #fff; }
.bg-gray  { background-color: var(--gray); }
.audience-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: clamp(96px, 10vw, 128px);
}
.audience-label {
  font-family: var(--font-dm);
  font-weight: 600;
  font-size: clamp(13px, 1.5vw, 18px);
  color: var(--blue);
  text-align: center;
  letter-spacing: -0.8px;
  line-height: 1.2;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

/* Product cards grid */
.products-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.product-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--blue);
  width: clamp(140px, 18vw, 200px);
  height: clamp(200px, 28vw, 300px);
}
.product-img-wrap {
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  height: clamp(130px, 18vw, 200px);
}
.product-img {
  position: absolute;
  top: 0;
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: cover;
}
.product-label-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 8px 12px;
}
.product-label {
  font-family: var(--font-dm);
  font-weight: 600;
  font-size: clamp(13px, 1.5vw, 18px);
  line-height: 1.2;
  color: var(--blue);
  text-align: center;
  letter-spacing: -0.8px;
  margin: 0;
}

/* ─── Section Nosotros dark ─────────────────────────────────────────────────── */
.section-nosotros-dark {
  background-color: var(--navy);
  padding: 48px 20px;
}
.nosotros-dark-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}
.nosotros-dark-text {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
}
.nosotros-dark-heading {
  font-family: var(--font-dm);
  font-weight: 800;
  font-size: clamp(26px, 4vw, 40px);
  line-height: clamp(32px, 5vw, 48px);
  color: #fff;
  letter-spacing: -1.5px;
  margin: 0;
}
.nosotros-dark-body {
  font-family: var(--font-mn);
  font-weight: 400;
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.7;
  color: #fff;
}
.nosotros-dark-body p { margin: 0 0 16px; }
.nosotros-dark-body p:last-child { margin-bottom: 0; }

/* Value cards grid */
.value-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: 100%;
}
.value-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 10px;
  padding: 24px 16px;
  background-color: var(--blue);
  min-height: 148px;
  border: 1.5px solid transparent;
  transition: background-color 0.25s, border-color 0.25s, transform 0.25s cubic-bezier(0.22,1,0.36,1), box-shadow 0.25s cubic-bezier(0.22,1,0.36,1);
}
.value-card:hover {
  background-color: #1a3f6e;
  border-color: var(--green);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.value-icon { display: block; transition: transform 0.3s; }
.value-card:hover .value-icon { transform: scale(1.1); }
.value-label {
  font-family: var(--font-dm);
  font-weight: 600;
  font-size: clamp(14px, 1.6vw, 18px);
  line-height: 1.3;
  color: #fff;
  text-align: center;
  letter-spacing: -0.8px;
  margin: 0;
}

/* ─── Section Cómo trabajamos ───────────────────────────────────────────────── */
.section-como {
  background: #fff;
  padding: 48px 20px;
}
.section-como-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}
.como-title {
  text-align: center;
}
.como-heading {
  font-family: var(--font-dm);
  font-weight: 800;
  font-size: clamp(26px, 4vw, 40px);
  line-height: clamp(32px, 5vw, 48px);
  color: var(--navy);
  letter-spacing: -1.5px;
  margin: 0;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 20px;
  width: 100%;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.step-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: var(--green);
  border: 1px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-num {
  font-family: var(--font-dm);
  font-weight: 900;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1;
  color: #fff;
  letter-spacing: -1.5px;
}
.step-title {
  font-family: var(--font-dm);
  font-weight: 900;
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.3;
  color: var(--blue);
  letter-spacing: -1px;
  margin: 0;
}
.step-desc {
  font-family: var(--font-mn);
  font-weight: 400;
  font-size: clamp(13px, 1.5vw, 15px);
  line-height: 1.6;
  color: var(--blue);
  margin: 0;
}

/* ─── Section Contacto ──────────────────────────────────────────────────────── */
.section-contacto {
  background-color: var(--navy);
  padding: 48px 20px;
}
.contacto-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}
.contacto-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
}
.contacto-heading {
  font-family: var(--font-dm);
  font-weight: 900;
  font-size: clamp(28px, 4.5vw, 48px);
  line-height: clamp(34px, 5.5vw, 56px);
  color: #fff;
  margin: 0;
}
.contacto-sub {
  font-family: var(--font-mn);
  font-weight: 300;
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.7;
  color: #fff;
  margin: 0;
}
.contacto-details { display: flex; flex-direction: column; gap: 16px; }
.detail-item { display: flex; align-items: center; gap: 16px; }
.detail-icon-wrap { flex-shrink: 0; }
.detail-label {
  font-family: var(--font-mn);
  font-weight: 300;
  font-size: 14px;
  color: #fff;
  margin: 0;
}
.detail-value {
  font-family: var(--font-mn);
  font-weight: 600;
  font-size: clamp(15px, 1.8vw, 18px);
  color: #fff;
  margin: 0;
}

/* Contact form card */
.form-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 0 16px rgba(0,0,0,0.18);
  padding: 24px;
  width: 100%;
}
.form-field { display: flex; flex-direction: column; gap: 4px; }
.form-label {
  font-family: var(--font-mn);
  font-weight: 600;
  font-size: 14px;
  color: var(--green);
}
.input-wrap { position: relative; }
.form-input {
  width: 100%;
  height: 46px;
  border-radius: 10px;
  padding: 8px 40px 8px 16px;
  font-family: var(--font-mn);
  font-weight: 300;
  font-size: 14px;
  color: #333;
  border: 1px solid #949494;
  background: #fff;
  outline: none;
  transition: border-color 0.15s, background-color 0.15s;
  box-sizing: border-box;
}
.form-input:focus { border-color: var(--green); }
.form-input.error { border-color: #e53e3e; background-color: #fff5f5; }
.form-input.ok    { border-color: var(--green); }
.input-status {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  display: none;
}
.input-status.show { display: block; }
.error-slot { min-height: 18px; }
.error-msg {
  font-family: var(--font-mn);
  font-weight: 400;
  font-size: 12px;
  color: #e53e3e;
  line-height: 1.4;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.submit-btn {
  align-self: flex-start;
  margin-top: 4px;
  background-color: #c0c0c0;
  color: #fff;
}
.submit-btn.valid { background-color: var(--green); }
.submit-btn:disabled { cursor: not-allowed; }

/* Form success state */
.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 40px 0;
}
.success-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
}
.success-title {
  font-family: var(--font-dm);
  font-weight: 800;
  font-size: 22px;
  color: var(--navy);
  text-align: center;
  margin: 0;
}
.success-sub {
  font-family: var(--font-mn);
  font-weight: 400;
  font-size: 15px;
  color: var(--blue);
  text-align: center;
  margin: 0;
}
.success-reset {
  font-family: var(--font-mn);
  font-weight: 600;
  font-size: 13px;
  color: var(--green);
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  transition: opacity 0.15s;
}
.success-reset:hover { opacity: 0.7; }

/* ─── Footer ────────────────────────────────────────────────────────────────── */
.site-footer {
  background-color: var(--dark-footer);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.footer-copy {
  font-family: var(--font-mn);
  font-weight: 300;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  text-align: center;
  margin: 0;
}

/* ─── WhatsApp FAB ──────────────────────────────────────────────────────────── */
.whatsapp-fab {
  position: fixed;
  bottom: clamp(16px, 2vw, 24px);
  right: clamp(16px, 2vw, 24px);
  z-index: 100;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #25D366;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
  padding: 0;
}
.whatsapp-fab:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* ─── Responsive: 768px (tablet) ───────────────────────────────────────────── */
@media (min-width: 768px) {
  .header-inner  { padding: 0 32px; }
  .section-nosotros, .section-nosotros-dark, .section-como, .section-contacto { padding: 64px 32px; }
  .section-cards { padding: 48px 32px 80px; }
  .hero-content  { padding: 0 32px; }

  .site-footer {
    flex-direction: row;
    justify-content: space-between;
    padding: 28px 32px;
  }

  .form-card { padding: 36px; }
  .mt-section { margin-top: 64px; }

  .nosotros-inner, .nosotros-dark-inner, .section-como-inner { gap: 48px; }
}

/* ─── Responsive: 1024px (desktop) ─────────────────────────────────────────── */
@media (min-width: 1024px) {
  .header-inner { height: 94px; }
  main { padding-top: 94px; }
  .desktop-nav { display: flex; }
  .hamburger   { display: none; }

  .hero-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 64px;
    min-height: 600px;
  }
  .hero-content-wrapper { padding: 0; }
  .hero-seg  .hero-composition { order: 2; }
  .hero-seg  .hero-text        { order: 1; max-width: 467px; text-align: left; }
  .hero-clim .hero-composition { order: 1; }
  .hero-clim .hero-text        { order: 2; max-width: 520px; text-align: right; }

  .nosotros-inner {
    flex-direction: row;
    padding: 0 120px;
    align-items: center;
  }
  .nosotros-text { max-width: 486px; }
  .nosotros-text .btn { align-self: flex-start; }

  .nosotros-dark-inner {
    flex-direction: row;
    padding: 0 113px;
    align-items: center;
    gap: 80px;
  }
  .nosotros-dark-text { max-width: 500px; }

  .section-cards-inner { padding: 0 148px; }

  .steps-grid { grid-template-columns: repeat(4, 1fr); }

  .contacto-inner {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 64px;
    padding: 0 64px;
  }
  .contacto-info { max-width: 384px; width: auto; }
  .form-card { max-width: 510px; width: 100%; }

  .value-cards-grid { width: auto; }
}

/* ─── Responsive: 1280px (xl) ──────────────────────────────────────────────── */
@media (min-width: 1280px) {
  .header-inner { padding: 0 64px; }
  .desktop-nav  { gap: 40px; }
  .section-nosotros, .section-nosotros-dark, .section-como, .section-contacto { padding: 96px 0; }
  .section-cards { padding: 52px 0 96px; }
}
