/* ==========================================================================
   METROLAB AUSTRAL — Hoja de estilos
   Paleta oficial de marca (del logotipo):
     #2C2D3B  Azul oscuro institucional  -> títulos, texto principal, fondos oscuros
     #157596  Teal / turquesa            -> CTA, links, iconos, acentos
     #90A3B0  Gris azulado               -> subtítulos, bordes suaves
     #DAE5DC / #F4F6F8  Fondos claros    -> secciones alternas y tarjetas
   ========================================================================== */

:root {
  --navy:        #2C2D3B;
  --navy-soft:   #3a3c50;
  --teal:        #157596;
  --teal-dark:   #0f5c76;
  --teal-tint:   rgba(21, 117, 150, 0.08);
  --grey-blue:   #90A3B0;
  --bg-mint:     #DAE5DC;
  --bg-light:    #F4F6F8;
  --white:       #ffffff;
  --text:        #2C2D3B;
  --text-soft:   #5b6470;

  --radius:      14px;
  --radius-lg:   22px;
  --shadow-sm:   0 2px 8px rgba(44, 45, 59, 0.06);
  --shadow-md:   0 10px 30px rgba(44, 45, 59, 0.10);
  --shadow-lg:   0 20px 50px rgba(44, 45, 59, 0.16);
  --maxw:        1140px;
  --ease:        cubic-bezier(.22,.61,.36,1);

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset básico ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img, svg, iframe { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--teal-dark); }
h1, h2, h3 { color: var(--navy); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; color: var(--teal); margin-bottom: 12px;
}
.eyebrow-light { color: #7fd0e8; }
.section-lead { color: var(--text-soft); margin-top: 12px; font-size: 1.05rem; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px; font-weight: 700; font-size: .98rem;
  cursor: pointer; border: 2px solid transparent; transition: all .22s var(--ease);
  white-space: nowrap;
}
.btn-lg { padding: 15px 32px; font-size: 1.05rem; }
.btn-accent { background: var(--teal); color: #fff; box-shadow: 0 8px 20px rgba(21,117,150,.28); }
.btn-accent:hover { background: var(--teal-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(21,117,150,.36); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid rgba(144,163,176,.22);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

/* Logo (SVG vectorizado: onda + texto) */
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.02; }
.brand-name { font-size: 1.4rem; font-weight: 800; color: var(--navy); letter-spacing: -.01em; }
.brand-name b { color: var(--teal); font-weight: 800; }
.brand-sub { font-size: .6rem; font-weight: 600; letter-spacing: .17em; text-transform: uppercase; color: var(--grey-blue); margin-top: 2px; }
.brand-logo { height: 40px; width: auto; }  /* por si se usa el PNG original */

@media (max-width: 460px) {
  .brand-name { font-size: 1.2rem; }
  .brand-sub { font-size: .54rem; letter-spacing: .12em; }
  .brand-mark { width: 38px; height: 38px; }
}
.nav { display: flex; align-items: center; gap: 30px; }
.nav-link { color: var(--navy); font-weight: 600; font-size: .98rem; }
.nav-link:hover { color: var(--teal); }
.nav-cta { color: #fff; }
.nav-cta:hover { color: #fff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--navy); border-radius: 3px; transition: .3s var(--ease); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 500px at 80% -10%, rgba(21,117,150,.35), transparent 60%),
              linear-gradient(160deg, #2C2D3B 0%, #23242f 60%, #1c2634 100%);
  color: #fff; padding: 96px 0 120px; text-align: center;
}
.hero-wave { position: absolute; top: 34%; left: 0; width: 100%; height: 120px; opacity: .5; }
.hero-inner { position: relative; z-index: 2; max-width: 780px; margin: 0 auto; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border-radius: 999px;
  background: rgba(21,117,150,.18); border: 1px solid rgba(127,208,232,.4); color: #bfe6f2;
  font-size: .85rem; font-weight: 700; margin-bottom: 26px;
}
.badge svg { color: #7fd0e8; }
.hero-title { font-size: clamp(2.1rem, 6vw, 3.6rem); color: #fff; }
.hero-title .accent { color: #4fbfe0; }
.hero-sub { color: #c5ccd6; font-size: 1.15rem; margin: 22px auto 34px; max-width: 620px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-facts { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-top: 56px; }
.fact {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); padding: 18px 26px; min-width: 180px;
}
.fact strong { display: block; color: #4fbfe0; font-size: 1.1rem; }
.fact span { color: #aab2bd; font-size: .9rem; }

/* ==========================================================================
   SERVICIOS
   ========================================================================== */
.services { background: var(--bg-light); }
.grid { display: grid; gap: 24px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border-radius: var(--radius-lg); padding: 34px 26px;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(144,163,176,.16);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.service-card { text-align: left; position: relative; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(21,117,150,.35); }
.service-icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: var(--teal-tint); color: var(--teal); margin-bottom: 18px;
}
.service-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.service-card p { color: var(--text-soft); font-size: .96rem; }

/* ==========================================================================
   ACREDITACIÓN
   ========================================================================== */
.accreditation { background: var(--navy); color: #fff; }
.accreditation-inner { display: grid; grid-template-columns: 1.3fr .9fr; gap: 60px; align-items: center; }
.accreditation h2 { color: #fff; font-size: clamp(1.6rem, 3.6vw, 2.3rem); margin-bottom: 16px; }
.accreditation p { color: #c5ccd6; margin-bottom: 22px; }
.accreditation strong { color: #7fd0e8; }
.check-list { list-style: none; margin-bottom: 28px; }
.check-list li { position: relative; padding-left: 32px; margin-bottom: 12px; color: #dfe4ea; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 50%; background: var(--teal); color: #fff;
  display: grid; place-items: center; font-size: .75rem; font-weight: 800;
}
.accreditation-badge { display: grid; place-items: center; }
.badge-ring {
  width: 220px; height: 220px; border-radius: 50%;
  border: 3px solid var(--teal);
  box-shadow: 0 0 0 12px rgba(21,117,150,.12), inset 0 0 0 2px rgba(255,255,255,.08);
  display: grid; place-content: center; text-align: center;
  background: radial-gradient(circle at 50% 30%, rgba(21,117,150,.25), transparent 70%);
}
.badge-iso { display: block; color: #90A3B0; letter-spacing: .3em; font-size: .8rem; font-weight: 700; }
.badge-num { display: block; color: #fff; font-size: 3.2rem; font-weight: 800; line-height: 1; margin: 4px 0; }
.badge-org { display: block; color: #7fd0e8; font-size: .8rem; font-weight: 600; letter-spacing: .05em; }

/* ==========================================================================
   CONTACTO
   ========================================================================== */
.contact { background: var(--bg-mint); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: stretch; }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-item {
  display: flex; align-items: center; gap: 16px; background: #fff; border-radius: var(--radius);
  padding: 18px 22px; box-shadow: var(--shadow-sm); color: var(--navy); transition: transform .2s var(--ease);
}
.contact-item:hover { transform: translateX(4px); color: var(--navy); }
.contact-ic { width: 46px; height: 46px; border-radius: 12px; background: var(--teal-tint); color: var(--teal); display: grid; place-items: center; flex-shrink: 0; }
.contact-item span:not(.contact-ic) { display: flex; flex-direction: column; font-weight: 700; }
.contact-item small { color: var(--text-soft); font-weight: 500; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.contact-map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); min-height: 340px; }
.contact-map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--navy); color: #c5ccd6; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; padding: 48px 24px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand-text { display: flex; flex-direction: column; }
.footer-brand strong { display: block; color: #fff; font-size: 1.3rem; }
.footer-brand span { color: var(--grey-blue); font-size: .9rem; }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a { color: #c5ccd6; font-weight: 600; }
.footer-nav a:hover { color: #7fd0e8; }
.footer-meta { text-align: right; font-size: .92rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; text-align: center; font-size: .85rem; color: var(--grey-blue); }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37,211,102,.45);
  transition: transform .2s var(--ease);
}
.wa-float:hover { transform: scale(1.08); color: #fff; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .accreditation-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .accreditation-badge { order: -1; }
  .check-list { display: inline-block; text-align: left; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }

  /* Menú móvil */
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid rgba(144,163,176,.2);
    padding: 10px 0; transform: translateY(-140%); transition: transform .3s var(--ease);
    box-shadow: var(--shadow-md);
  }
  .nav.open { transform: translateY(0); }
  .nav-link, .nav-cta { width: 100%; text-align: center; padding: 14px 0; }
  .nav-cta { margin: 8px 24px; width: auto; border-radius: 999px; }
  .nav-toggle { display: flex; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-meta { text-align: center; }
}

@media (max-width: 460px) {
  .grid-4 { grid-template-columns: 1fr; }
  .hero-facts .fact { min-width: 100%; }
}

/* ---------- Accesibilidad: respeta reduce-motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
