:root {
  --ink: #1c2a3a;
  --ink-2: #24384e;
  --muted: #5b7287;
  --accent: #2aa3d6;
  --accent-2: #1b7fb7;
  --bg: #f4f8fb;
  --surface: #ffffff;
  --surface-2: #eaf3f9;
  --line: #d5e3ef;
  --shadow: 0 18px 30px rgba(19, 45, 71, 0.08);
  --radius: 12px;
  --radius-lg: 18px;
  --container: 1120px;
  --transition: 200ms ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Open Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(42, 163, 214, 0.4);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  z-index: 50;
}

.skip-link:focus {
  left: 16px;
}

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.section {
  padding: 96px 0;
  position: relative;
}

.section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--line);
}

.section--neutral {
  background: var(--surface-2);
}

.section--neutral::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--accent), rgba(42, 163, 214, 0.2));
}

.section-heading {
  margin-bottom: 40px;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 12px;
}

h1,
h2,
h3 {
  font-family: "Montserrat", "Segoe UI", sans-serif;
  margin: 0 0 16px;
  color: var(--ink);
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(2.2rem, 3.6vw, 3.1rem);
  line-height: 1.08;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  text-transform: uppercase;
}

h3 {
  font-size: 1.28rem;
}

p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.6;
}

ul {
  padding-left: 20px;
  margin: 0;
  color: var(--muted);
}

li {
  margin-bottom: 10px;
  line-height: 1.5;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #223446;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: var(--container);
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  font-weight: 700;
}

.brand__text {
  font-size: 0.95rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  line-height: 1.1;
}

.brand__subtitle {
  font-size: 0.65rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  display: block;
  line-height: 1.2;
}

.nav {
  display: flex;
  align-items: center;
  position: relative;
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.nav__toggle-line {
  width: 24px;
  height: 2px;
  background: #fff;
  display: block;
  margin: 5px 0;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav__menu a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.nav__calendly {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: background 200ms ease, transform 200ms ease, border-color 200ms ease;
}

.nav__calendly:hover,
.nav__calendly:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.32);
  transform: translateY(-1px);
}

.nav__cta {
  padding: 8px 14px;
  border-radius: 6px;
  background: #fff;
  color: var(--accent-2);
  font-weight: 700;
}

.hero {
  position: relative;
  padding: 60px 0 52px;
  overflow: hidden;
  background-color: #223446;
  background-image: image-set(
    url("/header-1024.webp") type("image/webp"),
    url("/header-1536.webp") type("image/webp"),
    url("/header-1536.webp") type("image/webp")
  );
  background-size: cover;
  background-repeat: no-repeat;
  background-position: right center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(34, 52, 70, 0.92) 0%,
    rgba(34, 52, 70, 0.85) 55%,
    rgba(244, 248, 251, 0.35) 55%,
    rgba(244, 248, 251, 0.15) 100%
  );
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.08), transparent 40%),
    radial-gradient(circle at 35% 70%, rgba(42, 163, 214, 0.18), transparent 45%);
  pointer-events: none;
  z-index: 0;
}

.hero__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.hero__content {
  color: #fff;
}

.hero__content h1,
.hero__content p,
.hero__content .eyebrow {
  color: #fff;
}

.hero__content .lead {
  font-size: 1rem;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.85);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 12px 0 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 6px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 18px rgba(42, 163, 214, 0.25);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 24px rgba(42, 163, 214, 0.3);
}

.btn--ghost {
  border-color: rgba(42, 163, 214, 0.4);
  color: var(--accent-2);
  background: #fff;
}

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

