/* ─── Variables ─────────────────────────────────────────── */
:root {
  --bg:     #0a1628;
  --panel:  rgba(255, 255, 255, 0.1);
  --panel2: rgba(255, 255, 255, 0.17);
  --text:   #f0f8ff;
  --muted:  #c0d8f0;
  --blue:   #1a8fe3;
  --cyan:   #2bd0e5;
  --deep:   #003a7b;
  --border: rgba(255, 255, 255, 0.15);
  --glow:   rgba(43, 208, 229, 0.2);
}

/* ─── Reset ─────────────────────────────────────────────── */
* { box-sizing: border-box; }

/* ─── Page load fade-in ─────────────────────────────────── */
@keyframes page-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

body { animation: page-in 0.45s ease both; }

html, body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: linear-gradient(160deg, #0f2040 0%, #0a1628 60%, #081420 100%);
  background-attachment: fixed;
  scroll-behavior: smooth;
}

/* Glow ambiental izquierda y derecha */
body::before, body::after {
  content: "";
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}
body::before {
  background: radial-gradient(circle, rgba(26, 143, 227, 0.07) 0%, transparent 70%);
  top: 20%;
  left: -200px;
}
body::after {
  background: radial-gradient(circle, rgba(43, 208, 229, 0.06) 0%, transparent 70%);
  bottom: 10%;
  right: -200px;
}

h1, h2, h3 { margin: 0; line-height: 1.15; color: #ffffff; }
h2 { font-size: clamp(1.65rem, 4vw, 2.5rem); }
h3 { font-size: 1.1rem; }

p { margin: 0; }

/* ─── Grid background ───────────────────────────────────── */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(43, 208, 229, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 208, 229, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 0%, black 20%, transparent 75%);
}

/* ─── Header ────────────────────────────────────────────── */
/* backdrop-filter va en ::before para que los hijos con position:fixed
   (el nav en mobile) no queden confinados al header (bug webkit) */
.site-header {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 6vw;
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(2, 12, 27, 0.82);
  backdrop-filter: blur(16px);
  z-index: -1;
}

