/* =========================================================
   ABCChurchs | MySite — styles.css
   Identidad de marca (basada en material oficial):
   --blue        #1E8DF7  (azul corporativo / acento)
   --navy        #0a1c34  (azul marino — header, hero, footer)
   --navy-2      #102b4d  (azul marino degradado)
   Texto sobre claro: #16202b / #5a6b7b
   ========================================================= */

:root {
  --blue: #1e8df7;
  --blue-600: #1378e0;
  --blue-soft: #eaf3ff;
  --blue-dark: #0b2c52;

  --navy: #0a1c34;
  --navy-2: #102b4d;
  --navy-deep: #071528;

  --bg: #ffffff;
  --bg-alt: #f5f8fc;
  --text: #16202b;
  --text-soft: #5a6b7b;
  --border: #e6edf6;
  --border-soft: #eef3f9;

  /* Texto sobre fondos oscuros */
  --on-dark: #ffffff;
  --on-dark-soft: #b9cbe2;
  --on-dark-dim: #7d96b6;
  --hairline: rgba(255, 255, 255, 0.12);

  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 22px;

  --shadow-xs: 0 1px 2px rgba(11, 44, 82, 0.05);
  --shadow-sm: 0 4px 14px rgba(11, 44, 82, 0.06);
  --shadow: 0 14px 36px rgba(11, 44, 82, 0.09);
  --shadow-lg: 0 30px 70px rgba(7, 21, 40, 0.45);

  --max: 1160px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset / base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
svg { display: block; }

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

/* ---------- Tipografía ---------- */
h1, h2, h3, h4 { color: var(--blue-dark); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 900; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.18rem; font-weight: 700; letter-spacing: -0.01em; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 0.7rem;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.9rem 1.7rem;
  border-radius: 12px;
  font-weight: 600; font-size: 1rem; letter-spacing: -0.01em;
  transition: transform 0.18s var(--ease), box-shadow 0.25s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
  cursor: pointer; border: 1.5px solid transparent; white-space: nowrap;
}
.btn svg { transition: transform 0.2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px rgba(30, 141, 247, 0.32); }
.btn-primary:hover { background: var(--blue-600); box-shadow: 0 16px 32px rgba(30, 141, 247, 0.4); }

.btn-ghost { background: #fff; color: var(--blue-dark); border-color: var(--border); box-shadow: var(--shadow-xs); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-ghost:hover svg { transform: none; }

/* Secundario sobre fondo oscuro (hero) */
.btn-ghost-light { background: rgba(255, 255, 255, 0.06); color: #fff; border-color: rgba(255, 255, 255, 0.28); }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.12); }
.btn-ghost-light:hover svg { transform: none; }

.btn-light { background: #fff; color: var(--blue-dark); }
.btn-light:hover { background: #eef4fc; }

.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); }
.btn-outline-light:hover svg { transform: none; }

/* ---------- Header / Nav (oscuro, marca) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 28, 52, 0.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.site-header.scrolled {
  background: rgba(8, 23, 43, 0.94);
  border-bottom-color: var(--hairline);
  box-shadow: 0 8px 28px rgba(7, 21, 40, 0.35);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }

/* Logo (imagen real) */
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 40px; width: auto; display: block; }

.nav { display: flex; align-items: center; gap: 0.4rem; }
.nav-link {
  color: var(--on-dark-soft); font-weight: 600; font-size: 0.96rem; letter-spacing: -0.01em;
  padding: 0.5rem 0.85rem; border-radius: 9px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.nav-cta {
  background: var(--blue); color: #fff !important; margin-left: 0.55rem;
  padding: 0.62rem 1.25rem; box-shadow: 0 8px 18px rgba(30, 141, 247, 0.35);
}
.nav-cta:hover { background: var(--blue-600); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 2.5px; background: #fff; border-radius: 2px; transition: transform 0.28s var(--ease), opacity 0.2s var(--ease); }

/* ---------- Hero (oscuro, marca) ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(900px 460px at 85% -10%, rgba(30, 141, 247, 0.38), transparent 60%),
    radial-gradient(700px 420px at 5% 110%, rgba(30, 141, 247, 0.16), transparent 55%),
    linear-gradient(160deg, var(--navy-2) 0%, var(--navy) 55%, var(--navy-deep) 100%);
  color: var(--on-dark);
  padding: clamp(3.5rem, 7vw, 6.5rem) 0;
  overflow: hidden;
}
/* Acento geométrico diagonal (lenguaje de marca) */
.hero::before {
  content: "";
  position: absolute; top: 0; right: 0; width: 45%; height: 100%;
  background: linear-gradient(120deg, transparent 45%, rgba(30, 141, 247, 0.10) 46%, transparent 47%),
              linear-gradient(120deg, transparent 60%, rgba(30, 141, 247, 0.08) 61%, transparent 62%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.4fr; gap: 2.6rem; align-items: center; }

.hero-content h1 { color: #fff; margin-bottom: 1.1rem; }
.hero-content h1 .hl { color: var(--blue); }
.hero-lead { font-size: 1.16rem; color: var(--on-dark-soft); margin-bottom: 2rem; max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #dce8f7; font-size: 0.85rem; font-weight: 600;
  padding: 0.45rem 0.95rem; border-radius: 999px; margin-bottom: 1.4rem;
}
.badge svg { color: var(--blue); }

.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 1.8rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--on-dark-soft); font-size: 0.95rem; font-weight: 500; }
.hero-points svg { color: var(--blue); flex: none; }

/* ---------- Hero: imagen real del sistema ---------- */
.hero-visual { display: flex; justify-content: center; position: relative; }
/* Brillo suave detrás de la imagen para integrarla al fondo oscuro */
.hero-visual::after {
  content: "";
  position: absolute; z-index: 0;
  width: 85%; height: 80%; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(30, 141, 247, 0.35), transparent 70%);
  filter: blur(45px);
  pointer-events: none;
}
.hero-shot {
  position: relative; z-index: 1;
  display: block; width: 100%; max-width: 700px; height: auto;
  /* Imagen transparente directamente sobre el fondo oscuro, con sombra suave que sigue la forma */
  filter: drop-shadow(0 22px 42px rgba(7, 21, 40, 0.5));
}

/* ---------- Hero dashboard (estilos del panel anterior, sin uso) ---------- */
.dash {
  position: relative; z-index: 1; width: 100%; max-width: 400px;
  background: #fff; border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 1.4rem;
}
.dash-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.3rem; }
.dash-id { display: flex; align-items: center; gap: 0.7rem; }
.dash-logo { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; overflow: hidden; }
.dash-logo img { width: 38px; height: 38px; object-fit: contain; }
.dash-id strong { display: block; font-size: 0.98rem; color: var(--blue-dark); }
.dash-id small { color: var(--text-soft); font-size: 0.8rem; }
.dash-live { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.74rem; font-weight: 600; color: #15924f; background: #e8f7ee; padding: 0.28rem 0.6rem; border-radius: 999px; }
.dash-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #1fb866; }

.dash-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-bottom: 1rem; }
.kpi { background: var(--bg-alt); border: 1px solid var(--border-soft); border-radius: var(--radius-sm); padding: 0.85rem 0.9rem; }
.kpi-label { display: block; font-size: 0.78rem; color: var(--text-soft); font-weight: 500; }
.kpi-value { display: block; font-size: 1.45rem; font-weight: 800; color: var(--blue-dark); letter-spacing: -0.02em; margin-top: 0.1rem; }
.kpi-trend { font-size: 0.74rem; font-weight: 700; }
.kpi-trend.up { color: #15924f; }

.dash-chart { background: var(--bg-alt); border: 1px solid var(--border-soft); border-radius: var(--radius-sm); padding: 0.95rem 1rem 1.1rem; margin-bottom: 1rem; }
.chart-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.9rem; }
.chart-head span:first-child { font-size: 0.86rem; font-weight: 600; color: var(--blue-dark); }
.chart-tag { font-size: 0.72rem; color: var(--text-soft); }
.bars { display: flex; align-items: flex-end; gap: 0.5rem; height: 78px; }
.bars i { flex: 1; background: linear-gradient(180deg, var(--blue), #6fb4fb); border-radius: 6px 6px 3px 3px; min-height: 12px; opacity: 0.85; }
.bars i:last-child { opacity: 1; background: linear-gradient(180deg, var(--blue-dark), var(--blue)); }

.dash-list { display: grid; gap: 0.55rem; }
.dash-li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.88rem; color: var(--text-soft); background: var(--bg-alt); border: 1px solid var(--border-soft); border-radius: 10px; padding: 0.6rem 0.8rem; }
.dash-li .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); flex: none; }
.dash-li .li-check { margin-left: auto; color: #1fb866; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 6.5vw, 6rem) 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.section-head { max-width: 760px; margin: 0 auto 3rem; text-align: center; }
.section-head h2 { margin-bottom: 0.6rem; }
.section-sub { color: var(--text-soft); font-size: 1.08rem; }

/* ---------- Grid helpers ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- Íconos base (uniformes, un solo color) ---------- */
.feature-icon, .problem-icon { display: inline-flex; align-items: center; justify-content: center; color: var(--blue); }

/* ---------- Problema ---------- */
.problem-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-xs); transition: box-shadow 0.25s var(--ease), transform 0.2s var(--ease); }
.problem-item:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.problem-icon { width: 48px; height: 48px; background: var(--blue-soft); border-radius: 12px; margin-bottom: 1.1rem; }
.problem-item h3 { margin-bottom: 0.5rem; }
.problem-item p { color: var(--text-soft); }

