:root {
  --primary: #0b3a5b;
  --accent: #1fa2d6;
  --text: #1c2733;
  --muted: #5b6b7b;
  --bg: #ffffff;
  --bg-alt: #f2f7fa;
  --border: #dde6ec;
  --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 640px; }

/* Botones */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 12px 24px;
  border: 2px solid var(--accent);
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity .2s;
}
.btn:hover { opacity: .85; }
.btn-sm { padding: 6px 14px; font-size: .9rem; }
.btn-outline { background: transparent; color: #fff; border-color: #fff; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav nav { display: flex; align-items: center; gap: 20px; }
.nav nav a:not(.btn) { color: var(--text); font-weight: 500; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; color: var(--primary); }
.logo img { width: 34px; height: 34px; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  display: flex; align-items: center;
  background: #072a43;
  color: #fff;
  padding: 96px 0;
}
.hero::before {
  /* Foto del robot volteada para que quede a la derecha */
  content: "";
  position: absolute; inset: 0;
  background: url("img/hero-robot.jpg") left center / cover no-repeat;
  transform: scaleX(-1);
}
.hero::after {
  /* Degradado de marca: oscuro a la izquierda para el texto, deja ver al robot a la derecha */
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7,42,67,.96) 0%, rgba(7,42,67,.85) 35%, rgba(11,58,91,.35) 62%, rgba(11,58,91,0) 80%),
    linear-gradient(0deg, rgba(7,42,67,.6), transparent 30%);
}
.hero-inner { position: relative; z-index: 1; width: 100%; }
.hero-text { max-width: 620px; }
.badge {
  display: inline-block;
  padding: 6px 14px;
  margin-bottom: 20px;
  border: 1px solid rgba(127,208,239,.5);
  border-radius: 999px;
  background: rgba(31,162,214,.18);
  color: #bfe9f8;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.1; margin-bottom: 20px; text-shadow: 0 4px 30px rgba(0,0,0,.35); }
.hero h1 span { color: #4cc3ef; }
.hero p { max-width: 560px; margin-bottom: 32px; font-size: 1.2rem; opacity: .92; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-actions .btn { padding: 15px 28px; font-size: 1.05rem; box-shadow: 0 10px 30px rgba(31,162,214,.45); }
.hero-actions .btn-outline { box-shadow: none; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 32px; font-size: .95rem; opacity: .9; }
.hero-points li::before { content: "✓"; color: #4cc3ef; font-weight: 700; margin-right: 8px; }

/* Tarjetas flotantes sobre la foto */
.hero-chips { position: absolute; inset: 0; pointer-events: none; }
.chip {
  position: absolute;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px rgba(0,0,0,.25);
  animation: float 6s ease-in-out infinite;
}
.chip span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.chip small { font-size: .75rem; opacity: .8; }
.chip strong { font-size: .95rem; }
.chip-icon {
  width: 36px; height: 36px; flex: none;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--accent); color: #fff; font-weight: 800;
}
.chip-ok { background: #22b07d; }
.chip-1 { top: -10px; right: 2%; }
.chip-2 { top: 45%; right: 26%; animation-delay: -2s; }
.chip-3 { bottom: -10px; right: 6%; animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .chip { animation: none; } }

/* Secciones */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section h2 { text-align: center; font-size: 2rem; color: var(--primary); margin-bottom: 8px; }
.section-intro { text-align: center; color: var(--muted); margin-bottom: 40px; }

.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.card h3 { color: var(--primary); margin-bottom: 8px; }
.card p { color: var(--muted); }

/* Servicios */
.service { padding: 0; overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.service:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(11,58,91,.12); }
.service img { width: 100%; height: auto; display: block; border-bottom: 1px solid var(--border); }
.service-body { padding: 24px; }
.checks { list-style: none; margin-top: 16px; display: grid; gap: 8px; font-size: .92rem; }
.checks li { position: relative; padding-left: 26px; }
.checks li::before {
  content: "✓";
  position: absolute; left: 0; top: 2px;
  width: 18px; height: 18px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #e1f3fa; color: var(--accent);
  font-size: .7rem; font-weight: 800;
}

/* Qué puedes automatizar */
.eyebrow {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: .85rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.eyebrow svg { width: 16px; height: 16px; fill: currentColor; }
.features { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.feature {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.feature:hover { transform: translateY(-4px); border-color: #b9e1f2; box-shadow: 0 14px 32px rgba(11,58,91,.10); }
.feature-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  margin-bottom: 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #135f8f);
  box-shadow: 0 8px 18px rgba(31,162,214,.3);
}
.feature-icon svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { color: var(--primary); margin-bottom: 8px; font-size: 1.1rem; }
.feature p { color: var(--muted); font-size: .95rem; }
.ai-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #e9f6fc; color: var(--accent);
  font-size: .72rem; font-weight: 800; letter-spacing: .04em;
}
.ai-tag::before { content: "✦"; }
.feature .ai-tag { position: absolute; top: 24px; right: 24px; }
.ai-tag-light { background: rgba(255,255,255,.14); color: #fff; margin-bottom: 14px; }

.risk {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center;
  margin-top: 32px;
  padding: 44px;
  border-radius: 20px;
  color: #fff;
  background:
    url("img/footer-bg.svg") center / 1200px auto repeat,
    radial-gradient(circle at 90% 10%, rgba(31,162,214,.4), transparent 50%),
    linear-gradient(135deg, #072a43, var(--primary));
}
.risk h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.2; margin-bottom: 12px; }
.risk-text > p { opacity: .85; }
.checks-light li::before { background: rgba(255,255,255,.15); color: #fff; }
.risk-visual { position: relative; max-width: 320px; width: 100%; margin: 0 auto; }
.risk-visual svg { width: 100%; height: auto; display: block; }
.risk-alert {
  display: flex; align-items: center; gap: 10px;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff; color: var(--text);
  box-shadow: 0 12px 28px rgba(0,0,0,.25);
}
.risk-alert div { display: flex; flex-direction: column; font-size: .85rem; }
.risk-alert small { color: var(--muted); }
.risk-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #ffb020; box-shadow: 0 0 0 4px rgba(255,176,32,.25); }

/* Quiénes somos */
.eyebrow-left { justify-content: flex-start; }
.about-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 48px; }
.about .about-head h2 { text-align: left; font-size: clamp(1.7rem, 3.5vw, 2.4rem); line-height: 1.2; margin: 0; }
.about-head > p { color: var(--muted); font-size: 1.05rem; }

.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mv-card {
  position: relative;
  overflow: hidden;
  padding: 40px;
  border-radius: 20px;
  background: linear-gradient(160deg, #f2f9fd, #e3f2fa);
  border: 1px solid #d3e9f4;
}
.mv-card::after {
  content: "";
  position: absolute; right: -60px; bottom: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31,162,214,.18), transparent 70%);
}
.mv-card-dark { background: url("img/footer-bg.svg") center / 1200px auto repeat, linear-gradient(160deg, var(--primary), #135f8f); border-color: transparent; color: #fff; }
.mv-card-dark::after { background: radial-gradient(circle, rgba(255,255,255,.12), transparent 70%); }
.mv-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  margin-bottom: 20px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(11,58,91,.10);
}
.mv-card-dark .mv-icon { background: rgba(255,255,255,.14); box-shadow: none; }
.mv-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mv-card-dark .mv-icon svg { stroke: #fff; }
.mv-label { display: block; font-size: 1.5rem; font-weight: 800; color: var(--primary); margin-bottom: 10px; }
.mv-card-dark .mv-label { color: #fff; }
.mv-card p { position: relative; font-size: 1.05rem; color: var(--text); opacity: .85; }
.mv-card-dark p { color: #fff; }

.values { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; }
.values li { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: start; }
.values svg {
  grid-row: span 2;
  width: 44px; height: 44px; padding: 10px;
  border-radius: 12px;
  background: #e9f6fc;
  fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.values strong { color: var(--primary); }
.values span { color: var(--muted); font-size: .9rem; }

/* Testimonios */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: center; }
.testimonial {
  position: relative;
  display: flex; flex-direction: column; gap: 16px;
  padding: 32px;
  border-radius: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(11,58,91,.06);
}
.testimonial::before {
  content: "“";
  position: absolute; top: 4px; right: 24px;
  font: 800 6rem/1 Georgia, serif;
  color: #e1f0f7;
}
.t-tag {
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 999px;
  background: #e9f6fc; color: var(--accent);
  font-size: .75rem; font-weight: 700;
}
.t-stars { color: #ffb020; letter-spacing: 2px; }
.testimonial blockquote { position: relative; font-size: 1.02rem; line-height: 1.6; }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border); }
.testimonial figcaption > span:last-child { display: flex; flex-direction: column; }
.testimonial small { color: var(--muted); font-size: .85rem; }
.t-avatar {
  flex: none;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: #fff; font-weight: 700; font-size: .9rem;
}
.testimonial-featured {
  padding: 44px 32px;
  background: url("img/footer-bg.svg") center / 1200px auto repeat, linear-gradient(160deg, var(--primary), #135f8f);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 24px 50px rgba(11,58,91,.25);
}
.testimonial-featured::before { color: rgba(255,255,255,.12); }
.testimonial-featured .t-tag { background: rgba(255,255,255,.15); color: #fff; }
.testimonial-featured figcaption { border-color: rgba(255,255,255,.2); }
.testimonial-featured small { color: #bfe0f0; }
.testimonial-featured .t-avatar { background: #fff; color: var(--primary); }

/* Cotización */
.quote {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  background: var(--bg);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(11,58,91,.12);
}
.quote-info {
  background: url("img/footer-bg.svg") center / 1200px auto repeat, linear-gradient(160deg, var(--primary), #135f8f);
  color: #fff;
  padding: 40px;
  display: flex; flex-direction: column;
}
.quote-info h2 { color: #fff; text-align: left; font-size: 1.8rem; margin-bottom: 8px; }
.quote-info > p { opacity: .85; margin-bottom: 32px; }
.steps { list-style: none; counter-reset: step; display: grid; gap: 22px; margin-bottom: 32px; }
.steps li { counter-increment: step; position: relative; padding-left: 48px; display: flex; flex-direction: column; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.3);
  font-weight: 700;
}
.steps span { opacity: .75; font-size: .92rem; }
.quote-mail { margin-top: auto; color: #fff; font-weight: 600; opacity: .9; }

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

/* Selección de servicio en tarjetas */
.options { border: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.options legend { font-weight: 700; margin-bottom: 12px; color: var(--primary); }
.option { cursor: pointer; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option span {
  display: flex; flex-direction: column; gap: 2px;
  height: 100%;
  padding: 12px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  transition: border-color .2s, background .2s;
}
.option small { color: var(--muted); font-size: .78rem; }
.option:hover span { border-color: var(--accent); }
.option input:checked + span { border-color: var(--accent); background: #e9f6fc; box-shadow: 0 0 0 3px rgba(31,162,214,.15); }
.option input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Campos con etiqueta flotante */
.field { position: relative; }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  padding: 22px 14px 8px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: #fbfdfe;
  transition: border-color .2s, box-shadow .2s;
  resize: vertical;
}
.field label {
  position: absolute; left: 15px; top: 15px;
  color: var(--muted);
  pointer-events: none;
  transition: all .15s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31,162,214,.15);
  background: #fff;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  top: 6px; font-size: .74rem; font-weight: 600; color: var(--accent);
}
.was-validated .field input:invalid { border-color: #e05a5a; }
.was-validated .options:has(input:invalid) .option span { border-color: #f0b4b4; }

.form-error { color: #c53b3b; font-size: .9rem; }
.btn-block { width: 100%; padding: 14px; font-size: 1.05rem; }
.form-note { text-align: center; font-size: .82rem; color: var(--muted); }

.form-success { display: grid; place-content: center; text-align: center; gap: 10px; }
.form[hidden], .form-success[hidden] { display: none; }
.success-icon {
  width: 64px; height: 64px; margin: 0 auto 8px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #d8f3e8; color: #22b07d;
  font-size: 2rem; font-weight: 800;
}
.form-success h3 { color: var(--primary); }
.form-success p { color: var(--muted); }

/* Footer */
.footer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #072a43, var(--primary) 50%, #135f8f);
  color: #cfe0ea;
  padding: 64px 0 16px;
}
.footer::before {
  content: "";
  position: absolute; inset: 0;
  background: url("img/footer-bg.svg") center / cover no-repeat;
  opacity: .8;
  pointer-events: none;
}
.footer > .container { position: relative; z-index: 1; }
.footer .logo { color: #fff; }
.footer a { color: #fff; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.social { display: flex; gap: 12px; }
.social a {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  transition: background .2s;
}
.social a:hover { background: var(--accent); }
.social svg { width: 20px; height: 20px; fill: #fff; }
.copyright { border-top: 1px solid rgba(255,255,255,.15); margin-top: 32px; padding-top: 16px; font-size: .85rem; text-align: center; }

/* Tablet */
@media (max-width: 900px) {
  .hero { min-height: 0; }
  .hero::before { background-position: 20% center; }
  .hero::after { background: linear-gradient(0deg, rgba(7,42,67,.95) 10%, rgba(7,42,67,.7) 60%, rgba(7,42,67,.45)); }
  .hero-chips { display: none; }
  .quote { grid-template-columns: 1fr; }
  .options { grid-template-columns: repeat(2, 1fr); }
  .risk { grid-template-columns: 1fr; padding: 32px 24px; }
  .about-head, .mv, .testimonials { grid-template-columns: 1fr; }
  .about-head { gap: 16px; }
  .values { grid-template-columns: repeat(2, 1fr); }
}

/* Móvil */
@media (max-width: 640px) {
  .nav nav a:not(.btn) { display: none; }
  .hero { padding: 64px 0 72px; }
  .section { padding: 56px 0; }
  .quote-info, .form, .form-success { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .mv-card { padding: 28px 24px; }
}