/* ─── Brand ─────────────────────────────────────────────── */
.brand {
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.brand-name {
  font-family: "Poppins", sans-serif;
  font-weight: 900;
  font-size: 1.65rem;
  letter-spacing: -0.03em;
  color: #ffffff;
  line-height: 1;
}

.brand-name span {
  background: linear-gradient(175deg, var(--cyan) 0%, var(--blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-sub {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ─── Nav ───────────────────────────────────────────────── */
nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

nav a:not(.btn) {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

nav a:not(.btn):hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
}

/* ─── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.72rem 1.35rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, opacity 0.22s;
  background: linear-gradient(120deg, #005ecb, var(--blue));
  color: #ffffff;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(26, 143, 227, 0.4);
}

.btn-sm { padding: 0.48rem 1rem; font-size: 0.85rem; }

/* Hero primary: blanco sólido */
.btn-light {
  background: #ffffff;
  color: #021428;
  font-weight: 700;
}
.btn-light:hover {
  box-shadow: 0 8px 28px rgba(255, 255, 255, 0.2);
}

/* Hero secondary: outline blanco */
.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.85);
  padding: 0.72rem 1.35rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color 0.22s, background 0.22s;
}
.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.07);
}

/* ─── Main container ────────────────────────────────────── */
main {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.section { padding: 5.5rem 0; }

/* ─── Eyebrow ───────────────────────────────────────────── */
.eyebrow {
  margin: 0 0 0.8rem;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  color: var(--cyan);
  font-weight: 700;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--cyan);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ─── Hero section (full-bleed dark) ───────────────────── */
.hero-section {
  background: linear-gradient(135deg, #000f24 0%, #001e4a 55%, #002d6b 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(43, 208, 229, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 208, 229, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse at 65% 50%, black 25%, transparent 75%);
  mask-image: radial-gradient(ellipse at 65% 50%, black 25%, transparent 75%);
}

/* Radial glow detrás del logo */
.hero-section::after {
  content: "";
  position: absolute;
  top: 10%;
  right: 5%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(43, 208, 229, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  width: min(1120px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  padding: 6rem 0 5rem;
  min-height: 90vh;
}

.hero-eyebrow { color: var(--cyan) !important; }

.hero-h1 {
  color: #ffffff;
  font-size: clamp(2.1rem, 5vw, 3.65rem);
  line-height: 1.1;
  margin-bottom: 1.2rem;
}

.hero-h1 span {
  background: linear-gradient(120deg, var(--cyan), #7ee8f5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-h1 span::after { display: none; }

.hero-lead {
  color: rgba(255, 255, 255, 0.85);
  max-width: 54ch;
  line-height: 1.7;
  font-size: 1.05rem;
}

/* ─── Hero visual ───────────────────────────────────────── */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
}

.hero-logo {
  width: min(400px, 80vw);
  height: auto;
  display: block;
  filter: drop-shadow(0 24px 48px rgba(43, 208, 229, 0.2));
  animation: float 4s ease-in-out infinite;
}

.stats-card {
  position: absolute;
  right: 0;
  bottom: 1rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 0.85rem 1.1rem;
}

.stats-card p {
  margin: 0;
  font-weight: 700;
  color: #ffffff;
  font-size: 0.95rem;
}

.stats-card small { color: rgba(255, 255, 255, 0.6); font-size: 0.78rem; }

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

/* ─── Section divider ───────────────────────────────────── */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(43, 208, 229, 0.3), rgba(26, 143, 227, 0.3), transparent);
  margin: 0 auto;
  width: min(1120px, 92vw);
  position: relative;
}

/* ─── Section alt bg ────────────────────────────────────── */
.section-alt {
  background: linear-gradient(180deg, rgba(15, 30, 60, 0.6) 0%, transparent 100%);
  border-radius: 24px;
  padding-inline: 2rem;
  margin-inline: -2rem;
}

/* ─── Why us cards ──────────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.why-card {
  padding: 1.8rem;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(26, 143, 227, 0.1), rgba(43, 208, 229, 0.05));
  border: 1px solid rgba(43, 208, 229, 0.18);
  position: relative;
  overflow: hidden;
}

.why-card::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43, 208, 229, 0.1), transparent 70%);
}

.why-card .why-num {
  font-family: "Poppins", sans-serif;
  font-size: 2.8rem;
  font-weight: 900;
  background: linear-gradient(120deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.75rem;
  display: block;
}

.why-card h3 { color: #ffffff; margin-bottom: 0.5rem; }
.why-card p  { color: #cce0f5; font-size: 0.9rem; line-height: 1.6; }

/* ─── Section title ─────────────────────────────────────── */
.section-title { margin-bottom: 2rem; }
.section-lead {
  color: #cce0f5;
  margin-top: 0.6rem;
  font-size: 1rem;
  max-width: 60ch;
  line-height: 1.65;
}

/* ─── Cards ─────────────────────────────────────────────── */
.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.card {
  padding: 1.6rem;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  transition: transform 0.26s ease, border-color 0.26s ease, box-shadow 0.26s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(43, 208, 229, 0.35);
  box-shadow: 0 12px 40px rgba(43, 208, 229, 0.1);
}

.card h3 { color: #ffffff; margin-bottom: 0.65rem; }
.card p  { color: #cce0f5; line-height: 1.6; font-size: 0.93rem; }

.card-icon { margin-bottom: 1rem; }
.card-icon svg { display: block; }

.card-problem { border-top: 2px solid var(--cyan); }

.card-list {
  margin: 0.9rem 0 0;
  padding-left: 1.1rem;
  color: #cce0f5;
  font-size: 0.85rem;
  line-height: 1.9;
}

/* ─── Infra service group ───────────────────────────────── */
.infra-group {
  margin-top: 2.5rem;
  padding: 2rem;
  background: linear-gradient(145deg, rgba(0, 58, 123, 0.25), rgba(43, 208, 229, 0.05));
  border: 1px solid rgba(43, 208, 229, 0.18);
  border-radius: 20px;
}

.infra-group-header {
  margin-bottom: 1.5rem;
}

.infra-group-lead {
  color: #cce0f5;
  font-size: 0.95rem;
  line-height: 1.65;
  margin-top: 0.4rem;
  max-width: 60ch;
}

/* ─── Also / chips ──────────────────────────────────────── */
.also-section {
  margin-top: 2.5rem;
  padding: 1.4rem 1.6rem;
  border: 1px dashed rgba(43, 208, 229, 0.2);
  border-radius: 16px;
  background: rgba(43, 208, 229, 0.03);
}

.also-label {
  font-size: 0.88rem;
  color: #cce0f5;
  margin: 0 0 0.9rem;
}

.also-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.also-chips span {
  background: rgba(43, 208, 229, 0.08);
  border: 1px solid rgba(43, 208, 229, 0.2);
  color: var(--cyan);
  font-size: 0.83rem;
  font-weight: 500;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  cursor: default;
}

.also-chips span:hover {
  background: rgba(43, 208, 229, 0.15);
  border-color: rgba(43, 208, 229, 0.4);
  transform: translateY(-1px);
}

/* ─── Split / how we work ───────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.split > div > p { color: #cce0f5; line-height: 1.7; margin-top: 1rem; }

/* ─── Timeline ──────────────────────────────────────────── */
.timeline { margin: 0; padding: 0; display: grid; gap: 0.75rem; }

.timeline li {
  list-style: none;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  transition: border-color 0.24s, background 0.24s;
}

.timeline li:hover {
  border-color: rgba(43, 208, 229, 0.3);
  background: var(--panel2);
}

.timeline li strong { flex-shrink: 0; color: var(--cyan); padding-top: 0.1rem; }
.timeline li div b  { display: block; color: #ffffff; margin-bottom: 0.2rem; font-size: 0.95rem; }
.timeline li div p  { font-size: 0.88rem; color: #cce0f5; }

/* ─── Metrics ───────────────────────────────────────────── */
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
}

.metric {
  background: var(--panel);
  border: 1px solid var(--border);
  border-top: 2px solid var(--cyan);
  border-radius: 16px;
  padding: 1.6rem;
  transition: border-color 0.24s, box-shadow 0.24s, transform 0.24s;
}

.metric:hover {
  border-color: rgba(43, 208, 229, 0.5);
  box-shadow: 0 8px 30px rgba(43, 208, 229, 0.12);
  transform: translateY(-4px);
}

.metric span {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  background: linear-gradient(120deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.metric p { color: #cce0f5; font-size: 0.88rem; line-height: 1.5; }

/* ─── Case cards / testimonials ─────────────────────────── */
.cases {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  margin-top: 2rem;
}

.case-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--cyan);
  border-radius: 14px;
  padding: 1.5rem;
  line-height: 1.65;
  transition: border-color 0.24s, background 0.24s;
}

.case-card:hover { background: var(--panel2); }

.case-card > p:last-child {
  font-style: italic;
  color: #cce0f5;
  font-size: 0.93rem;
}

.case-card .eyebrow { font-style: normal; margin-bottom: 0.7rem; }

/* ─── Case details (Problema / Solución / Resultado) ───── */
.case-details {
  margin-top: 1rem;
  display: grid;
  gap: 0.55rem;
}

.case-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem;
  align-items: baseline;
}

.case-row strong {
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.case-row span {
  color: #cce0f5;
  font-size: 0.92rem;
  line-height: 1.55;
}

/* ─── Contact ───────────────────────────────────────────── */
.contact {
  text-align: center;
  background: linear-gradient(145deg, rgba(0, 58, 123, 0.5), rgba(43, 208, 229, 0.1));
  border: 1px solid rgba(43, 208, 229, 0.25);
  border-radius: 28px;
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: "";
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(43, 208, 229, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.contact .eyebrow { justify-content: center; }
.contact h2 { color: #ffffff; margin-bottom: 1rem; font-size: clamp(1.6rem, 4vw, 2.4rem); }
.contact > p { color: #cce0f5; margin-inline: auto; max-width: 52ch; line-height: 1.65; margin-bottom: 0; }

/* ─── Contact form ──────────────────────────────────────── */
.contact-form {
  width: 100%;
  max-width: 640px;
  margin: 2rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-group input,
.form-group textarea {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.3); }

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(43, 208, 229, 0.15);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15);
}

.form-submit {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-size: 1rem;
  cursor: pointer;
  position: relative;
}

.form-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
}

.form-submit-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(2,12,27,0.3);
  border-top-color: #020c1b;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.form-submit.loading .form-submit-spinner { display: block; }
.form-submit.loading .form-submit-text { opacity: 0.7; }

@keyframes spin { to { transform: rotate(360deg); } }

.form-feedback {
  font-size: 0.9rem;
  font-weight: 500;
  min-height: 1.3em;
  margin: 0;
}
.form-feedback.success { color: #4ade80; }
.form-feedback.error   { color: #f87171; }

@media (max-width: 900px) {
  .form-row { grid-template-columns: 1fr; }
  .form-submit { align-self: stretch; justify-content: center; }
}

/* ─── Scroll progress bar ───────────────────────────────── */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  z-index: 200;
  transition: width 0.1s linear;
}

/* ─── Floating CTA ──────────────────────────────────────── */
#float-cta {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: linear-gradient(120deg, var(--cyan), var(--blue));
  color: #020c1b;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(43, 208, 229, 0.35);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  z-index: 90;
}

#float-cta.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#float-cta:hover {
  box-shadow: 0 12px 40px rgba(43, 208, 229, 0.5);
  transform: translateY(-2px);
}

/* ─── WhatsApp floating button ──────────────────────────── */
#float-whatsapp {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 90;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#float-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.55);
}

/* ─── FAQ ───────────────────────────────────────────────── */
.faq-list {
  display: grid;
  gap: 0.6rem;
  margin-top: 2rem;
}

.faq-item {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.24s;
}

.faq-item:hover { border-color: rgba(43, 208, 229, 0.3); }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: #ffffff;
  font-family: "Inter", sans-serif;
  font-size: 0.97rem;
  font-weight: 600;
  padding: 1.1rem 1.4rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--cyan);
  color: var(--cyan);
  display: grid;
  place-items: center;
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.3s, background 0.3s;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--cyan);
  color: #020c1b;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  color: #cce0f5;
  font-size: 0.93rem;
  line-height: 1.7;
  padding: 0 1.4rem;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 0 1.4rem 1.2rem;
}

/* ─── Footer ────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  padding: 3rem 6vw 2rem;
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.footer-brand { display: flex; flex-direction: column; gap: 0.3rem; }
.footer-brand p { color: var(--muted); font-size: 0.82rem; margin: 0; }

.footer-nav {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.footer-nav a:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.07);
}

.footer-mail {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--cyan);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: opacity 0.2s, gap 0.2s;
}
.footer-mail:hover { opacity: 0.75; gap: 0.6rem; }

.footer-copy {
  text-align: center;
  color: rgba(255,255,255,0.35);
  margin: 0;
}

/* ─── Reveal animations ─────────────────────────────────── */
.reveal-up, .reveal-right, .reveal-left {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right { transform: translateX(36px); }
.reveal-left  { transform: translateX(-36px); }
.is-visible   { opacity: 1; transform: translate(0, 0); }

/* ─── CTA group ─────────────────────────────────────────── */
.cta-group { display: flex; gap: 0.8rem; margin-top: 2rem; flex-wrap: wrap; }

/* ─── Staggered card reveal ─────────────────────────────── */
.cards .card:nth-child(1) { transition-delay: 0ms; }
.cards .card:nth-child(2) { transition-delay: 80ms; }
.cards .card:nth-child(3) { transition-delay: 160ms; }
.cards .card:nth-child(4) { transition-delay: 240ms; }
.metrics .metric:nth-child(1) { transition-delay: 0ms; }
.metrics .metric:nth-child(2) { transition-delay: 80ms; }
.metrics .metric:nth-child(3) { transition-delay: 160ms; }
.metrics .metric:nth-child(4) { transition-delay: 240ms; }
.why-grid .why-card:nth-child(1) { transition-delay: 0ms; }
.why-grid .why-card:nth-child(2) { transition-delay: 100ms; }
.why-grid .why-card:nth-child(3) { transition-delay: 200ms; }

/* ─── Active nav link ───────────────────────────────────── */
nav a.nav-active:not(.btn) {
  color: #ffffff;
  background: rgba(43, 208, 229, 0.12);
}

/* ─── Hero scroll chevron ───────────────────────────────── */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  opacity: 0.55;
  animation: bounce-down 1.8s ease-in-out infinite;
  text-decoration: none;
}

.hero-scroll svg { display: block; }

@keyframes bounce-down {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.55; }
  50%       { transform: translateX(-50%) translateY(8px); opacity: 0.9; }
}

/* ─── Hero logo drop shadow on dark ─────────────────────── */
.hero-logo {
  filter: drop-shadow(0 20px 48px rgba(43, 208, 229, 0.25));
}

/* ─── Hero availability badge ───────────────────────────── */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(43, 208, 229, 0.1);
  border: 1px solid rgba(43, 208, 229, 0.3);
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25); }
  50%       { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.1); }
}

