/* =========================================================
   SUPERASEO - Hoja de estilos moderna
   Paleta basada en el logo: azul marino + celeste
   ========================================================= */

:root {
  --navy: #1c2a6b;
  --navy-dark: #141f52;
  --navy-light: #2c3e94;
  --cyan: #38b6d3;
  --cyan-light: #7ecfe4;
  --cyan-soft: #eaf7fb;
  --ink: #1f2733;
  --muted: #5b6675;
  --line: #e6eaf0;
  --bg: #ffffff;
  --bg-alt: #f5f8fc;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(20, 31, 82, 0.06);
  --shadow-md: 0 10px 30px rgba(20, 31, 82, 0.10);
  --shadow-lg: 0 24px 60px rgba(20, 31, 82, 0.16);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--cyan);
}

h1,
h2,
h3,
h4 {
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 800;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

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

.section {
  padding: 88px 0;
}

.section--tight {
  padding: 60px 0;
}

.bg-alt {
  background: var(--bg-alt);
}

.bg-navy {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 14px;
}

.section-head p {
  font-size: 1.05rem;
}

.section-head::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  border-radius: 4px;
  margin: 22px auto 0;
  background: linear-gradient(90deg, var(--cyan), var(--navy));
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--navy) 120%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(28, 42, 107, 0.28);
}

.btn-primary:hover {
  transform: translateY(-3px);
  color: #fff;
  box-shadow: 0 16px 32px rgba(28, 42, 107, 0.38);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-ghost:hover {
  background: #fff;
  color: var(--navy);
  transform: translateY(-3px);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: #fff;
}

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 78px;
}

.brand img {
  height: 46px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links > li {
  position: relative;
}

.nav-links > li > a {
  display: block;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  border-radius: 8px;
}

.nav-links > li > a:hover,
.nav-links > li.active > a {
  color: var(--navy);
  background: var(--cyan-soft);
}

.nav-links .submenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: 8px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.22s var(--ease);
}

.nav-links > li:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-links .submenu a {
  display: block;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 0.92rem;
  color: var(--muted);
}

.nav-links .submenu a:hover {
  background: var(--cyan-soft);
  color: var(--navy);
}

.nav-cta {
  display: inline-flex;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 26px;
  height: 3px;
  border-radius: 3px;
  background: var(--navy);
  transition: 0.3s var(--ease);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.2s var(--ease), transform 6s linear;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    115deg,
    rgba(20, 31, 82, 0.92) 0%,
    rgba(28, 42, 107, 0.78) 45%,
    rgba(56, 182, 211, 0.35) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 120px 0 130px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero h1 .accent {
  color: var(--cyan-light);
}

.hero p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.15rem;
  margin-bottom: 32px;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}

.hero-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: 0.3s var(--ease);
}

.hero-dots button.active {
  background: #fff;
  width: 30px;
  border-radius: 6px;
}

/* ---------- Stats bar ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: -60px;
  position: relative;
  z-index: 5;
}

.stat-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}

.stat-card .num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}

.stat-card .label {
  margin: 8px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* =========================================================
   CARDS / GRIDS
   ========================================================= */
.grid {
  display: grid;
  gap: 28px;
}

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

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

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

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--cyan-light);
}

.card .icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  background: var(--cyan-soft);
  color: var(--navy);
}

.card .icon svg {
  width: 30px;
  height: 30px;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.card p {
  font-size: 0.96rem;
  margin: 0;
}

/* ---------- Split (image + text) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split.reverse .split-media {
  order: 2;
}

.split-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  width: 100%;
  object-fit: cover;
}

/* Imagen circular (p. ej. nueva_imagen.png) */
.split-media img.round-media {
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  max-width: 440px;
  margin: 0 auto;
  box-shadow: 0 24px 55px rgba(20, 31, 82, 0.20);
  animation: float-soft 6s ease-in-out infinite;
}

@keyframes float-soft {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

.split-body h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

/* ---------- Feature list ---------- */
.check-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.check-list li {
  position: relative;
  padding-left: 36px;
  color: var(--ink);
  font-weight: 500;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--cyan-soft)
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231c2a6b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>")
    center / 14px no-repeat;
}

/* ---------- Services detailed list ---------- */
.service-tags {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-tags li {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  font-weight: 600;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}

.service-tags li:hover {
  transform: translateX(6px);
  border-color: var(--cyan);
}

.service-tags li .dot {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--navy));
}

/* =========================================================
   CLIENTS MARQUEE
   ========================================================= */
.clients {
  overflow: hidden;
  position: relative;
}

.clients-track {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  animation: scroll-x 42s linear infinite;
}

.clients:hover .clients-track {
  animation-play-state: paused;
}

.clients-track img {
  height: 78px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.65;
  transition: 0.3s var(--ease);
}

.clients-track img:hover {
  filter: grayscale(0);
  opacity: 1;
}

@keyframes scroll-x {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* =========================================================
   GALLERY / THUMBS
   ========================================================= */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.gallery a {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.gallery img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.gallery a:hover img {
  transform: scale(1.06);
}

.gallery a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(20, 31, 82, 0.35),
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.gallery a:hover::after {
  opacity: 1;
}

/* =========================================================
   POLICY / ACCORDION-STYLE CARDS
   ========================================================= */
.policy {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--cyan);
  border-radius: var(--radius);
  padding: 32px 34px;
  box-shadow: var(--shadow-sm);
}

.policy h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.policy ul {
  margin: 14px 0 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.policy ul li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
}

.policy ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
}

