/* ==========================================================================
   Suyai Ingeniería — Hoja de estilos principal
   ========================================================================== */

:root {
  --navy: #0a1a3a;
  --navy-2: #0d2050;
  --navy-soft: #16233f;
  --orange: #f15a22;
  --orange-dark: #d94a15;
  --orange-light: #fff1ea;
  --whatsapp: #25d366;
  --whatsapp-dark: #1eb457;
  --gray-50: #f6f6f7;
  --gray-100: #eef0f3;
  --gray-200: #e2e5ea;
  --gray-400: #98a0ad;
  --text-body: #4b5468;
  --text-dark: #10182c;
  --white: #ffffff;
  --radius: 10px;
  --shadow-card: 0 10px 30px rgba(10, 26, 58, 0.08);
  --shadow-hover: 0 16px 40px rgba(10, 26, 58, 0.14);
  --container: 1180px;
  --font-head: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--text-dark);
  margin: 0 0 .6em;
  line-height: 1.25;
  font-weight: 600;
}

p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 88px 0; }
.section-gray { background: var(--gray-50); }
.section-navy { background: var(--navy); color: #c7cee0; }

.eyebrow {
  display: inline-block;
  color: var(--orange);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(24px, 3vw, 32px); }
.section-head .rule {
  width: 64px;
  height: 3px;
  background: var(--orange);
  margin: 18px auto 0;
  border-radius: 2px;
}
.section-head.align-left { margin: 0 0 40px; text-align: left; }
.section-head.align-left .rule { margin: 18px 0 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: .2px;
  border: 2px solid transparent;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn-orange { background: var(--orange); color: var(--white); }
.btn-orange:hover { background: var(--orange-dark); }
.btn-outline-navy { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }
.btn-outline-white { border-color: rgba(255,255,255,.6); color: var(--white); background: transparent; }
.btn-outline-white:hover { background: var(--white); color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-2); }
.btn-block { width: 100%; justify-content: center; }
.btn svg { width: 16px; height: 16px; flex: none; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy);
  color: #b9c1d6;
  font-size: 13px;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  padding-bottom: 8px;
}
.topbar-left { display: flex; gap: 26px; flex-wrap: wrap; }
.topbar-left a, .topbar-left span { display: inline-flex; align-items: center; gap: 7px; color: #b9c1d6; }
.topbar-left a:hover { color: var(--white); }
.topbar-left svg { width: 14px; height: 14px; color: var(--orange); flex: none; }
.topbar-social { display: flex; gap: 10px; }
.topbar-social a {
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  color: var(--white);
}
.topbar-social a:hover { background: var(--orange); border-color: var(--orange); }
.topbar-social svg { width: 13px; height: 13px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 136px;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 130px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .3px;
  color: var(--navy);
  padding: 6px 0;
  position: relative;
}
.main-nav a.active,
.main-nav a:hover { color: var(--orange); }
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}
.header-actions { display: flex; align-items: center; gap: 18px; }
.nav-toggle {
  display: none;
  background: none; border: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after { display: none; }
.nav-toggle svg { width: 26px; height: 26px; color: var(--navy); }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  color: var(--white);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(6,14,34,.92) 10%, rgba(6,14,34,.72) 42%, rgba(6,14,34,.35) 78%);
}
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 620px; }
.hero-content h1 {
  color: var(--white);
  font-size: clamp(30px, 4.6vw, 48px);
  font-weight: 700;
  margin-bottom: 20px;
}
.hero-content p {
  font-size: 17px;
  color: #dfe4f0;
  max-width: 520px;
  margin-bottom: 30px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Page (inner) banner ---------- */
.page-banner {
  position: relative;
  padding: 130px 0 60px;
  color: var(--white);
  background-size: cover;
  background-position: center;
  text-align: center;
}
.page-banner::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,14,34,.88), rgba(6,14,34,.82));
}
.page-banner .container { position: relative; z-index: 2; }
.page-banner h1 { color: var(--white); font-size: clamp(28px, 4vw, 40px); margin-bottom: 10px; }
.breadcrumb { display: inline-flex; gap: 8px; color: #c7cee0; font-size: 14px; font-weight: 500; }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb .sep { color: var(--orange); }

/* ---------- Services grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.service-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); border-color: transparent; }
.service-icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: var(--orange-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.service-icon svg { width: 28px; height: 28px; color: var(--orange); }
.service-card h3 { font-size: 17px; margin-bottom: 10px; }
.service-card p { font-size: 14.5px; margin-bottom: 16px; }
.service-link { color: var(--orange); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.service-link svg { width: 15px; height: 15px; transition: transform .2s ease; }
.service-card:hover .service-link svg { transform: translateX(4px); }
.services-cta { text-align: center; margin-top: 48px; }

/* ---------- Stats ---------- */
.stats-bar { background: var(--gray-100); padding: 44px 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.stat-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--orange-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--orange);
}
.stat-icon svg { width: 28px; height: 28px; }
.stat-item strong { font-family: var(--font-head); font-size: 28px; color: var(--navy); font-weight: 700; }
.stat-item span { font-size: 13.5px; font-weight: 700; letter-spacing: .3px; color: var(--text-dark); text-transform: uppercase; }
.stat-item small { font-size: 13px; color: var(--text-body); }

