/* =========================================================
   RMN CLEANING SERVICES LLC — basado en el template de TAIMSAL
   Bai Jamjuree + navy #153A5E / #102E4B + teal #4FABBC, tema claro.
   ========================================================= */

@font-face {
  font-family: 'Bai Jamjuree';
  src: url('../fonts/baijamjuree-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Bai Jamjuree';
  src: url('../fonts/baijamjuree-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Bai Jamjuree';
  src: url('../fonts/baijamjuree-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Bai Jamjuree';
  src: url('../fonts/baijamjuree-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  /* el sitio es de tema único (claro): le decimos al navegador que use controles
     nativos claros (select, scrollbar, etc.) aunque el sistema operativo esté en
     modo oscuro; si no, el desplegable del <select> sale oscuro con texto ilegible. */
  color-scheme: light;
  --navy: #153A5E;
  --navy-dark: #102e4b;
  --navy-darker: #0a1f33;
  --secondary: #102E4B;
  --cyan: #4FABBC;
  --cyan-light: #74c3d1;

  --ink: #232326;
  --text: #5e5e5f;
  --text-soft: #85898c;
  --white: #ffffff;
  --gray-bg: #f6f6f6;
  --line: #e6e7e9;

  --font: 'Bai Jamjuree', sans-serif;
  --radius: 10px;
  --radius-sm: 6px;
  --container: 1240px;

  --shadow: 0 20px 50px -20px rgba(10, 31, 51, 0.25);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --pattern: url('../img/brand/bg-pattern.png');
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  /* sparkTwinkle termina en opacity:0 (su fotograma 100%); sin esto, con animaciones
     reducidas (p. ej. ahorro de batería en Android) las estrellas quedan invisibles. */
  .spark, .rc-spark { opacity: 0.65 !important; }
}
body, h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

body {
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
  position: relative;
  z-index: 1;
}
section { position: relative; }

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--ink);
}
h2 { font-size: clamp(1.7rem, 1.35rem + 1.5vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.4rem); }

.lede { font-size: clamp(0.98rem, 0.93rem + 0.2vw, 1.08rem); color: var(--text); max-width: 58ch; line-height: 1.7; }

.section-head { max-width: 700px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .lede { margin-top: 12px; }
.section-head.center .lede { margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 20px; height: 2px; background: var(--cyan); border-radius: 2px; }
.section-head.on-dark .eyebrow, .section-head.on-dark h2, .section-head.on-dark .lede { color: var(--white); }
.section-head.on-dark .eyebrow { color: var(--cyan-light); }
.section-head.on-dark .eyebrow::before { background: var(--cyan-light); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: 999px;
  font-family: var(--font); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.03em; text-transform: uppercase;
  white-space: nowrap; border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn i { font-size: 0.95em; }
.btn:hover { transform: scale(1.05); }
.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--cyan); color: var(--white); box-shadow: 0 12px 26px -10px rgba(79, 171, 188, 0.55); }
.btn-primary:hover { background: var(--cyan-light); box-shadow: 0 14px 30px -8px rgba(79, 171, 188, 0.6); }

.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--white); }

/* semi-transparente: color terciario (teal) — usado para BOOK NOW, SERVICES, etc. */
.btn-on-dark { background: rgba(79, 171, 188, 0.14); color: var(--white); border-color: rgba(79, 171, 188, 0.55); }
.btn-on-dark:hover { background: var(--cyan); color: var(--white); border-color: var(--cyan); }

.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 0.8rem; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 100;
  background: transparent;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.scrolled { background: rgba(21, 58, 94, 0.97); box-shadow: 0 4px 20px rgba(0,0,0,0.12); backdrop-filter: blur(6px); }
.site-header:not(.on-hero) { background: var(--navy); }

.nav-row { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img { height: 48px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 2px; margin-inline: auto; }
.nav-links a {
  padding: 9px 15px; border-radius: 999px; font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.02em; text-transform: uppercase; color: rgba(255,255,255,0.88);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); background: rgba(255,255,255,0.14); }

.nav-cta { display: flex; align-items: center; gap: 12px; flex: none; }
.nav-cta .btn { padding: 6px 14px; font-size: 0.7rem; }

.nav-phone-btn {
  display: none; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--cyan); background: transparent;
  font-size: 0.7rem; font-weight: 600; color: var(--white);
  transition: background 0.2s, border-color 0.2s;
}
.nav-phone-btn i { color: var(--cyan-light); }
.nav-phone-btn:hover { background: rgba(79, 171, 188, 0.15); border-color: var(--cyan-light); }