.trust-bar {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.trust-bar--text {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.trust-item {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  position: relative;
  padding-left: 16px;
}

.trust-item::before {
  content: "•";
  position: absolute;
  left: 0;
  color: rgba(255, 255, 255, 0.6);
}

.trust-pill {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 600;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero__panel {
  display: grid;
  gap: 14px;
}

.panel__card {
  background: rgba(240, 242, 245, 0.7);
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: var(--shadow);
  color: #1f2f3f;
}

.panel__card h3 {
  color: #162635;
}

.panel__card p,
.panel__card li {
  color: #2a3e52;
}

.panel__card::before {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  background: var(--accent);
  margin-bottom: 16px;
}

.panel__card ul {
  margin-top: 20px;
}

.panel__metrics {
  display: grid;
  grid-template-columns: repeat(3, 110px);
  gap: 10px;
  justify-content: start;
}

.panel__metrics div {
  background: rgba(240, 242, 245, 0.7);
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.55);
  text-align: center;
  aspect-ratio: 1;
  display: grid;
  place-content: center;
}

.panel__metrics span {
  font-weight: 700;
  color: #162635;
  display: block;
}

.panel__metrics small {
  color: #2a3e52;
}

.carousel {
  position: relative;
  overflow: hidden;
}

.carousel__track {
  display: flex;
  transition: transform 520ms ease;
  will-change: transform;
}

.carousel__slide {
  flex: 0 0 100%;
}

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(36, 56, 78, 0.25);
  cursor: pointer;
}

.carousel__dot.is-active {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(42, 163, 214, 0.15);
}

.carousel__dot:focus-visible {
  outline: 3px solid rgba(42, 163, 214, 0.4);
  outline-offset: 3px;
}

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

.card,
.service-card,
.package-card {
  background: #fff;
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: none;
  position: relative;
}

#problemas .carousel__slide.card {
  background: #f4f8fc;
  border: 1px solid #c7d6e6;
  box-shadow: 0 12px 22px rgba(30, 54, 79, 0.08);
}

#problemas .carousel__slide.card h3 {
  color: #162635;
}

#problemas .carousel__slide.card p {
  color: #223447;
}

#casos .carousel__slide.card {
  background: #f4f8fc;
  border: 1px solid #c7d6e6;
  box-shadow: 0 12px 22px rgba(30, 54, 79, 0.08);
}

#casos .carousel__slide.card h3 {
  color: #162635;
}

#casos .carousel__slide.card p {
  color: #223447;
}

.card::before,
.service-card::before,
.package-card::before {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: var(--accent);
  margin-bottom: 16px;
}

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

.rubros {
  margin-top: 32px;
  padding: 20px 24px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px dashed rgba(42, 163, 214, 0.4);
}

.timeline {
  display: grid;
  gap: 24px;
  position: relative;
  padding-left: 20px;
}

.method-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
  gap: 32px;
  align-items: center;
}

.method-image,
.about-image {
  display: flex;
  justify-content: flex-end;
}

.method-image img,
.about-image img {
  width: 100%;
  max-width: 360px;
  border-radius: 18px;
  border: 1px solid rgba(199, 214, 230, 0.8);
  box-shadow: 0 16px 28px rgba(30, 54, 79, 0.18);
  object-fit: cover;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(42, 163, 214, 0.3);
}

.timeline__item {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  position: relative;
}

.timeline__step {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent);
  color: var(--accent-2);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.deliverables-list {
  display: grid;
  gap: 12px;
  background: #fff;
  padding: 28px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  list-style: none;
}

.deliverables-list li {
  margin: 0;
  padding-left: 28px;
  position: relative;
}

.deliverables-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

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

.package-note {
  margin-top: 26px;
  font-weight: 600;
  color: var(--ink-2);
}

.package-note--short {
  margin-top: 18px;
  color: var(--accent-2);
}

.lead-form {
  background: #f4f8fc;
}

.lead-form__card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid #c7d6e6;
  box-shadow: var(--shadow);
  padding: 32px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
}

.lead-form__intro h3 {
  margin-top: 0;
}