/* ---------- Projects ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.project-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 340px;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow-card);
  background-size: cover;
  background-position: center;
}
.project-card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,14,34,0) 35%, rgba(4,10,26,.92) 100%);
}
.project-card .project-body { position: relative; z-index: 2; padding: 26px; color: var(--white); }
.project-tag {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.project-card h3 { color: var(--white); font-size: 19px; margin-bottom: 6px; }
.project-loc { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #cdd4e6; margin-bottom: 14px; }
.project-loc svg { width: 14px; height: 14px; color: var(--orange); }
.project-more { color: var(--white); font-weight: 700; font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px; }
.project-more svg { width: 14px; height: 14px; }
.projects-cta { text-align: center; margin-top: 44px; }

/* ---------- Technology band ---------- */
.tech-band { background: var(--navy); padding: 56px 0; }
.tech-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.tech-item { text-align: center; color: #c7cee0; }
.tech-icon {
  width: 58px; height: 58px;
  margin: 0 auto 16px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--orange);
}
.tech-icon svg { width: 28px; height: 28px; }
.tech-item h4 { color: var(--white); font-size: 15px; margin-bottom: 6px; }
.tech-item p { font-size: 13px; color: #a9b1c8; margin: 0; }

/* ---------- About / split section ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow-card); width: 100%; height: 460px; object-fit: cover; }
.split-body h2 { font-size: clamp(24px, 3vw, 32px); }
.split-body p { font-size: 15.5px; }

/* ---------- Blog / articles ---------- */
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.article-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .2s ease, box-shadow .2s ease;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.article-media { height: 190px; background-size: cover; background-position: center; position: relative; }
.article-date {
  position: absolute; left: 16px; bottom: -16px;
  background: var(--orange);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 5px;
  display: flex; align-items: center; gap: 6px;
}
.article-date svg { width: 13px; height: 13px; }
.article-body { padding: 30px 22px 24px; }
.article-tag { color: var(--orange); font-weight: 700; font-size: 12px; letter-spacing: .5px; text-transform: uppercase; }
.article-body h3 { font-size: 16.5px; margin: 10px 0 14px; }
.article-link { color: var(--text-dark); font-weight: 700; font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px; }
.article-link svg { width: 14px; height: 14px; color: var(--orange); }

/* ---------- CTA banner ---------- */
.cta-banner { background: var(--orange); color: var(--white); }
.cta-banner .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 30px; flex-wrap: wrap; padding: 42px 24px;
}
.cta-text { display: flex; align-items: center; gap: 20px; max-width: 560px; }
.cta-icon {
  width: 52px; height: 52px; flex: none;
  background: rgba(255,255,255,.18);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.cta-icon svg { width: 26px; height: 26px; color: var(--white); }
.cta-text h3 { color: var(--white); font-size: 19px; margin-bottom: 4px; }
.cta-text p { margin: 0; color: #ffe6d9; font-size: 14.5px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-banner .btn-navy:hover { background: #071022; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #97a0b8; padding: 70px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
/* El logo es un cuadrado con la marca escrita dentro: a 38px el texto
   "SUYAI INGENIERIA" no se leia. Paso a 76px el 15-08-2026 y despues a 110px.
   Sigue por debajo de los 130px del header, y la columna de la marca lo
   absorbe sin crecer: la altura del footer la fija la columna de enlaces. */
.footer-brand .brand img { height: 110px; }
.footer-brand p { font-size: 14px; margin-top: 16px; color: #97a0b8; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
}
.footer-social a:hover { background: var(--orange); border-color: var(--orange); }
.footer-social svg { width: 15px; height: 15px; }
.site-footer h4 { color: var(--white); font-size: 15px; margin-bottom: 20px; }
.site-footer ul li { margin-bottom: 12px; }
.site-footer ul li a { font-size: 14px; color: #97a0b8; }
.site-footer ul li a:hover { color: var(--orange); }
.footer-contact li { display: flex; gap: 10px; font-size: 14px; margin-bottom: 16px; align-items: flex-start; }
.footer-contact svg { width: 16px; height: 16px; color: var(--orange); flex: none; margin-top: 2px; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0; font-size: 13px; flex-wrap: wrap; gap: 10px;
}
.footer-bottom a:hover { color: var(--orange); }
.footer-legal { display: flex; gap: 22px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hp-field { position: absolute; opacity: 0; height: 0; width: 0; overflow: hidden; z-index: -1; pointer-events: none; }
.form-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 13.5px; font-weight: 700; color: var(--text-dark); }
/* Un <select> toma como ancho mínimo el de su opción más larga ("Subdivisiones y
   verificación de deslindes"), y como los items de grid y flex traen
   min-width:auto, ese mínimo empujaba la tarjeta entera fuera de la pantalla en
   móvil. Con min-width:0 el campo puede encogerse y el texto se recorta dentro
   del propio select en vez de desbordar la página. */
.form-field { min-width: 0; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  padding: 13px 14px;
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--text-dark);
  background: var(--white);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--orange);
}
.captcha-field .captcha-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--orange-light);
  border: 1px solid #f7d3c2;
  border-radius: 8px;
  padding: 14px 16px;
}
.captcha-field .captcha-pregunta {
  margin: 0;
  flex: 1 1 180px;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
}
.captcha-field input[type="text"] {
  flex: 0 1 140px;
  min-width: 0;
}
.captcha-refrescar {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  background: var(--white);
  color: var(--text-body);
  cursor: pointer;
}
.captcha-refrescar:hover { color: var(--orange); border-color: var(--orange); }
.captcha-refrescar svg { width: 17px; height: 17px; }
.captcha-refrescar.girando svg { animation: captcha-giro .6s linear; }
@keyframes captcha-giro { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.captcha-ayuda { font-size: 12.5px; color: var(--text-body); font-weight: 400; }

.contact-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 40px;
}
.contact-info-card {
  background: var(--navy);
  color: #c7cee0;
  border-radius: var(--radius);
  padding: 40px;
  height: 100%;
}
.contact-info-card h3 { color: var(--white); }
.contact-info-list li { display: flex; gap: 14px; margin-bottom: 22px; font-size: 14.5px; }
.contact-info-list strong { display: block; color: var(--white); font-size: 14px; margin-bottom: 3px; }
.contact-info-list .ico {
  width: 42px; height: 42px; flex: none;
  background: rgba(241,90,34,.18);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--orange);
}
.contact-info-list .ico svg { width: 20px; height: 20px; }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); margin-top: 40px; }
.map-wrap iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ---------- Value / team cards (nosotros) ---------- */
.value-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.value-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 30px; }
.value-card .service-icon { margin-bottom: 18px; }
.value-card h3 { font-size: 17px; }
.value-card p { font-size: 14.5px; margin: 0; }