.nav-toggle { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,0.4); color: var(--white); font-size: 1.05rem; z-index: 1; position: relative; }

/* botón "Get A Quote" que sólo aparece en el header fijo en móvil, a la par del hamburguesa */
.nav-quote-mobile { display: none; }

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-cta .btn:not(.nav-quote-mobile) { display: none; }
  .nav-quote-mobile { display: inline-flex; }
  .nav-toggle { display: inline-flex; }
}
@media (min-width: 1180px) { .nav-phone-btn { display: inline-flex; } }

/* ---------- íconos que parpadean para llamar la atención ---------- */
@keyframes iconAttentionPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.22); opacity: 0.55; }
}
.nav-quote-mobile i {
  display: inline-block;
  animation: iconAttentionPulse 1.6s ease-in-out infinite;
}

/* ---------- menú móvil: pantalla completa ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200;
  width: min(420px, 100%);
  margin-left: auto;
  background-color: #0e3a63;
  background-image: linear-gradient(180deg, rgba(6,20,50,0.4), rgba(4,14,38,0.55)), var(--pattern);
  background-size: cover, auto;
  display: flex; flex-direction: column;
  padding: 22px 26px 28px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  box-shadow: -20px 0 60px rgba(0,0,0,0.4);
}
.mobile-menu.open { transform: translateX(0); }

.mobile-menu-backdrop {
  position: fixed; inset: 0; z-index: 190;
  background: rgba(2, 6, 14, 0.6);
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.mobile-menu-backdrop.open { opacity: 1; visibility: visible; }

.mobile-menu-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.mobile-menu-top .brand img { height: 30px; }
.mobile-menu-close {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 1.05rem; flex: none;
}

.mobile-nav-list { display: flex; flex-direction: column; margin-top: 18px; }
.mobile-nav-list a {
  display: flex; align-items: center; gap: 16px;
  padding: 15px 4px; border-bottom: 1px solid rgba(255,255,255,0.1);
  color: var(--white); font-weight: 600; font-size: 1.02rem;
}
.mobile-nav-list a:last-child { border-bottom: 0; }
.mnl-icon {
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan-light); font-size: 0.95rem; flex: none;
}
.mnl-label { flex: 1; }
.mnl-chevron { font-size: 0.75rem; color: rgba(255,255,255,0.4); }

.mobile-menu-social { display: flex; gap: 10px; margin-top: 22px; }
.mobile-menu-social a {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 1rem;
}
.mobile-menu-social a:hover { border-color: var(--cyan); color: var(--cyan-light); }

.mobile-menu-cta { margin-top: 22px; }

.mobile-menu-info { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); }
.mobile-menu-info a, .mobile-menu-info span {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.85rem; color: rgba(255,255,255,0.75);
}
.mobile-menu-info i { color: var(--cyan-light); width: 16px; flex: none; }
.mobile-menu-info a:hover { color: var(--white); }

@media (max-width: 420px) { .mobile-menu { width: 100%; } }

/* ---------- shape dividers ---------- */
.shape-divider { position: absolute; left: 0; right: 0; line-height: 0; overflow: hidden; z-index: 2; pointer-events: none; }
.shape-divider.top { top: -1px; }
.shape-divider.bottom { bottom: -1px; transform: rotate(180deg); }
.shape-divider svg { width: 100%; height: 60px; display: block; }
@media (max-width: 720px) { .shape-divider svg { height: 32px; } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100dvh; display: flex; align-items: center; overflow: visible; background: var(--navy-darker); }
.hero-chevron {
  position: absolute; left: 0; right: 0; bottom: -1px; z-index: 3;
  height: 22px; background: var(--navy);
}
.hero-chevron span {
  position: absolute; left: 50%; top: 100%; transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 78px solid transparent;
  border-right: 78px solid transparent;
  border-top: 46px solid var(--navy);
}
@media (max-width: 640px) {
  .hero-chevron span { border-left-width: 46px; border-right-width: 46px; border-top-width: 28px; }
}
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; filter: blur(3px); transform: scale(1.05); }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,45,75,0.72) 0%, rgba(15,45,75,0.55) 45%, rgba(15,45,75,0.85) 100%);
}
.hero-inner { position: relative; z-index: 1; width: 100%; padding-block: 110px 70px; }
.hero-split { display: block; position: relative; }

.hero-headlines { color: var(--white); max-width: 640px; }