/* ---------- Features ---------- */
.features { gap: 1.4rem; }
.feature {
  position: relative; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem 1.8rem; box-shadow: var(--shadow-xs);
  transition: transform 0.22s var(--ease), box-shadow 0.28s var(--ease), border-color 0.22s var(--ease); overflow: hidden;
}
.feature::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--blue); transform: scaleY(0); transform-origin: top; transition: transform 0.28s var(--ease); }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #d4e6fb; }
.feature:hover::after { transform: scaleY(1); }
.feature-icon { width: 54px; height: 54px; background: var(--blue-soft); border-radius: 14px; margin-bottom: 1.3rem; transition: background 0.22s var(--ease), color 0.22s var(--ease), transform 0.22s var(--ease); }
.feature:hover .feature-icon { background: var(--blue); color: #fff; transform: scale(1.05); }
.feature h3 { margin-bottom: 0.5rem; }
.feature p { color: var(--text-soft); font-size: 0.98rem; }
.feature-quiet { background: var(--bg-alt); }

/* ---------- Beneficios ---------- */
.benefits { gap: 1.6rem 2.5rem; }
.benefit { display: flex; gap: 1rem; align-items: flex-start; }
.benefit .check { flex: none; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; background: var(--blue); color: #fff; border-radius: 9px; box-shadow: 0 6px 14px rgba(30, 141, 247, 0.3); margin-top: 2px; }
.benefit h3 { margin-bottom: 0.25rem; }
.benefit p { color: var(--text-soft); font-size: 0.98rem; }

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.step { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.7rem 1.4rem 1.5rem; box-shadow: var(--shadow-xs); transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease); }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; background: linear-gradient(145deg, var(--navy), var(--navy-2)); color: #fff; border-radius: 12px; font-weight: 800; font-size: 1.05rem; margin-bottom: 1rem; }
.step h3 { margin-bottom: 0.35rem; }
.step p { color: var(--text-soft); font-size: 0.94rem; }

/* ---------- Trust ---------- */
.trust {
  display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 3rem; align-items: center;
  background: radial-gradient(600px 300px at 90% 0%, rgba(30, 141, 247, 0.1), transparent 60%), linear-gradient(160deg, #f3f9ff, #ffffff);
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(2rem, 4vw, 3.4rem); box-shadow: var(--shadow-sm);
}
.trust-content p { color: var(--text-soft); margin-top: 0.9rem; }

/* Quote de marca */
.quote { margin: 1.6rem 0 0.4rem; padding: 1.1rem 1.4rem; border-left: 3px solid var(--blue); background: rgba(30, 141, 247, 0.06); border-radius: 0 12px 12px 0; }
.quote p { color: var(--blue-dark); font-size: 1.08rem; font-style: italic; font-weight: 500; margin: 0; }
.quote cite { display: block; margin-top: 0.5rem; font-style: normal; font-weight: 700; font-size: 0.86rem; color: var(--text-soft); }

.trust-list { list-style: none; margin-top: 1.5rem; display: grid; gap: 0.7rem; }
.trust-list li { display: flex; align-items: center; gap: 0.6rem; color: var(--text); font-weight: 500; }
.trust-list svg { color: var(--blue); flex: none; }

.trust-stats { display: grid; gap: 1rem; }
.trust-stat { display: flex; align-items: center; gap: 0.9rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem 1.2rem; box-shadow: var(--shadow-xs); }
.trust-stat-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: var(--blue-soft); color: var(--blue); border-radius: 11px; }
.trust-stat strong { display: block; color: var(--blue-dark); font-size: 1rem; }
.trust-stat span { color: var(--text-soft); font-size: 0.86rem; }

/* ---------- CTA ---------- */
.cta {
  background: radial-gradient(700px 320px at 80% 0%, rgba(30, 141, 247, 0.4), transparent 60%), linear-gradient(140deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff; padding: clamp(3.5rem, 6vw, 5.5rem) 0;
}
.cta-inner { text-align: center; max-width: 720px; margin: 0 auto; }
.cta h2 { color: #fff; }
.cta p { color: var(--on-dark-soft); margin: 1rem 0 2rem; font-size: 1.12rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; justify-content: center; }

/* Teléfonos en CTA */
.cta-phones { margin-top: 2.2rem; padding-top: 1.8rem; border-top: 1px solid var(--hairline); }
.cta-phones-label { display: block; color: var(--on-dark-dim); font-size: 0.9rem; margin-bottom: 0.9rem; }
.cta-phones-list { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }
.phone-pill {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff; font-weight: 700; font-size: 1.05rem; letter-spacing: 0.01em;
  padding: 0.7rem 1.3rem; border-radius: 999px;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.18s var(--ease);
}
.phone-pill svg { color: var(--blue); }
.phone-pill:hover { background: rgba(255, 255, 255, 0.13); border-color: rgba(255, 255, 255, 0.4); transform: translateY(-2px); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--on-dark-soft); }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; padding: 3.5rem 24px 2.5rem; }
.brand-logo-footer { height: 38px; }
.footer-tagline { margin-top: 1rem; font-size: 0.95rem; max-width: 25rem; color: #9fb5d2; }
.footer-nav, .footer-contact { display: grid; gap: 0.6rem; align-content: start; }
.footer-inner h4 { color: #fff; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.3rem; }
.footer-nav a { color: var(--on-dark-soft); font-size: 0.96rem; transition: color 0.2s var(--ease); width: max-content; }
.footer-nav a:hover { color: #fff; }
.footer-phone { display: inline-flex; align-items: center; gap: 0.55rem; color: #fff; font-weight: 600; font-size: 1rem; width: max-content; transition: color 0.2s var(--ease); }
.footer-phone svg { color: var(--blue); flex: none; }
.footer-phone:hover { color: var(--blue); }
.footer-mail { color: #79b4fb; font-size: 0.95rem; width: max-content; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.09); padding: 1.2rem 0; }
.footer-bottom p { font-size: 0.84rem; color: var(--on-dark-dim); text-align: center; }

/* ---------- Contacto / Formulario ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 3.2rem; align-items: start; }
/* (especificidad 0,2,0 para ganar a la regla .cta p existente) */
.contact-info .eyebrow { color: #6fb4fb; font-size: 0.8rem; margin: 0 0 0.7rem; }
.contact-info h2 { color: #fff; }
.contact-info .contact-lead { color: var(--on-dark-soft); margin: 1rem 0 1.8rem; font-size: 1.08rem; max-width: 30rem; }
.contact-phones-label { display: block; color: var(--on-dark-dim); font-size: 0.9rem; margin-bottom: 0.8rem; }
.contact-phones { display: flex; flex-direction: column; align-items: flex-start; gap: 0.7rem; }

.contact-card { position: relative; overflow: hidden; background: #fff; border: 1px solid rgba(255, 255, 255, 0.6); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 1.9rem; }
.contact-form { display: grid; gap: 1.05rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.05rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.86rem; font-weight: 600; color: var(--blue-dark); letter-spacing: -0.01em; }
.field .req { color: #e5484d; font-weight: 700; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  background: #fff; border: 1.5px solid var(--border); border-radius: 10px;
  padding: 0.78rem 0.9rem; transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: #9fb0c0; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30, 141, 247, 0.15); }
.field textarea { resize: vertical; min-height: 110px; }
.field input.invalid, .field textarea.invalid { border-color: #e5484d; box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.12); }
.field-error { display: none; color: #e5484d; font-size: 0.8rem; font-weight: 500; }
.field-error.show { display: block; }
.form-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-top: 0.3rem; }
.form-submit { width: 100%; justify-content: center; }
.btn-email { background: #fff; color: var(--blue); border-color: var(--blue); }
.btn-email:hover { background: var(--blue-soft); border-color: var(--blue); color: var(--blue); }
.btn-email:hover svg { transform: none; }
.contact-card .form-note { font-size: 0.82rem; color: var(--text-soft); text-align: center; margin: 0.1rem 0 0; }

.form-submit:disabled {
  cursor: wait;
  opacity: 0.78;
  transform: none;
}

.form-submit:disabled:hover svg {
  transform: none;
}

.btn-email[aria-busy="true"] {
  background: var(--blue-soft);
  border-color: rgba(30, 141, 247, 0.35);
  color: var(--blue-dark);
  box-shadow: 0 12px 28px rgba(30, 141, 247, 0.16);
}

.btn-email[aria-busy="true"] .btn-email-icon {
  display: none;
}

.btn-spinner {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(30, 141, 247, 0.22);
  border-top-color: var(--blue);
  display: none;
  flex: 0 0 auto;
  animation: email-spin 0.75s linear infinite;
}

.btn-email[aria-busy="true"] .btn-spinner {
  display: inline-block;
}

.email-loading {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    radial-gradient(circle at top left, rgba(30, 141, 247, 0.12), transparent 42%),
    rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s var(--ease), visibility 0.22s var(--ease);
}

.email-loading.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.email-loading-card {
  width: min(100%, 390px);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.2rem;
  background: linear-gradient(135deg, #fff 0%, var(--blue-soft) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.email-loading-spinner {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 999px;
  border: 3px solid rgba(30, 141, 247, 0.18);
  border-top-color: var(--blue);
  animation: email-spin 0.75s linear infinite;
}

.email-loading-card strong {
  display: block;
  color: var(--blue-dark);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.email-loading-card small {
  display: block;
  margin-top: 0.2rem;
  color: var(--text-soft);
  line-height: 1.35;
}

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

@media (prefers-reduced-motion: reduce) {
  .btn-spinner,
  .email-loading-spinner {
    animation: none;
  }
}

/* ---------- Confirmación AJAX del formulario ---------- */
.contact-feedback {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.contact-feedback[hidden] {
  display: none;
}

.contact-feedback::before {
  content: "✓";
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(30, 141, 247, 0.22);
}

.contact-feedback.success {
  border-color: rgba(30, 141, 247, 0.22);
  background:
    radial-gradient(circle at top left, rgba(30, 141, 247, 0.13), transparent 38%),
    rgba(234, 243, 255, 0.97);
  color: var(--blue-dark);
}

.contact-feedback.error {
  border-color: rgba(210, 47, 47, 0.25);
  background: #fff2f2;
  color: #8a1f1f;
}

.contact-feedback.error::before {
  content: "!";
  background: #c92a2a;
  box-shadow: 0 10px 24px rgba(201, 42, 42, 0.16);
}


/* =========================================================
   RESPONSIVO
   ========================================================= */
@media (max-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero::before { width: 100%; opacity: 0.5; }
  .hero-shot { max-width: 560px; }
  .trust { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.4rem; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .header-inner { height: 66px; }
  .brand-logo { height: 32px; }
  .nav {
    position: fixed; top: 66px; right: 0; left: 0;
    flex-direction: column; align-items: stretch; gap: 0.15rem;
    background: var(--navy); border-bottom: 1px solid var(--hairline);
    box-shadow: 0 12px 30px rgba(7, 21, 40, 0.4);
    padding: 0.8rem 20px 1.2rem;
    transform: translateY(-160%); transition: transform 0.3s var(--ease); visibility: hidden;
  }
  .nav.open { transform: translateY(0); visibility: visible; }
  .nav-link { padding: 0.9rem 0.6rem; border-radius: 10px; }
  .nav-cta { text-align: center; justify-content: center; margin: 0.6rem 0 0; padding: 0.95rem; }
  .nav-toggle { display: flex; }
  .container { padding: 0 20px; }
  .hero-lead { font-size: 1.05rem; }
  .nav-toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

@media (max-width: 600px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .features { gap: 1.1rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-actions, .cta-actions { flex-direction: column; }
  .hero-content h1 { font-size: 1.95rem; }
  .hero-points { gap: 0.7rem 1.4rem; }
  .btn { justify-content: center; }
  .dash { padding: 1.1rem; }
  .cta-phones-list { flex-direction: column; align-items: stretch; }
  .phone-pill { justify-content: center; }
  .brand-logo { height: 30px; }
  /* Formulario en móvil */
  .contact-card { padding: 1.3rem; }
  .form-row { grid-template-columns: 1fr; }
  .form-actions { grid-template-columns: 1fr; }
  .contact-phones { align-self: stretch; }
  .contact-phones .phone-pill { justify-content: center; }
}


/* ---------- Mensajes del formulario con backend ---------- */
.contact-alert {
  margin-bottom: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  font-size: 0.95rem;
  line-height: 1.45;
  border: 1px solid rgba(30, 141, 247, 0.2);
  background: rgba(234, 243, 255, 0.95);
  color: #0b2c52;
}

.contact-alert.error {
  border-color: rgba(210, 47, 47, 0.25);
  background: #fff2f2;
  color: #8a1f1f;
}

.validation-summary {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: #fff2f2;
  color: #8a1f1f;
  border: 1px solid rgba(210, 47, 47, 0.25);
  font-size: 0.95rem;
}

.validation-summary ul {
  margin-left: 1.1rem;
}

.field-validation-error {
  color: #c92a2a;
  font-size: 0.84rem;
  margin-top: 0.35rem;
  display: block;
}