.lead-form__form {
  display: grid;
  gap: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-field {
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-2);
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field input,
.form-field select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #c7d6e6;
  background: #f7fafd;
  padding: 12px 14px;
  font-size: 0.95rem;
  color: var(--ink);
}

.form-field input:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(42, 163, 214, 0.18);
}

.lead-form__form.is-invalid input:invalid,
.lead-form__form.is-invalid select:invalid {
  border-color: #e08e8e;
  box-shadow: 0 0 0 3px rgba(224, 142, 142, 0.18);
}

.form-actions {
  display: grid;
  gap: 10px;
}

.lead-form .btn--primary {
  box-shadow: none;
}

.lead-form__note {
  font-size: 0.78rem;
  color: var(--muted);
}

.lead-form__success {
  font-size: 0.85rem;
  color: #1b6d52;
  background: #e8f6ef;
  border: 1px solid #bfe4d3;
  border-radius: 10px;
  padding: 10px 14px;
}

.lead-form__error {
  font-size: 0.85rem;
  color: #8b2c2c;
  background: #fdecec;
  border: 1px solid #f2c5c5;
  border-radius: 10px;
  padding: 10px 14px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  align-items: center;
}

.about-card {
  background: #d9ecf7;
  border-radius: var(--radius-lg);
  padding: 28px;
}

.about-card__inner {
  background: #fff;
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  animation: soft-pulse 6s ease-in-out infinite;
}

.about-card__highlights {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.about-card__highlights div {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
}

.flip-card {
  perspective: 1200px;
}

.flip-card__inner {
  position: relative;
  min-height: 520px;
  transform-style: preserve-3d;
  transition: transform 700ms ease;
}

.flip-card__face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}

.flip-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #2a6c9c;
  background: rgba(42, 163, 214, 0.1);
  padding: 6px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.flip-hint::after {
  content: "↻";
  font-size: 0.9rem;
}

.flip-card__front h2 {
  margin-top: 0;
}

.flip-card__back {
  transform: rotateY(180deg);
  overflow-y: auto;
}

.flip-card__back h3 {
  margin-top: 0;
}

.flip-card:hover .flip-card__inner,
.flip-card:focus-within .flip-card__inner {
  transform: rotateY(180deg);
}

.flip-card__back ul {
  margin-bottom: 18px;
}

@keyframes soft-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 14px 26px rgba(30, 54, 79, 0.12);
  }
  50% {
    transform: scale(1.01);
    box-shadow: 0 18px 32px rgba(30, 54, 79, 0.18);
  }
}

.lead-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: center;
}

.lead-cta {
  display: grid;
  gap: 12px;
}

.faq {
  display: grid;
  gap: 12px;
}

.faq__item {
  background: #fff;
  border-radius: var(--radius);
  padding: 18px 22px;
  border: 1px solid var(--line);
}

.faq__item summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.contact-card {
  background: #fff;
  padding: 32px;
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.contact-alt a {
  color: var(--accent-2);
  font-weight: 700;
}

.calendly-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 320px;
  border: 1px solid var(--line);
}

.calendly-wrapper iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}

.site-footer {
  padding: 60px 0 70px;
  background: #223446;
  color: rgba(255, 255, 255, 0.8);
}

.site-footer p,
.site-footer a,
.site-footer .brand__text {
  color: rgba(255, 255, 255, 0.8);
}

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