/* marca decorativa que llena el espacio que dejo el form al mudarse a Contact Us */
.hero-emblem {
  position: absolute; top: 50%; right: 0; transform: translateY(-50%);
  width: clamp(220px, 24vw, 400px); opacity: 0.16; pointer-events: none;
  filter: drop-shadow(0 24px 50px rgba(0,0,0,0.3));
}
.hero-emblem img { width: 100%; height: auto; display: block; }
@media (max-width: 980px) { .hero-emblem { display: none; } }
/* La altura de .rotating-line la fija JS (main.js) midiendo el texto activo real,
   así nunca se corta sin importar el idioma, el ancho de pantalla o cuántas líneas ocupe. */
.rotating-line { position: relative; overflow: hidden; transition: height 0.3s var(--ease); }
.rotating-line .rot-item {
  position: absolute; inset: 0; opacity: 0; transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  display: flex; align-items: center;
  overflow-wrap: break-word;
}
.rotating-line .rot-item.active { opacity: 1; transform: translateY(0); }
.rotating-line .rot-measurer { position: absolute; visibility: hidden; top: 0; left: 0; width: 100%; display: block; pointer-events: none; }
.hero-service-rotator { font-family: var(--font); font-weight: 700; font-size: clamp(1.05rem, 0.85rem + 1vw, 1.7rem); line-height: 1.3; color: var(--cyan-light); text-transform: uppercase; letter-spacing: 0.01em; }
.hero-rule { width: 100%; height: 1px; background: rgba(255,255,255,0.25); margin-top: 18px; }
.hero-slogan-rotator { margin-top: 18px; font-family: var(--font); font-weight: 600; font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.4rem); line-height: 1.4; color: rgba(255,255,255,0.92); }

.hero-subhead { margin-top: 14px; font-weight: 400; font-size: clamp(0.92rem, 0.88rem + 0.2vw, 1.02rem); color: rgba(255,255,255,0.72); max-width: 42ch; }
.hero-actions { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-actions .btn, .request-card .btn { padding: 7px 15px; font-size: 0.72rem; }

/* request form card */
.request-card {
  background: linear-gradient(165deg, rgba(21,58,94,0.55), rgba(21,58,94,0.35));
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(21,58,94,0.6);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -20px rgba(2,8,20,0.55), inset 0 1px 0 rgba(255,255,255,0.12);
  padding: 24px 26px;
}
.request-card h4 { text-align: center; font-size: 1.05rem; font-weight: 700; letter-spacing: 0.02em; color: var(--white); margin-bottom: 14px; }
.request-card h4 span { color: var(--cyan-light); }
/* respaldo sólido si el navegador no soporta backdrop-filter (legibilidad garantizada) */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .request-card { background: linear-gradient(165deg, rgba(21,58,94,0.94), rgba(10,31,51,0.96)); }
}

/* ---------- formulario compacto: línea + ícono, sin labels (placeholder hace de label) ---------- */
.field { display: flex; flex-direction: column; gap: 3px; margin-bottom: 10px; min-width: 0; }
.field input, .field select, .field textarea { width: 100%; min-width: 0; }
.field-u-count { align-self: flex-end; font-size: 0.65rem; font-weight: 500; letter-spacing: 0; color: rgba(255,255,255,0.45); white-space: nowrap; }
.field-u-row {
  display: flex; align-items: center; gap: 10px;
  background: transparent;
  border: 0; border-bottom: 1px solid rgba(255,255,255,0.32);
  border-radius: 0;
  padding: 6px 2px;
  transition: border-color 0.2s;
}
.field-u-row:focus-within { border-color: var(--cyan-light); }
.field-u-row i { color: rgba(255,255,255,0.55); font-size: 0.9rem; flex: none; }
.field-u-row input, .field-u-row select, .field-u-row textarea {
  border: 0; background: transparent; box-shadow: none; padding: 2px 0; width: 100%; min-width: 0; color: var(--white); font-size: 0.92rem;
}
.field-u-row input::placeholder, .field-u-row textarea::placeholder { color: rgba(255,255,255,0.5); }
.field-u-row-top { align-items: flex-start; padding-top: 6px; }
.field-u-row-top i { margin-top: 3px; }
.field-u-row textarea { resize: none; min-height: 40px; line-height: 1.35; }
.field-u.has-error .field-u-row { border-color: #ff9d9d; }
.field-error { font-size: 0.76rem; color: #ff9d9d; display: none; }
.field.has-error .field-error { display: block; }

/* ---------- botón: spinner de "enviando..." ---------- */
.btn { position: relative; }
.btn .btn-spinner { display: none; }
.btn.is-loading { cursor: progress; }
.btn.is-loading .btn-label { visibility: hidden; }
.btn.is-loading .btn-spinner {
  display: block; position: absolute; left: 50%; top: 50%;
  width: 15px; height: 15px; margin: -8px 0 0 -8px;
  border: 2px solid rgba(255,255,255,0.35); border-top-color: #fff;
  border-radius: 50%; animation: btnSpin 0.7s linear infinite;
}
@keyframes btnSpin { to { transform: rotate(360deg); } }

/* ---------- figuras SVG animadas de fondo (sólo en la pantalla de éxito) ---------- */
.request-card { position: relative; overflow: hidden; }
#requestFormState, #requestSuccessState { position: relative; z-index: 1; }
.request-success { position: relative; }
.request-card-fx { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }

.rc-blob { position: absolute; opacity: 0.16; filter: blur(1px); }
.rc-blob circle { fill: var(--cyan); }
.rc-blob-1 { width: 220px; height: 220px; top: -60px; right: -60px; animation: rcDrift1 14s ease-in-out infinite; }
.rc-blob-2 { width: 160px; height: 160px; bottom: -50px; left: -50px; opacity: 0.1; animation: rcDrift2 18s ease-in-out infinite; }
.rc-blob-2 circle { fill: var(--white); }
@keyframes rcDrift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-16px, 14px) scale(1.08); }
}
@keyframes rcDrift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(12px, -10px) scale(1.06); }
}
.rc-ring { position: absolute; width: 260px; height: 260px; top: 50%; left: 50%; margin: -130px 0 0 -130px; opacity: 0.08; animation: rcSpin 40s linear infinite; }
.rc-ring circle { stroke: var(--cyan-light); }
@keyframes rcSpin { to { transform: rotate(360deg); } }