.mv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 10px; }
.mv-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 34px; border-top: 4px solid var(--orange); }
.mv-card h3 { font-size: 18px; display: flex; align-items: center; gap: 10px; }
.mv-card h3 svg { width: 22px; height: 22px; color: var(--orange); }
.mv-card p { font-size: 15px; margin: 0; }

/* ---------- Services detail list (servicios.html) ---------- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--gray-200);
}
.service-detail:last-child { border-bottom: none; }
.service-detail:nth-child(even) .service-detail-media { order: 2; }
.service-detail-media img { border-radius: var(--radius); box-shadow: var(--shadow-card); height: 320px; width: 100%; object-fit: cover; }
.service-detail-body .service-icon { margin-bottom: 18px; }
.service-detail-body h3 { font-size: 22px; }
.service-num { color: var(--gray-400); font-weight: 700; font-size: 13px; letter-spacing: 1px; }

/* ---------- Blog page filters ---------- */
.blog-filters { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 50px; }
.blog-filters button {
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dark);
}
.blog-filters button.active,
.blog-filters button:hover { background: var(--orange); color: var(--white); border-color: var(--orange); }

/* ---------- Documentos legales (política de privacidad, términos) ---------- */
.legal-doc { max-width: 820px; margin: 0 auto; }
.legal-doc p { font-size: 15.5px; }
.legal-doc a { color: var(--orange); font-weight: 600; }
.legal-doc a:hover { text-decoration: underline; }
.legal-doc strong { color: var(--text-dark); }

.legal-meta {
  display: flex; flex-wrap: wrap; gap: 8px 26px;
  font-size: 13.5px; color: var(--text-body);
  border-top: 2px solid var(--navy);
  border-bottom: 1px solid var(--gray-200);
  padding: 14px 0; margin: 0 0 34px;
}
.legal-lead { font-size: 17px; color: var(--text-dark); }