.footer-links {
  display: grid;
  gap: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

.footer-brand .brand__subtitle {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

.footer-note {
  max-width: 260px;
}

.footer-meta a {
  color: #fff;
  font-weight: 600;
}

.footer-title {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  font-size: 0.8rem;
  margin: 0 0 8px;
}

.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  color: #fff;
  padding: 14px 18px;
  border-radius: 999px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  box-shadow: 0 16px 26px rgba(42, 163, 214, 0.35);
  z-index: 50;
}

.wa-float__icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.16));
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.sr-only {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

@media (max-width: 980px) {
  .hero {
    padding: 60px 0 52px;
    background-position: center;
  }

  .hero::before {
    background: linear-gradient(
      180deg,
      rgba(34, 52, 70, 0.9) 0%,
      rgba(34, 52, 70, 0.88) 60%,
      rgba(34, 52, 70, 0.92) 100%
    );
  }

  .hero__grid {
    grid-template-columns: 1fr;
  }

  .method-grid {
    grid-template-columns: 1fr;
  }

  .method-image,
  .about-image {
    justify-content: flex-start;
  }

  .nav__toggle {
    display: inline-flex;
  }

  .nav__menu {
    position: absolute;
    right: 24px;
    top: 68px;
    background: #223446;
    border-radius: var(--radius);
    padding: 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    box-shadow: 0 18px 35px rgba(19, 45, 71, 0.25);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity var(--transition), transform var(--transition);
  }

  .nav__menu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .lead-form__card {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .about-card {
    padding: 20px;
  }

  .about-card__inner {
    padding: 20px;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 72px 0;
  }

  .hero {
    padding: 56px 0 48px;
    background-position: center;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .trust-bar {
    grid-template-columns: 1fr;
  }

  .panel__metrics {
    grid-template-columns: 1fr;
  }

  .panel__metrics div {
    aspect-ratio: auto;
    border-radius: 16px;
  }

  .wa-float {
    right: 16px;
    bottom: 16px;
  }

  .about-card__highlights div {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .flip-card__inner {
    min-height: 480px;
  }

  .flip-card__face {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-card__inner {
    animation: none;
  }
}
.section--neutral#problemas {
  background: #e9f6ff;
  backdrop-filter: blur(2px);
}

/* Paleta aplicada solo después del hero */
main > .hero ~ .section {
  --ink: #000040;
  --ink-2: #000040;
  --muted: rgba(0, 0, 64, 0.7);
  --accent: #ecd855;
  --accent-2: #ecd855;
  --bg: #f1f3f0;
  --surface: #f1f3f0;
  --surface-2: #f1f3f0;
  --line: rgba(0, 0, 64, 0.18);
  --shadow: 0 18px 30px rgba(0, 0, 64, 0.12);
  background: var(--bg);
  color: var(--ink);
}

main > .hero ~ .section.section--neutral {
  background: var(--surface-2);
}

main > .hero ~ .section.section--neutral::before {
  background: linear-gradient(90deg, var(--accent), rgba(236, 216, 85, 0.2));
}

main > .hero ~ .section.section--neutral#problemas {
  background: var(--surface-2);
  backdrop-filter: blur(2px);
}

main > .hero ~ .section .btn--primary {
  color: #000040;
  box-shadow: 0 12px 18px rgba(0, 0, 64, 0.18);
}

main > .hero ~ .section .btn--primary:hover {
  box-shadow: 0 16px 24px rgba(0, 0, 64, 0.24);
}

main > .hero ~ .section .btn--ghost {
  border-color: rgba(0, 0, 64, 0.35);
  color: var(--ink);
  background: var(--surface);
}

main > .hero ~ .section .carousel__dot {
  background: rgba(0, 0, 64, 0.25);
}

main > .hero ~ .section .carousel__dot.is-active {
  box-shadow: 0 0 0 4px rgba(0, 0, 64, 0.2);
}

main > .hero ~ .section .carousel__dot:focus-visible {
  outline: 3px solid rgba(236, 216, 85, 0.4);
}

main > .hero ~ .section .card,
main > .hero ~ .section .service-card,
main > .hero ~ .section .package-card,
main > .hero ~ .section .deliverables-list,
main > .hero ~ .section .faq__item,
main > .hero ~ .section .contact-card,
main > .hero ~ .section .lead-form__card,
main > .hero ~ .section .about-card__inner,
main > .hero ~ .section .flip-card__face {
  background: var(--surface);
  border-color: var(--line);
}

main > .hero ~ .section #problemas .carousel__slide.card,
main > .hero ~ .section#problemas .carousel__slide.card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

main > .hero ~ .section #problemas .carousel__slide.card h3,
main > .hero ~ .section#problemas .carousel__slide.card h3,
main > .hero ~ .section #casos .carousel__slide.card h3,
main > .hero ~ .section#casos .carousel__slide.card h3 {
  color: var(--ink);
}

main > .hero ~ .section #problemas .carousel__slide.card p,
main > .hero ~ .section#problemas .carousel__slide.card p,
main > .hero ~ .section #casos .carousel__slide.card p,
main > .hero ~ .section#casos .carousel__slide.card p {
  color: var(--muted);
}

main > .hero ~ .section #casos .carousel__slide.card,
main > .hero ~ .section#casos .carousel__slide.card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

main > .hero ~ .section .rubros {
  background: var(--surface);
  border: 1px dashed var(--line);
}

main > .hero ~ .section .method-image img,
main > .hero ~ .section .about-image img {
  border: 1px solid var(--line);
  box-shadow: 0 16px 28px rgba(0, 0, 64, 0.18);
}

main > .hero ~ .section .timeline::before {
  background: rgba(0, 0, 64, 0.25);
}

main > .hero ~ .section .timeline__step {
  background: var(--surface);
  color: var(--ink);
}

main > .hero ~ .section .deliverables-list {
  background: var(--surface);
}

main > .hero ~ .section .lead-form {
  background: var(--surface-2);
}

main > .hero ~ .section .lead-form__card {
  background: var(--surface);
  border: 1px solid var(--line);
}

main > .hero ~ .section .form-field input,
main > .hero ~ .section .form-field select {
  border: 1px solid var(--line);
  background: var(--surface);
}

main > .hero ~ .section .form-field input:focus,
main > .hero ~ .section .form-field select:focus {
  box-shadow: 0 0 0 3px rgba(236, 216, 85, 0.35);
}

main > .hero ~ .section .about-card {
  background: var(--surface-2);
}

main > .hero ~ .section .flip-hint {
  color: var(--ink);
  background: rgba(236, 216, 85, 0.2);
}

@keyframes soft-pulse-palette {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 14px 26px rgba(0, 0, 64, 0.12);
  }
  50% {
    transform: scale(1.01);
    box-shadow: 0 18px 32px rgba(0, 0, 64, 0.18);
  }
}