.rc-spark { position: absolute; fill: var(--cyan-light); opacity: 0.35; animation: rcSparkTwinkle 2.4s ease-in-out infinite; }
@keyframes rcSparkTwinkle {
  0%, 100% { opacity: 0.35; transform: scale(0.55) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.05) rotate(25deg); }
}
.rc-spark-1 { width: 18px; height: 18px; top: 6%; left: 8%; animation-delay: 0.2s; }
.rc-spark-2 { width: 13px; height: 13px; top: 12%; right: 10%; animation-delay: 1.1s; }
.rc-spark-3 { width: 15px; height: 15px; bottom: 16%; left: 15%; animation-delay: 1.8s; }
.rc-spark-4 { width: 11px; height: 11px; bottom: 10%; right: 16%; animation-delay: 0.6s; }
.rc-spark-5 { width: 10px; height: 10px; top: 42%; left: 3%; animation-delay: 1.4s; }

/* ---------- estado de éxito del form (check animado) ---------- */
.request-success { text-align: center; padding: 18px 4px; }
.request-success h4 { color: var(--white); font-size: 1.1rem; margin: 14px 0 8px; }
.request-success p { color: rgba(255,255,255,0.75); font-size: 0.88rem; line-height: 1.6; margin-bottom: 22px; }
.request-success .btn { margin-inline: auto; }

.success-check { display: block; width: 64px; height: 64px; margin: 0 auto; }
.success-check-circle {
  stroke: var(--cyan); stroke-width: 3;
  stroke-dasharray: 145; stroke-dashoffset: 145;
  animation: successCircle 0.6s ease forwards;
}
.success-check-mark {
  stroke: var(--cyan-light); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 36; stroke-dashoffset: 36;
  animation: successMark 0.4s ease 0.5s forwards;
}
@keyframes successCircle { to { stroke-dashoffset: 0; } }
@keyframes successMark { to { stroke-dashoffset: 0; } }

@media (max-width: 980px) {
  .hero-inner { padding-block: 120px 56px; }
}

/* ---------- about (dark navy, primario) ---------- */
.about-section {
  background-color: var(--navy);
  background-image: linear-gradient(rgba(21,58,94,0.62), rgba(21,58,94,0.62)), var(--pattern);
  background-size: auto, cover;
  background-position: center, left center;
  background-repeat: repeat, no-repeat;
}
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 40px; align-items: stretch; }
.about-art {
  position: relative; border-radius: var(--radius); min-height: 320px;
  display: flex; align-items: center; justify-content: center; padding: 40px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12);
}
.about-art-logo { width: min(100%, 340px); height: auto; }
.about-copy {
  display: flex; flex-direction: column;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius); padding: 36px;
}
.about-copy .eyebrow { margin-bottom: 10px; }
.about-copy h2 { color: var(--white); font-size: clamp(1.5rem, 1.3rem + 1vw, 2rem); }
.about-copy .lede { color: rgba(255,255,255,0.8); margin: 14px 0 28px; }
.about-copy .tabs { flex: 1; display: flex; flex-direction: column; }
.about-copy .tab-panels { padding: 22px 0 0; flex: 1; }
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-art { min-height: 220px; padding: 30px; }
  .about-copy { padding: 26px; }
}