/* ─── Hamburger toggle ──────────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 8px;
  transition: background 0.2s;
}

.nav-toggle:hover { background: rgba(255,255,255,0.07); }

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.8);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Quote marks on testimonials ──────────────────────── */
.case-card {
  position: relative;
}

.case-card::before {
  content: "\201C";
  position: absolute;
  top: 0.8rem;
  right: 1.2rem;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--cyan);
  opacity: 0.15;
  font-family: Georgia, serif;
  pointer-events: none;
}

/* ─── Why-card hover glow ───────────────────────────────── */
.why-card {
  transition: transform 0.26s ease, border-color 0.26s ease, box-shadow 0.26s ease;
}

.why-card:hover {
  transform: translateY(-4px);
  border-color: rgba(43, 208, 229, 0.35);
  box-shadow: 0 10px 36px rgba(43, 208, 229, 0.1);
}

/* ─── Contact badges ────────────────────────────────────── */
.contact-badges {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}

.contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cyan);
  background: rgba(43, 208, 229, 0.08);
  border: 1px solid rgba(43, 208, 229, 0.28);
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
}

/* ─── Staggered timeline reveal ─────────────────────────── */
.timeline li:nth-child(1) { transition-delay: 0ms; }
.timeline li:nth-child(2) { transition-delay: 80ms; }
.timeline li:nth-child(3) { transition-delay: 160ms; }
.timeline li:nth-child(4) { transition-delay: 240ms; }