main > .hero ~ .section .about-card__inner {
  animation: soft-pulse-palette 6s ease-in-out infinite;
}

main ~ .site-footer {
  --ink: #000040;
  --ink-2: #000040;
  --muted: rgba(0, 0, 64, 0.7);
  --accent: #ecd855;
  --accent-2: #ecd855;
  --bg: #f1f3f0;
  --surface: #f1f3f0;
  --surface-2: #f1f3f0;
  --line: rgba(0, 0, 64, 0.18);
  --shadow: 0 18px 30px rgba(0, 0, 64, 0.12);
  background: var(--bg);
  color: var(--ink);
}

main ~ .site-footer p,
main ~ .site-footer a,
main ~ .site-footer .brand__text {
  color: var(--ink);
}

main ~ .site-footer .brand__subtitle {
  color: var(--muted);
}

main ~ .site-footer .footer-meta a {
  color: var(--ink);
}

.wa-float {
  --accent: #ecd855;
  --accent-2: #ecd855;
  box-shadow: 0 16px 26px rgba(0, 0, 64, 0.25);
}


/* =========================================================
   Service pages UI/UX fix
   These pages are copied from /public by Vite. Keeping this
   CSS also in /public/styles.css prevents unstyled HTML after deploy.
   ========================================================= */
body.service-page {
  background:
    radial-gradient(circle at top left, rgba(42, 163, 214, 0.12), transparent 32rem),
    linear-gradient(180deg, #f7fbff 0%, #eef5fa 100%);
  color: var(--ink);
}

.service-page__header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(34, 52, 70, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 24px rgba(11, 27, 42, 0.08);
}

.service-page__header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.service-page__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: "Montserrat", "Segoe UI", sans-serif;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.service-page__brand::before {
  content: "";
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(42, 163, 214, 0.96), rgba(27, 127, 183, 0.96)),
    url("/palette.png");
  box-shadow: 0 10px 20px rgba(42, 163, 214, 0.25);
}

