/* ═══════════════════════════════════════════
   AMASI — sitio institucional
   Basado en diseño Figma. Colores exactos:
   azul #2DA4DC · navy #1B445B · teal #005958
   ═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --azul:   #2DA4DC;
  --azul-dim: rgba(45, 164, 220, 0.1);
  --navy:   #1B445B;
  --teal:   #005958;
  --white:  #FFFFFF;
  --ink-muted: rgba(27, 68, 91, 0.7);

  --font-body: 'Inter', system-ui, sans-serif;
  --font-display: 'Montserrat', sans-serif;
  --font-alt: 'Raleway', sans-serif;

  --container: 1180px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--navy);
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; background: none; border: none; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ═══ HEADER ═══ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}
.header-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 32px;
  height: 90px;
}
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark { height: 26px; width: auto; }
.logo-text { height: 20px; width: auto; }
.main-nav { display: flex; gap: 40px; margin-left: auto; }
.main-nav a { font-weight: 700; font-size: 16px; color: var(--navy); transition: color 0.15s ease; white-space: nowrap; }
.main-nav a:hover { color: var(--azul); }
.header-social { display: flex; gap: 14px; flex-shrink: 0; }
.header-social img { width: 28px; height: 28px; }

@media (max-width: 900px) {
  .main-nav { display: none; }
}

/* ═══ HERO (carrusel) ═══ */
.hero { position: relative; height: min(70vh, 620px); min-height: 420px; overflow: hidden; }
.hero-slides { position: relative; height: 100%; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.7s ease;
  display: flex; align-items: center;
}
.hero-slide.active { opacity: 1; visibility: visible; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(45,164,220,0.88) 0%, rgba(45,164,220,0.55) 40%, rgba(27,68,91,0.15) 75%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: var(--container); margin: 0 auto; padding: 0 24px;
  width: 100%;
  color: var(--white);
}
.hero-kicker {
  display: block; font-size: 15px; font-weight: 500; margin-bottom: 6px; opacity: 0.9;
}
.hero-content h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(30px, 4.5vw, 50px);
  text-transform: uppercase; line-height: 1.1;
  max-width: 14ch; margin-bottom: 16px;
}
.hero-content p {
  font-size: clamp(14px, 1.6vw, 18px); max-width: 46ch; margin-bottom: 26px; line-height: 1.6;
}
.btn-hero {
  display: inline-block; background: var(--white); color: var(--azul);
  font-weight: 700; font-size: 15px; letter-spacing: 0.02em; text-transform: uppercase;
  padding: 14px 32px; border-radius: 47px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
  transition: transform 0.15s ease;
}
.btn-hero:hover { transform: translateY(-2px); }

.hero-dots {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; gap: 8px;
}
.hero-dots button {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,0.45);
  transition: background 0.2s ease, transform 0.2s ease;
}
.hero-dots button.active { background: var(--white); transform: scale(1.25); }

/* ═══ WHATSAPP FLOTANTE ═══ */
.whatsapp-float {
  position: fixed; right: 26px; bottom: 26px; z-index: 200;
  width: 60px; height: 60px;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,0.25));
  transition: transform 0.15s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float img { width: 100%; height: 100%; }

/* ═══ SERVICIOS ═══ */
.servicios { padding: 80px 24px 70px; max-width: var(--container); margin: 0 auto; text-align: center; }
.servicios h2 {
  font-family: var(--font-display); font-weight: 700; color: var(--navy);
  font-size: clamp(32px, 5vw, 56px); margin-bottom: 44px;
}
.servicios-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-bottom: 30px;
}
.servicio-card {
  position: relative; border-radius: 20px; overflow: hidden;
  aspect-ratio: 470 / 245;
}
.servicio-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.servicio-card::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(27,68,91,0.4);
}
.servicio-card span {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center; text-align: center;
  height: 100%; padding: 20px;
  font-weight: 600; font-size: clamp(16px, 1.8vw, 24px); color: var(--white); line-height: 1.3;
}
.btn-ver-mas {
  border: 1.5px solid var(--teal); color: var(--teal);
  font-weight: 700; font-size: 14px;
  padding: 13px 34px; border-radius: 26px;
  transition: background 0.15s ease;
}
.btn-ver-mas:hover { background: var(--azul-dim); }

@media (max-width: 820px) {
  .servicios-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .servicios-grid { grid-template-columns: 1fr; }
}

/* ═══ ¿POR QUÉ AMASI? ═══ */
.porque {
  max-width: var(--container); margin: 0 auto 90px; padding: 0 24px;
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px;
}
.porque-box { border: 1.5px solid var(--navy); border-radius: 25px; padding: 44px 40px; }
.porque-lista h2 {
  font-family: var(--font-alt); font-weight: 600; color: var(--navy);
  font-size: clamp(30px, 4vw, 48px); margin-bottom: 14px;
}
.porque-tagline { font-size: 18px; color: var(--navy); margin-bottom: 28px; line-height: 1.5; }
.porque-numeros { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.porque-numeros li {
  display: flex; align-items: baseline; gap: 14px;
  font-family: var(--font-alt); font-weight: 500; font-size: 19px; color: var(--navy);
}
.porque-numeros .num { font-size: 12px; font-weight: 400; color: var(--ink-muted); width: 18px; }

.porque-texto { display: flex; flex-direction: column; justify-content: space-between; }
.porque-texto p {
  font-family: var(--font-alt); font-weight: 400; color: var(--navy);
  font-size: clamp(22px, 2.6vw, 32px); line-height: 1.35; margin-bottom: 24px;
}
.btn-conocer-mas {
  align-self: flex-start;
  border: 1.5px solid var(--navy); color: var(--navy);
  font-family: var(--font-alt); font-weight: 700; font-size: 14px;
  padding: 13px 30px; border-radius: 26px;
  transition: background 0.15s ease;
}
.btn-conocer-mas:hover { background: var(--azul-dim); }

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

/* ═══ FOOTER ═══ */
.site-footer { background: var(--azul); color: var(--white); padding: 60px 24px 0; }
.footer-inner {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 48px;
  padding-bottom: 44px;
}
.footer-badges { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.footer-badges img {
  height: 70px; width: auto; border-radius: 6px; object-fit: contain;
  background: var(--white); padding: 4px;
}
.footer-divider { width: 1.5px; align-self: stretch; background: rgba(255,255,255,0.4); }
.footer-logo img { height: 40px; width: auto; }
.footer-contact { display: flex; flex-direction: column; gap: 14px; }
.footer-contact h2 { font-family: var(--font-display); font-weight: 700; font-size: 28px; margin-bottom: 4px; }
.footer-contact-item {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-alt); font-weight: 500; font-size: 17px; letter-spacing: 0.02em;
  transition: opacity 0.15s ease;
}
.footer-contact-item:hover { opacity: 0.8; }
.footer-contact-item img { width: 32px; height: 32px; flex-shrink: 0; }

@media (max-width: 820px) {
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-badges { justify-content: center; }
  .footer-divider { display: none; }
  .footer-logo { justify-self: center; }
  .footer-contact { align-items: center; }
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.35);
  padding: 26px 24px; text-align: center;
}
.btn-arrepentimiento {
  border: 1px solid rgba(255,255,255,0.6); color: var(--white);
  font-family: var(--font-alt); font-weight: 700; font-size: 13px;
  padding: 10px 26px; border-radius: 26px;
  transition: background 0.15s ease;
}
.btn-arrepentimiento:hover { background: rgba(255,255,255,0.12); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slide { transition: none; }
}