/* ---------- services band (secundario + textura) ---------- */
.services-band {
  background-color: var(--secondary);
  background-image: linear-gradient(rgba(16,46,75,0.6), rgba(16,46,75,0.6)), var(--pattern);
  background-size: auto, cover;
  background-position: center, left center;
  background-repeat: repeat, no-repeat;
  color: var(--white);
}
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex; flex-direction: column; gap: 14px;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease), border-color .25s;
}
.service-card:hover { background: rgba(255,255,255,0.13); transform: translateY(-4px); border-color: var(--cyan-light); }
.service-icon {
  width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--cyan); color: var(--white); font-size: 1.3rem; flex: none;
}
.service-card h3 { color: var(--white); font-size: 1.02rem; }
.service-card p { color: rgba(255,255,255,0.78); font-size: 0.9rem; flex: 1; }
.service-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 0.82rem; letter-spacing: 0.03em; text-transform: uppercase; color: var(--white); margin-top: 2px; }
.service-link i { font-size: 0.75em; transition: transform 0.2s; }
.service-card:hover .service-link i, .service-link:hover i { transform: translateX(3px); }

@media (max-width: 1080px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .services-grid { grid-template-columns: 1fr; } }

/* ---------- servicios: bandas alternadas imagen + lista ---------- */
.service-alt-band { background: var(--secondary); color: var(--white); overflow: hidden; border-top: 1px solid rgba(255,255,255,0.08); }
.service-alt-grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 480px; }
.service-alt-media { min-height: 260px; }
.service-alt-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.service-alt-copy { padding: 56px clamp(24px, 5vw, 76px); display: flex; flex-direction: column; justify-content: center; }
.service-alt-copy h3 { color: var(--white); margin-bottom: 22px; }
.service-alt-copy ul { display: flex; flex-direction: column; }
.service-alt-copy ul li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85); font-size: 0.94rem;
}
.service-alt-copy ul li:last-child { border-bottom: 0; }
.service-alt-copy ul li i { color: var(--cyan-light); margin-top: 4px; flex: none; }
.service-alt-copy .btn { margin-top: 26px; align-self: flex-start; }
.service-alt-note { margin-top: 12px; font-size: 0.82rem; color: rgba(255,255,255,0.6); }

.service-alt-grid.reverse .service-alt-media { order: 2; }
.service-alt-grid.reverse .service-alt-copy { order: 1; }

@media (max-width: 900px) {
  .service-alt-grid, .service-alt-grid.reverse { grid-template-columns: 1fr; min-height: 0; }
  .service-alt-grid.reverse .service-alt-media, .service-alt-grid.reverse .service-alt-copy { order: initial; }
  .service-alt-media { min-height: 260px; }
  .service-alt-copy { padding: 40px 26px; }
}

/* ---------- tabs (misión/visión/valores) ---------- */
.tabs { border: 0; border-radius: 0; background: transparent; }
.tab-nav { display: flex; flex-wrap: wrap; border-bottom: 0; background: transparent; gap: 10px; }
.tab-nav button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.05);
  font-weight: 700; font-size: 0.85rem; letter-spacing: 0.03em; text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.tab-nav button i { font-size: 0.85em; }
.tab-nav button.active { color: var(--white); background: var(--cyan); border-color: var(--cyan); }
.tab-panels { padding: 24px 0 0; }
.tab-panel { display: none; max-width: 65ch; }
.tab-panel.active { display: block; }
.tab-panel p { color: rgba(255,255,255,0.85); font-style: italic; }
.tab-panel ul { display: grid; gap: 12px; margin-top: 4px; }
.tab-panel ul li { color: rgba(255,255,255,0.85); display: flex; gap: 10px; }
.tab-panel ul li strong { color: var(--white); }
.tab-panel ul li i { color: var(--cyan-light); margin-top: 5px; flex: none; }
@media (max-width: 640px) { .tab-panels { padding: 26px 22px; } .tab-nav button { padding: 13px 16px; font-size: 0.76rem; } }

/* ---------- values grid ---------- */
.value-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.value-card {
  padding: 26px 22px; border-radius: var(--radius);
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.16);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease), border-color .25s;
}
.value-card:hover { background: rgba(255,255,255,0.13); transform: translateY(-4px); border-color: var(--cyan-light); }
.value-card .letter { font-weight: 700; color: var(--white); background: var(--cyan); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; font-size: 1rem; }
.value-card h4 { color: var(--white); font-size: 1rem; margin-bottom: 6px; }
.value-card p { color: rgba(255,255,255,0.78); font-size: 0.88rem; }
@media (max-width: 1080px) { .value-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .value-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .value-grid { grid-template-columns: 1fr; } }