.service-page__nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.service-page__nav a {
  color: rgba(255, 255, 255, 0.86);
  padding: 9px 10px;
  border-radius: 999px;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.service-page__nav a:hover,
.service-page__nav a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.service-page__nav .nav__cta {
  color: #0f3759;
  background: #fff;
  padding: 10px 14px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.service-page__nav .nav__cta:hover,
.service-page__nav .nav__cta:focus-visible {
  color: #0f3759;
  background: #e9f7ff;
}

.service-page__hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 86px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(234, 243, 249, 0.96) 56%, rgba(213, 233, 245, 0.88) 100%);
}

.service-page__hero::before {
  content: "";
  position: absolute;
  inset: auto -12% -42% 52%;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42, 163, 214, 0.18), rgba(42, 163, 214, 0));
  pointer-events: none;
}

.service-page__hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 42px;
  align-items: center;
}

.service-page__hero h1 {
  max-width: 780px;
  margin-bottom: 20px;
  color: #17283a;
}

.service-page__lead {
  max-width: 720px;
  font-size: clamp(1.04rem, 1.5vw, 1.18rem);
  color: #496277;
  margin-bottom: 28px;
}

.service-page .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 8px;
}

.service-page .btn {
  min-height: 48px;
}

.service-page .btn--primary {
  box-shadow: 0 16px 28px rgba(42, 163, 214, 0.28);
}

.service-page__hero-image,
.service-page__card {
  position: relative;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(213, 227, 239, 0.95);
  border-radius: 28px;
  padding: 18px;
  box-shadow: 0 26px 54px rgba(19, 45, 71, 0.14);
}

.service-page__hero-image::after,
.service-page__card::after {
  content: "";
  position: absolute;
  right: -16px;
  bottom: -16px;
  width: 118px;
  height: 118px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(42, 163, 214, 0.16), rgba(27, 127, 183, 0.04));
  z-index: -1;
}

.service-page__hero-image img {
  width: 100%;
  height: auto;
  max-height: 470px;
  object-fit: cover;
  object-position: center top;
  border-radius: 22px;
  border: 1px solid rgba(213, 227, 239, 0.85);
}

.service-page__hero-image picture {
  display: block;
}

.service-page__card {
  padding: 34px;
}

.service-page__card h2,
.service-page__panel h2,
.service-page__deliverables h2,
.service-page__section > .container > h2,
.service-page__final-cta h2 {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  text-transform: none;
  letter-spacing: -0.02em;
}

.service-page__card ul,
.service-page__deliverables ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
}

.service-page__card li,
.service-page__deliverables li {
  position: relative;
  margin: 0;
  padding-left: 30px;
  color: #476176;
}

.service-page__card li::before,
.service-page__deliverables li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-size: 0.72rem;
  font-weight: 800;
}

.service-page__section {
  padding: 78px 0;
}

.service-page__grid,
.service-page__benefits,
.service-page__process {
  display: grid;
  gap: 22px;
}

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

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

.service-page__process {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 26px;
}

.service-page__panel,
.service-page__benefit,
.service-page__process-step,
.service-page__deliverables,
.service-page__cta,
.service-page__final-cta .container {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(213, 227, 239, 0.95);
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 18px 34px rgba(19, 45, 71, 0.08);
}