.download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: var(--cyan-soft);
  border: 1px dashed var(--cyan);
  border-radius: var(--radius);
  padding: 26px 30px;
}

.download-card strong {
  color: var(--navy);
  font-size: 1.1rem;
}

/* Variante destacada (Reglamento Interno) */
.download-card--accent {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border: 1px solid var(--navy-light);
}

.btn-download {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.btn-download:hover {
  background: var(--cyan-light);
  color: var(--navy);
  transform: translateY(-3px);
}

/* =========================================================
   VIDEO
   ========================================================= */
.video-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}

.info-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.info-list .ico {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--cyan-soft);
  color: var(--navy);
}

.info-list .ico svg {
  width: 22px;
  height: 22px;
}

.info-list .t {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0;
}

.info-list .v {
  margin: 2px 0 0;
  font-weight: 700;
  color: var(--navy);
}

.info-list .v a {
  color: var(--navy);
}

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 7px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  color: var(--ink);
  background: var(--bg-alt);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background 0.2s var(--ease);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(56, 182, 211, 0.15);
}

.field textarea {
  resize: vertical;
  min-height: 130px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 4px 0 20px;
}

.form-alert {
  display: none;
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 18px;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-alert.ok {
  display: block;
  background: #e7f7ee;
  color: #1a7a45;
  border: 1px solid #bce8cf;
}

.form-alert.err {
  display: block;
  background: #fdecec;
  color: #b42121;
  border: 1px solid #f3c4c4;
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  line-height: 0;
}

.map-wrap iframe {
  width: 100%;
  height: 380px;
  border: 0;
}

/* =========================================================
   CTA BANNER
   ========================================================= */
.cta-banner {
  text-align: center;
  color: #fff;
  border-radius: var(--radius);
  padding: 64px 32px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--cyan) 160%);
  box-shadow: var(--shadow-lg);
}

.cta-banner h2 {
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin-bottom: 14px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 560px;
  margin: 0 auto 28px;
  font-size: 1.05rem;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
}

.site-footer img.flogo {
  height: 52px;
  margin-bottom: 18px;
  filter: brightness(0) invert(1);
}

.site-footer h4 {
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.94rem;
}

.site-footer a:hover {
  color: var(--cyan-light);
}

.site-footer p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.94rem;
}

.footer-contact li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.94rem;
}

.footer-contact svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 3px;
  color: var(--cyan-light);
}

.social {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  transition: 0.25s var(--ease);
}

.social a:hover {
  background: var(--cyan);
  transform: translateY(-3px);
}

.social svg {
  width: 20px;
  height: 20px;
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 22px 0;
  text-align: center;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- Page header (interior) ---------- */
.page-hero {
  position: relative;
  color: #fff;
  padding: 90px 0 70px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(56, 182, 211, 0.35),
    transparent 70%
  );
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(1.9rem, 4vw, 3rem);
  position: relative;
}

.breadcrumb {
  position: relative;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--cyan-light);
}

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* Back to top */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: var(--navy);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: 0.3s var(--ease);
  box-shadow: var(--shadow-md);
  z-index: 90;
}

.to-top.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  background: var(--cyan);
}

/* =========================================================
   MODAL / POP-UP DE BIENVENIDA
   ========================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 31, 82, 0.72);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: relative;
  max-width: 640px;
  width: 100%;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: translateY(24px) scale(0.96);
  transition: transform 0.4s var(--ease);
}

.modal-overlay.open .modal {
  transform: none;
}

.modal img {
  width: 100%;
  height: auto;
  display: block;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--navy);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
  transition: 0.25s var(--ease);
}

.modal-close:hover {
  background: var(--navy);
  color: #fff;
  transform: rotate(90deg);
}

.modal-close svg {
  width: 22px;
  height: 22px;
}

/* Floating WhatsApp */
.wa-float {
  position: fixed;
  left: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
  z-index: 90;
  transition: transform 0.25s var(--ease);
}

.wa-float:hover {
  transform: scale(1.08);
}

.wa-float svg {
  width: 30px;
  height: 30px;
  color: #fff;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .split.reverse .split-media {
    order: 0;
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }
  .nav-cta {
    display: none;
  }
  .nav-links {
    position: fixed;
    inset: 78px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: #fff;
    padding: 16px 20px 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-140%);
    transition: transform 0.35s var(--ease);
    max-height: calc(100vh - 78px);
    overflow-y: auto;
  }
  .nav-links.open {
    transform: translateY(0);
  }
  .nav-links .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    padding: 0 0 6px 14px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 32px;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 60px 0;
  }
  .grid-2,
  .grid-3,
  .grid-4,
  .service-tags,
  .gallery,
  .form-row {
    grid-template-columns: 1fr;
  }
  .hero-inner {
    padding: 90px 0 100px;
  }
  .form-card {
    padding: 24px;
  }
  .stats {
    grid-template-columns: 1fr;
  }
}