/* ---------- CTA band (navy + textura) ---------- */
.cta-band {
  border-radius: 20px;
  border: 1px solid var(--cyan);
  background-color: var(--navy);
  background-image: linear-gradient(135deg, rgba(21,58,94,0.68), rgba(10,31,51,0.72)), var(--pattern);
  background-size: auto, cover; background-position: center, left center; background-repeat: repeat, no-repeat;
  padding: 52px 46px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; color: var(--white);
}
.cta-band h2 { color: var(--white); max-width: 24ch; word-break: break-word; }
.cta-band .lede { color: rgba(255,255,255,0.85); margin-top: 10px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.cta-section-secondary { background: var(--secondary); }

.news-date { font-weight: 600; font-size: 0.76rem; color: var(--cyan); }

/* ---------- footer (una sola línea) ---------- */
.site-footer { background: var(--navy); padding-block: 22px; text-align: center; }
.site-footer p { color: rgba(255,255,255,0.85); font-size: 0.85rem; }
.site-footer a { color: var(--cyan-light); }
.site-footer a.credit-link { color: #d9b064; font-weight: 700; transition: color 0.2s; }
.site-footer a.credit-link:hover { color: #ecc987; }

/* ---------- CleanBot float (reemplaza al botón de WhatsApp) ---------- */
.cb-float {
  position: fixed; left: 18px; bottom: 18px; z-index: 200;
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
}
.cb-float-glow {
  position: absolute; inset: -4px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(120,165,230,0.5) 0%, rgba(30,85,175,0.32) 55%, rgba(30,85,175,0) 75%);
  filter: blur(3px);
  animation: cbFloatGlow 2.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes cbFloatGlow {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.18); }
}
.cb-float-wave {
  position: absolute; inset: 2px;
  border-radius: 50%;
  border: 1.5px solid rgba(55,110,195,0.9);
  opacity: 0;
  animation: cbFloatWave 2.8s ease-out infinite;
  pointer-events: none;
}
.cb-float-wave--2 { animation-delay: 0.9s; }
.cb-float-wave--3 { animation-delay: 1.8s; }
@keyframes cbFloatWave {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.75); opacity: 0; }
}
.cb-float-img {
  position: relative; z-index: 1;
  width: 100%; height: auto;
  display: block;
  object-fit: contain;
  filter:
    drop-shadow(0 0 3px rgba(255,255,255,0.5))
    drop-shadow(0 0 8px rgba(60,120,205,0.95))
    drop-shadow(0 0 14px rgba(20,65,145,0.65));
  transition: transform 0.25s var(--ease);
}
.cb-float:hover .cb-float-img { transform: scale(1.1); }
.cb-float-badge {
  position: absolute; left: 56px; bottom: 50%; transform: translateY(50%) translateX(-6px);
  white-space: nowrap;
  background: var(--navy); color: var(--white);
  font-size: 0.75rem; font-weight: 600;
  padding: 7px 12px; border-radius: 999px;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  pointer-events: none;
}
.cb-float:hover .cb-float-badge,
.cb-float:focus-visible .cb-float-badge {
  opacity: 1; visibility: visible; transform: translateY(50%) translateX(0);
}
@media (max-width: 480px) { .cb-float-badge { display: none; } }

.scroll-top-btn {
  position: fixed; right: 18px; bottom: 18px; z-index: 200;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.15);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), background 0.2s, visibility 0.25s;
}
.scroll-top-btn.show { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top-btn:hover { background: var(--cyan); }

/* ---------- utility ---------- */
.section { padding-block: 88px; position: relative; }
.section-tight { padding-block: 60px; }
@media (max-width: 780px) { .section { padding-block: 60px; } .section-tight { padding-block: 40px; } }

[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal].in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } }

.skip-link { position: absolute; left: -999px; top: 0; z-index: 999; background: var(--cyan); color: var(--white); padding: 12px 18px; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

/* =========================================================
   CINTA DE ANUNCIOS (marquee, color terciario)
   ========================================================= */
.ads-ticker { background: var(--navy-dark); overflow: hidden; padding-block: 14px; border-block: 1px solid rgba(255,255,255,0.08); }
.ads-track { display: flex; align-items: center; gap: 40px; width: max-content; will-change: transform; visibility: hidden; }
.ads-track.marquee-ready { visibility: visible; }
.ads-item { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 0.92rem; letter-spacing: 0.02em; text-transform: uppercase; color: var(--white); white-space: nowrap; }
.ads-item i { color: var(--cyan-light); font-size: 0.85em; }
@media (max-width: 640px) { .ads-item { font-size: 0.8rem; gap: 8px; } .ads-track { gap: 28px; } }

/* =========================================================
   CARRUSEL DE PROYECTOS (desplazamiento horizontal + pantalla completa)
   ========================================================= */
.projects-band {
  background-color: var(--navy);
  background-image: linear-gradient(rgba(21,58,94,0.62), rgba(21,58,94,0.62)), var(--pattern);
  background-size: auto, cover; background-position: center, left center; background-repeat: repeat, no-repeat;
}
.news-carousel { overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.news-track { display: flex; gap: 22px; width: max-content; will-change: transform; visibility: hidden; }
.news-track.marquee-ready { visibility: visible; }
.news-carousel:hover .news-track { animation-play-state: paused; }
.news-slide {
  flex: 0 0 340px; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; background: var(--white); cursor: pointer; box-shadow: 0 10px 30px -18px rgba(4,14,34,0.4);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.news-slide:hover { border-color: var(--cyan); box-shadow: var(--shadow); transform: translateY(-4px); }
.news-slide img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 16px; }
.news-slide .news-date { font-weight: 600; font-size: 0.76rem; color: var(--cyan); }
.news-slide h3 { margin-top: 8px; color: var(--navy); font-size: 1.05rem; }
.news-slide p { color: var(--text); margin-top: 8px; font-size: 0.9rem; }
@media (prefers-reduced-motion: reduce) { .news-track { animation: none; } }
@media (max-width: 640px) { .news-slide { flex-basis: 82vw; } }

.news-fullscreen { position: fixed; inset: 0; z-index: 300; background: var(--white); display: none; overflow-y: auto; }
.news-fullscreen.open { display: block; }
.news-fullscreen-inner { max-width: 820px; margin-inline: auto; padding: 90px 24px 80px; }
.news-fullscreen img { width: 100%; border-radius: var(--radius); margin-bottom: 28px; }
.news-fullscreen .news-date { font-weight: 600; color: var(--cyan); }
.news-fullscreen h1 { color: var(--navy); margin-top: 10px; }
.news-fullscreen p { color: var(--text); margin-top: 18px; font-size: 1.02rem; line-height: 1.8; }
.news-fullscreen-close {
  position: fixed; top: 22px; right: 24px; z-index: 2;
  width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--navy); color: var(--white); font-size: 1.1rem;
}

/* =========================================================
   MAPA + CONTACTO (banda navy con textura)
   ========================================================= */
.contact-band {
  background-color: var(--navy);
  background-image: linear-gradient(rgba(21,58,94,0.62), rgba(21,58,94,0.62)), var(--pattern);
  background-size: auto, cover; background-position: center, left center; background-repeat: repeat, no-repeat;
  color: var(--white); padding-block: 60px 0;
}
/* franja: form de solicitud (izquierda) + mapa/direccion (derecha) — debajo de las 3 tarjetas rapidas */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; margin-bottom: 40px; }
.contact-grid-info .map-card { margin: 0; }
.contact-grid-info .lede { margin-top: 20px !important; }
@media (max-width: 980px) { .contact-grid { grid-template-columns: 1fr; gap: 34px; } }

.contact-quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 900px; margin: 0 auto 32px; }
.contact-quick-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  padding: 26px 18px; border: 1px solid rgba(255,255,255,0.18); border-radius: var(--radius);
  background: rgba(255,255,255,0.06); transition: background .2s, border-color .2s, transform .2s;
}
.contact-quick-card:hover { background: rgba(255,255,255,0.12); border-color: var(--cyan-light); transform: translateY(-3px); }
.contact-quick-card i { font-size: 1.4rem; color: var(--cyan-light); }
.cqc-label { font-weight: 700; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.6); }
.cqc-value { font-weight: 600; font-size: 0.95rem; color: var(--white); word-break: break-word; }
@media (max-width: 720px) { .contact-quick-grid { grid-template-columns: 1fr; } }