.legal-doc h2 {
  font-size: 20px; margin: 46px 0 14px;
  padding-left: 14px; border-left: 4px solid var(--orange);
  scroll-margin-top: 90px;
}
.legal-doc h3 { font-size: 16px; margin: 28px 0 8px; }

.legal-list { margin: 0 0 1.2em; padding: 0; }
.legal-list li {
  position: relative; padding-left: 22px; margin-bottom: 10px; font-size: 15.5px;
}
.legal-list li::before {
  content: ""; position: absolute; left: 2px; top: 9px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--orange);
}

/* Las tablas pueden ser más anchas que la pantalla del móvil: se desplazan
   dentro de su propia caja en vez de empujar la página entera hacia el lado. */
.legal-table-wrap { overflow-x: auto; margin: 0 0 1.4em; -webkit-overflow-scrolling: touch; }
.legal-table {
  width: 100%; min-width: 520px; border-collapse: collapse;
  font-size: 14.5px; background: var(--white);
}
.legal-table th {
  text-align: left; font-family: var(--font-head); font-weight: 600;
  font-size: 14px; color: var(--navy); padding: 12px 14px;
  border-bottom: 2px solid var(--navy);
}
.legal-table td {
  padding: 12px 14px; border-bottom: 1px solid var(--gray-200); vertical-align: top;
}
/* Ficha del responsable: encabezados en la columna izquierda, no arriba */
.legal-table-datos { min-width: 420px; }
.legal-table-datos th {
  width: 34%; border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50); white-space: nowrap;
}

.legal-note {
  margin: 20px 0; padding: 20px 22px;
  background: var(--white); border: 1px solid var(--gray-200);
  border-left: 4px solid var(--navy); border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 15px; line-height: 1.9;
}
.legal-firma {
  margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--gray-200);
  font-size: 13.5px; color: var(--gray-400);
}

@media (max-width: 640px) {
  .legal-lead { font-size: 16px; }
  .legal-doc h2 { font-size: 18px; margin-top: 36px; }
  .legal-meta { gap: 6px; flex-direction: column; }
}

/* ---------- Mobile nav ---------- */
@media (max-width: 960px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn-orange span { display: none; }
  .split, .service-detail { grid-template-columns: 1fr; gap: 30px; }
  .service-detail:nth-child(even) .service-detail-media { order: 0; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid, .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid, .mv-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .topbar .topbar-left span:nth-child(2) { display: none; }
  .services-grid, .projects-grid, .articles-grid, .stats-grid, .tech-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-banner .container { flex-direction: column; align-items: flex-start; }
  .form-grid { grid-template-columns: 1fr; }
  .hero { min-height: 560px; }
  .site-header .container { height: 108px; }
  .brand img { height: 101px; }
}

/* Mobile nav open state */
.main-nav.open {
  display: flex;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--white);
  flex-direction: column;
  padding: 16px 24px 24px;
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-card);
  gap: 6px;
}
.main-nav.open a { padding: 12px 0; border-bottom: 1px solid var(--gray-100); }

/* ---------- Botón flotante de WhatsApp ---------- */
/* Un solo enlace, pero visualmente dos piezas: círculo + burbuja. */
.wa-float {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 99;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.wa-float .wa-icon {
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(10, 26, 58, .24), 0 0 0 1px rgba(6, 54, 30, .12);
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.wa-float .wa-icon svg { width: 27px; height: 27px; fill: currentColor; }
.wa-float .wa-msg {
  position: relative;
  background: var(--white);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1.25;
  padding: 9px 14px;
  border-radius: 8px;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(10, 26, 58, .16), 0 0 0 1px rgba(10, 26, 58, .06);
  transition: transform .2s ease;
}
/* Puntita de la burbuja apuntando al círculo */
.wa-float .wa-msg::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-left-width: 0;
  border-right-color: var(--white);
}
.wa-float:hover .wa-icon {
  background: var(--whatsapp-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(10, 26, 58, .3), 0 0 0 1px rgba(6, 54, 30, .16);
}
.wa-float:hover .wa-msg { transform: translateX(2px); }
.wa-float:focus-visible { outline: none; }
.wa-float:focus-visible .wa-icon {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

/* En móvil queda solo el círculo, para no tapar contenido */
@media (max-width: 640px) {
  .wa-float { left: 16px; bottom: 16px; }
  .wa-float .wa-msg { display: none; }
  .wa-float .wa-icon { width: 48px; height: 48px; }
  .wa-float .wa-icon svg { width: 25px; height: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  .wa-float .wa-icon { transition: background .2s ease; }
  .wa-float .wa-msg { transition: none; }
  .wa-float:hover .wa-icon,
  .wa-float:hover .wa-msg { transform: none; }
}