.service-page__panel,
.service-page__benefit,
.service-page__process-step {
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.service-page__panel:hover,
.service-page__benefit:hover,
.service-page__process-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 44px rgba(19, 45, 71, 0.12);
  border-color: rgba(42, 163, 214, 0.34);
}

.service-page__panel p,
.service-page__benefit p,
.service-page__process-step p {
  margin-bottom: 0;
}

.service-page__benefit h3::before {
  content: "";
  display: block;
  width: 42px;
  height: 5px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), rgba(42, 163, 214, 0.18));
}

.service-page__process-step span {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 14px;
  color: #fff;
  font-family: "Montserrat", "Segoe UI", sans-serif;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 24px rgba(42, 163, 214, 0.22);
}

.service-page__faq {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.service-page__faq .faq__item {
  padding: 0;
  overflow: hidden;
}

.service-page__faq details {
  padding: 0;
}

.service-page__faq .faq__question {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  color: #17283a;
  font-weight: 800;
}

.service-page__faq .faq__question::after {
  content: "+";
  color: var(--accent-2);
  font-weight: 800;
}

.service-page__faq details[open] .faq__question::after {
  content: "−";
}

.service-page__faq .faq__answer {
  padding: 0 22px 22px;
  color: #526b80;
  line-height: 1.65;
}

.service-page__cta,
.service-page__final-cta .container {
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
  background:
    linear-gradient(135deg, rgba(34, 52, 70, 0.98), rgba(21, 73, 108, 0.98));
  color: #fff;
}

.service-page__cta h2,
.service-page__final-cta h2,
.service-page__cta p,
.service-page__final-cta p {
  color: #fff;
}

.service-page__links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.service-page__links a {
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 18px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--accent-2);
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(19, 45, 71, 0.06);
}

.service-page .footer-contact {
  margin: 6px 0 0;
}

.service-page .footer-contact a {
  color: #fff;
  font-weight: 800;
}