/* ─── Footer social links ───────────────────────────────── */
.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.85rem;
}

.footer-social {
  display: flex;
  gap: 0.55rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  font-size: 0.83rem;
  font-weight: 600;
  padding: 0.45rem 1rem 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.65);
  transition: color 0.25s, background 0.25s, border-color 0.25s,
              transform 0.2s, box-shadow 0.25s;
}

.social-link svg { flex-shrink: 0; }

.social-link:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

/* Instagram — gradient purple → red → orange */
.social-ig:hover {
  background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
  border-color: transparent;
  box-shadow: 0 6px 22px rgba(200, 40, 100, 0.45);
}

/* WhatsApp — gradient teal → green */
.social-wa:hover {
  background: linear-gradient(135deg, #0f9e71 0%, #25d366 100%);
  border-color: transparent;
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.38);
}

/* ─── Success modal ──────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s;
}

/* Mantener display:flex aunque [hidden] esté presente,
   para que la transition de opacidad funcione */
.modal-overlay[hidden] {
  display: flex;
}

.modal-overlay:not([hidden]) {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-box {
  background: linear-gradient(145deg, #0f2040, #0a1628);
  border: 1px solid rgba(43, 208, 229, 0.3);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(43, 208, 229, 0.1);
  transform: translateY(20px);
  transition: transform 0.3s ease;
  animation: modal-in 0.35s ease forwards;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-icon {
  margin-bottom: 1.2rem;
  display: flex;
  justify-content: center;
}

.modal-icon svg {
  filter: drop-shadow(0 0 12px rgba(43, 208, 229, 0.4));
}

.modal-box h3 {
  font-size: 1.5rem;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.modal-box p {
  color: #cce0f5;
  line-height: 1.65;
  font-size: 0.97rem;
  margin-bottom: 1.75rem;
}

.modal-close-btn {
  min-width: 140px;
}

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner, .split { grid-template-columns: 1fr; }
  .hero-inner { padding: 4rem 0 3rem; min-height: unset; }
  .contact { padding: 3rem 1rem; }

  /* Nav collapse */
  nav#main-nav {
    display: none;
    position: fixed;
    inset: 0;
    top: 60px;
    background: rgba(2, 12, 27, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    z-index: 99;
    padding: 2rem;
  }

  nav#main-nav.open {
    display: flex;
  }

  nav#main-nav a:not(.btn) {
    display: block;
    font-size: 1.2rem;
    padding: 0.9rem 1.5rem;
    width: 100%;
    text-align: center;
    border-radius: 12px;
  }

  nav#main-nav .btn {
    margin-top: 0.5rem;
    font-size: 1rem;
    padding: 0.85rem 2rem;
  }

  .nav-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
  }

  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-nav { justify-content: flex-start; }
  .footer-right { align-items: flex-start; }

  /* background-attachment: fixed no funciona en iOS Safari y causa
     problemas de rendimiento en la mayoría de los móviles */
  html, body { background-attachment: scroll; }
}

/* ─── Respeta preferencias de movimiento reducido ──────── */
@media (prefers-reduced-motion: reduce) {
  body              { animation: none; }
  .hero-logo        { animation: none; }
  .hero-scroll      { animation: none; opacity: 0.55; }
  .hero-badge-dot   { animation: none; }
  .form-submit-spinner { animation: none; }
  /* Las reveal animations se muestran directamente sin transición */
  .reveal-up, .reveal-right, .reveal-left {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