.map-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 3px solid var(--white); }
#osmMap { height: 380px; width: 100%; background: var(--gray-bg); }
@media (max-width: 640px) { #osmMap { height: 280px; } }

.contact-footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; align-items: start; padding-block: 44px; margin-top: 44px; border-top: 1px solid rgba(255,255,255,0.15); }
.contact-footer-grid .brand img { height: 68px; }
.contact-footer-grid h5 { font-weight: 700; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan-light); margin-bottom: 12px; }
.contact-footer-grid p { color: rgba(255,255,255,0.85); font-size: 0.92rem; margin-bottom: 2px; }
.contact-footer-desc { margin-top: 14px; max-width: 32ch; }
.contact-footer-social { display: flex; gap: 10px; }
.contact-footer-social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.35); display: flex; align-items: center; justify-content: center; color: var(--white); transition: background .2s, border-color .2s; }
.contact-footer-social a:hover { background: var(--cyan); border-color: var(--cyan); }
@media (max-width: 860px) { .contact-footer-grid { grid-template-columns: 1fr; text-align: center; gap: 24px; } .contact-footer-grid .brand { justify-content: center; } .contact-footer-desc { margin-inline: auto; } .contact-footer-social { justify-content: center; } }

/* =========================================================
   PAGE LOADER (pantalla de carga inicial, ~3s mínimo)
   ========================================================= */
body.is-loading { overflow: hidden; }

.page-loader {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0B2136, #153A5D);
  background-size: 220% 220%;
  animation: loaderGradientShift 7s ease-in-out infinite;
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}
.page-loader.loader-hide { opacity: 0; visibility: hidden; pointer-events: none; }

@keyframes loaderGradientShift {
  0%, 100% { background-position: 0% 40%; }
  50% { background-position: 100% 60%; }
}

.loader-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 20px; }

.loader-sparkles { position: absolute; inset: -50px; pointer-events: none; }
.spark { position: absolute; width: 16px; height: 16px; fill: var(--cyan-light); opacity: 0.3; animation: sparkTwinkle 2.4s ease-in-out infinite; }
.spark-1 { top: 2%; left: 4%; animation-delay: 0.1s; }
.spark-2 { bottom: 6%; right: 0%; width: 12px; height: 12px; animation-delay: 0.9s; }
.spark-3 { top: 8%; right: 10%; width: 10px; height: 10px; animation-delay: 1.6s; }
.spark-4 { top: 42%; left: -2%; width: 11px; height: 11px; animation-delay: 0.5s; }
.spark-5 { bottom: 22%; left: 6%; width: 14px; height: 14px; animation-delay: 1.3s; }
.spark-6 { top: 55%; right: -1%; width: 13px; height: 13px; animation-delay: 2s; }
.spark-7 { bottom: 0%; left: 32%; width: 9px; height: 9px; animation-delay: 0.75s; }
.spark-8 { top: 18%; left: 46%; width: 10px; height: 10px; animation-delay: 1.9s; }
@keyframes sparkTwinkle {
  0%, 100% { opacity: 0.3; transform: scale(0.5) rotate(0deg); }
  50% { opacity: 1; transform: scale(1) rotate(25deg); }
}

.loader-emblem { position: relative; width: 150px; height: 150px; display: flex; align-items: center; justify-content: center; }
.loader-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.loader-ring-track { fill: none; stroke: rgba(255,255,255,0.14); stroke-width: 4; }
.loader-ring-progress {
  fill: none; stroke: var(--cyan); stroke-width: 4; stroke-linecap: round;
  stroke-dasharray: 327; stroke-dashoffset: 245;
  transform-box: fill-box; transform-origin: 50% 50%;
  animation: loaderSpin 1.1s linear infinite, loaderDash 1.6s ease-in-out infinite;
}
@keyframes loaderSpin { to { transform: rotate(360deg); } }
@keyframes loaderDash {
  0% { stroke-dashoffset: 290; }
  50% { stroke-dashoffset: 60; }
  100% { stroke-dashoffset: 290; }
}

.loader-logo-mark { width: 78px; height: 78px; object-fit: contain; animation: loaderPulse 1.8s ease-in-out infinite; }
@keyframes loaderPulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.1); opacity: 1; }
}

.loader-wordmark { height: 32px; width: auto; opacity: 0; animation: loaderFadeIn 0.8s var(--ease) 0.4s forwards; }
@keyframes loaderFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.loader-text { font-family: var(--font); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.68); }
.loader-dots span { display: inline-block; animation: loaderDotBlink 1.4s infinite; opacity: 0; }
.loader-dots span:nth-child(2) { animation-delay: 0.2s; }
.loader-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes loaderDotBlink { 0%, 80%, 100% { opacity: 0; } 40% { opacity: 1; } }

.loader-progress { width: 180px; height: 3px; border-radius: 999px; background: rgba(255,255,255,0.15); overflow: hidden; }
.loader-progress-bar {
  display: block; height: 100%; width: 0%; border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--cyan-light));
  animation: loaderProgressFill 1s linear forwards;
}
@keyframes loaderProgressFill { from { width: 0%; } to { width: 100%; } }