@media (max-width: 980px) {
  .service-page__header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .service-page__nav {
    justify-content: flex-start;
  }

  .service-page__hero-grid,
  .service-page__grid,
  .service-page__benefits,
  .service-page__process {
    grid-template-columns: 1fr;
  }

  .service-page__process {
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .service-page__hero {
    padding: 62px 0 58px;
  }

  .service-page__section {
    padding: 56px 0;
  }

  .service-page__nav {
    gap: 6px;
    font-size: 0.68rem;
  }

  .service-page__nav a {
    padding: 7px 8px;
  }

  .service-page__panel,
  .service-page__benefit,
  .service-page__process-step,
  .service-page__deliverables,
  .service-page__card,
  .service-page__cta,
  .service-page__final-cta .container {
    padding: 22px;
  }
}

/* Header de marca unificado: imagotipo oficial y navegación responsive. */
.brand,
.service-page__brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.brand__logo {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: contain;
  object-position: center;
}

.service-page__brand::before {
  display: none;
}

.service-page__brand .brand__logo {
  width: 64px;
  height: 64px;
}

.service-page__navigation {
  position: relative;
  margin-left: auto;
}

@media (max-width: 980px) {
  .service-page__header-inner {
    min-height: 72px;
    flex-direction: row;
    align-items: center;
    padding: 4px 0;
  }

  .service-page__navigation .nav__menu {
    right: 0;
    top: 58px;
    min-width: min(280px, calc(100vw - 32px));
  }
}

@media (max-width: 640px) {
  .brand__logo,
  .service-page__brand .brand__logo {
    width: 48px;
    height: 48px;
  }
}

/* V2.1: identidad y navegación compartidas en las diez rutas. */
.shared-header .nav-shell { min-height: 74px; gap: 24px; }
.header-brand { flex-direction: row; justify-content: flex-start; gap: 11px; min-width: 280px; text-decoration: none; }
.header-brand .brand__logo { width: 54px; height: 50px; flex: 0 0 auto; object-fit: contain; }
.brand__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; line-height: 1.1; }
.header-brand .brand__text { font-size: 0.86rem; white-space: nowrap; }
.header-brand .brand__subtitle { font-size: 0.62rem; white-space: nowrap; }
.header-nav { margin-left: auto; }
.shared-header .nav__menu { gap: 14px; font-size: 0.7rem; white-space: nowrap; }
.nav__services { position: relative; }
.nav__services summary { color: rgba(255,255,255,.9); font-weight: 600; cursor: pointer; list-style: none; }
.nav__services summary::-webkit-details-marker { display: none; }
.nav__services summary::after { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 0 3px 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform var(--transition); }
.nav__services[open] summary::after { transform: rotate(225deg) translate(-2px,-2px); }
.nav__services summary:hover, .nav__services summary:focus-visible { color: #fff; }
.nav__dropdown { position: absolute; top: calc(100% + 18px); left: 50%; z-index: 20; display: grid; width: 290px; padding: 10px; background: #fff; border: 1px solid rgba(15,55,89,.12); border-radius: 12px; box-shadow: 0 18px 45px rgba(3,19,33,.2); transform: translateX(-50%); }
.nav__dropdown a { padding: 10px 12px; color: #0f3759; border-radius: 8px; text-transform: none; letter-spacing: 0; font-size: .83rem; }
.nav__dropdown a:hover, .nav__dropdown a:focus-visible { color: #0f3759; background: #e9f7ff; }
.nav__close { display: none; }
.shared-header .nav__calendly { padding: 10px 13px; color: #0f3759; background: #fff; border-radius: 999px; box-shadow: 0 8px 18px rgba(0,0,0,.12); }
.shared-header .nav__calendly:hover, .shared-header .nav__calendly:focus-visible { color: #0f3759; background: #e9f7ff; }
@media (max-width: 1100px) {
  body.nav-open { overflow: hidden; }
  .shared-header .nav__toggle { display: inline-flex; flex-direction: column; }
  .shared-header .nav__menu { position: absolute; top: 58px; right: 0; z-index: 30; display: flex; width: min(360px,calc(100vw - 32px)); max-height: calc(100vh - 92px); padding: 18px; overflow-y: auto; flex-direction: column; align-items: stretch; gap: 4px; white-space: normal; }
  .shared-header .nav__menu > a, .nav__services summary { padding: 11px 12px; border-radius: 8px; }
  .nav__close { display: inline-flex; width: 38px; height: 38px; margin-left: auto; align-items: center; justify-content: center; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); border-radius: 50%; font-size: 1.55rem; cursor: pointer; }
  .nav__dropdown { position: static; width: 100%; margin: 2px 0 6px; transform: none; box-shadow: none; }
  .shared-header .nav__calendly { margin-top: 6px; text-align: center; }
}
@media (max-width: 640px) {
  .shared-header .nav-shell { min-height: 66px; gap: 12px; }
  .header-brand { min-width: 0; gap: 8px; }
  .header-brand .brand__logo { width: 44px; height: 41px; }
  .header-brand .brand__text { font-size: .74rem; letter-spacing: .07em; }
  .header-brand .brand__subtitle { display: none; }
}


/* V2.4: privacidad y robustez del formulario */
.form-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.lead-form__form[aria-busy="true"] {
  cursor: progress;
}

.form-consent a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-page__hero {
  padding-bottom: 48px;
}

.legal-page__container {
  max-width: 900px;
}

.legal-page__updated {
  margin-top: 20px;
}

.legal-page__content {
  display: grid;
  gap: 32px;
}

.legal-page__content section {
  scroll-margin-top: 120px;
}

.legal-page__content h2 {
  margin-bottom: 10px;
  color: var(--color-primary, #0f3759);
}

.legal-page__content p {
  max-width: 78ch;
}

@media (max-width: 760px) {
  .legal-page__hero {
    padding-bottom: 32px;
  }

  .legal-page__content {
    gap: 26px;
  }
}
