:root {
  --brand-blue: #0f4da0;
  --brand-blue-dark: #0a2f62;
  --brand-blue-soft: #eaf2ff;
  --brand-red: #ed1c24;
  --brand-red-dark: #c1272d;
  --brand-white: #ffffff;
  --brand-text: #18314f;
  --brand-muted: #607089;
  --brand-shadow: 0 20px 45px rgba(15, 77, 160, 0.12);
  --radius-lg: 1.75rem;
  --radius-md: 1rem;
  --transition-base: all 0.3s ease;
}

/* Base */
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--brand-text);
  background:
    linear-gradient(180deg, #f7faff 0%, #ffffff 28%, #ffffff 100%);
}

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

a {
  text-decoration: none;
  transition: var(--transition-base);
}

.section-space {
  padding: 5rem 0;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 0.85rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  color: var(--brand-red);
}

.section-kicker-light {
  color: #b8d1ff;
}

.section-heading {
  max-width: 42rem;
  margin-bottom: 2.5rem;
}

.section-title {
  margin-bottom: 0;
  font-size: clamp(2rem, 3vw, 2.85rem);
  font-weight: 900;
  letter-spacing: 0.03em;
}

.topbar {
  background: linear-gradient(90deg, var(--brand-blue-dark), var(--brand-blue));
}

.topbar-link {
  color: var(--brand-white);
  font-size: 0.92rem;
  font-weight: 700;
}

.topbar-link:hover {
  color: #dbe8ff;
}

.main-navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px rgba(9, 34, 67, 0.06);
}

.brand-logo,
.footer-logo {
  width: auto;
  height: 56px;
  object-fit: contain;
}

.navbar-toggler-icon {
  background-image: var(--bs-navbar-toggler-icon-bg);
}

.nav-link {
  color: var(--brand-blue-dark);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-red);
}

.btn-brand-red {
  padding: 0.9rem 1.6rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-red-dark));
  color: var(--brand-white);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 14px 30px rgba(237, 28, 36, 0.25);
}

.btn-brand-red:hover {
  color: var(--brand-white);
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(237, 28, 36, 0.34);
}

/* Hero */
.hero-section {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0 4.5rem;
}

.hero-section::before,
.hero-section::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.hero-section::before {
  top: -7rem;
  right: -5rem;
  width: 28rem;
  height: 28rem;
  background: radial-gradient(circle, rgba(15, 77, 160, 0.18) 0%, rgba(15, 77, 160, 0) 68%);
}

.hero-section::after {
  bottom: 1rem;
  left: -3rem;
  width: 9rem;
  height: 9rem;
  border: 8px solid rgba(15, 77, 160, 0.14);
  border-radius: 50%;
}

.hero-title {
  position: relative;
  z-index: 1;
  margin-bottom: 1rem;
  font-size: clamp(2.9rem, 8vw, 5.5rem);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: 0.03em;
  color: var(--brand-blue-dark);
}

.hero-text {
  position: relative;
  z-index: 1;
  max-width: 34rem;
  margin-bottom: 2rem;
  font-size: 1.1rem;
  color: var(--brand-muted);
}

.hero-btn {
  position: relative;
  z-index: 1;
}

.hero-visual {
  position: relative;
  z-index: 1;
  padding: 1.25rem 0 1.25rem 1.25rem;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%);
  clip-path: polygon(17% 0, 100% 0, 100% 86%, 82% 100%, 0 100%, 0 14%);
  border-radius: var(--radius-lg);
}

.hero-visual::after {
  content: "";
  position: absolute;
  top: -0.7rem;
  right: 1rem;
  width: 4rem;
  height: 4rem;
  background: repeating-linear-gradient(
    90deg,
    var(--brand-red) 0,
    var(--brand-red) 6px,
    transparent 6px,
    transparent 12px
  );
}

.hero-frame {
  position: relative;
  border-radius: calc(var(--radius-lg) - 0.4rem);
  overflow: hidden;
  box-shadow: var(--brand-shadow);
}

.hero-image {
  width: 70%;
  min-height: 320px;
  object-fit: cover;
  background: linear-gradient(135deg, #dde9ff, #f7faff);
}

/* Tarjetas */
.benefits-section {
  position: relative;
}

.benefit-card,
.process-card,
.product-card {
  position: relative;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--brand-white);
  box-shadow: var(--brand-shadow);
  transition: var(--transition-base);
}

.benefit-card {
  padding: 2rem;
  overflow: hidden;
}

.benefit-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 4.5rem;
  height: 4.5rem;
  background: linear-gradient(135deg, transparent 0%, transparent 50%, rgba(237, 28, 36, 0.12) 50%, rgba(237, 28, 36, 0.12) 100%);
}

.benefit-card:hover,
.process-card:hover,
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(15, 77, 160, 0.18);
}

.benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: var(--brand-blue-soft);
  color: var(--brand-blue);
  font-weight: 900;
}

.benefit-title,
.process-title,
.product-title,
.footer-title {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.benefit-text,
.process-text,
.product-text,
.footer-text {
  color: var(--brand-muted);
}

.products-section {
  background:
    linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
}

.product-card {
  overflow: hidden;
}

.product-image {
  height: 220px;
  object-fit: cover;
  background: linear-gradient(135deg, #d9e7ff, #f9fbff);
}

.product-card .card-body {
  padding: 1.4rem;
}

/* CTA y footer */
.process-section {
  position: relative;
}

.process-section::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 11rem;
  background: linear-gradient(135deg, rgba(15, 77, 160, 0.06), rgba(237, 28, 36, 0.03));
  clip-path: polygon(0 30%, 100% 0, 100% 100%, 0 100%);
}

.process-card {
  padding: 2rem;
  height: 100%;
  border-top: 4px solid var(--brand-blue);
}

.process-number {
  display: block;
  margin-bottom: 1rem;
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--brand-red);
  line-height: 1;
}

.cta-section {
  padding-top: 1rem;
  padding-bottom: 5rem;
}

.cta-panel {
  position: relative;
  overflow: hidden;
  padding: 3rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--brand-blue-dark), var(--brand-blue));
  box-shadow: 0 28px 60px rgba(10, 47, 98, 0.28);
}

.cta-panel::before,
.cta-panel::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.cta-panel::before {
  top: -2.5rem;
  right: -2rem;
  width: 10rem;
  height: 10rem;
  border: 10px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.cta-panel::after {
  bottom: 1.2rem;
  left: 1.2rem;
  width: 5rem;
  height: 0.75rem;
  background: repeating-linear-gradient(
    90deg,
    rgba(237, 28, 36, 0.95) 0,
    rgba(237, 28, 36, 0.95) 8px,
    transparent 8px,
    transparent 16px
  );
}

.cta-title {
  margin-bottom: 0.8rem;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--brand-white);
}

.cta-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
}

.cta-button {
  min-width: 220px;
}

.footer-pila {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 2rem 0 1.5rem;
  background: var(--brand-white);
  color: #315bb8;
}

.footer-pila .container {
  max-width: 1500px;
  padding-left: 2rem;
  padding-right: 2rem;
}

.footer-content {
  position: relative;
  z-index: 2;
  align-items: flex-start;
}

.footer-column {
  position: relative;
}

.footer-column-left {
  max-width: 41rem;
}

.footer-column-right {
  max-width: 33rem;
  margin-left: auto;
  padding-top: 2.6rem;
}

.footer-logo {
  height: 94px;
  margin-bottom: 1.25rem;
}

.footer-copy {
  position: relative;
  z-index: 2;
}

.footer-heading,
.footer-subheading,
.footer-line {
  margin-bottom: 0.2rem;
  color: #315bb8;
}

.footer-heading {
  font-size: clamp(1.35rem, 2.1vw, 1.65rem);
  font-weight: 500;
  line-height: 1.28;
}

.footer-subheading {
  margin-bottom: 0.15rem;
  font-size: clamp(1.25rem, 1.95vw, 1.55rem);
  font-weight: 500;
  color: #315bb8;
}

.footer-line {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.32;
  font-weight: 500;
}

.footer-strong {
  font-weight: 500;
}

.footer-contact-space {
  margin-top: 1.7rem;
}

.footer-copy a {
  color: #315bb8;
  font-weight: 500;
}

.footer-copy a:hover {
  color: var(--brand-red);
}

.footer-icons {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
}

.footer-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.8rem;
  height: 4.8rem;
  color: #3158c2;
  transition: var(--transition-base);
}

.footer-icon-link:hover {
  color: var(--brand-red);
  transform: translateY(-2px);
}

.footer-icon-link svg {
  width: 2rem;
  height: 2rem;
  fill: currentColor;
}

.footer-decoration-blue {
  position: absolute;
  right: -10rem;
  bottom: -10rem;
  z-index: 1;
  width: 22rem;
  height: 22rem;
  border: 4.2rem solid #3158c2;
  border-radius: 50%;
  opacity: 1;
}

@media (max-width: 991.98px) {
  .main-navbar .navbar-collapse {
    padding-top: 1rem;
  }

  .main-navbar .nav-link,
  .nav-cta {
    text-align: center;
  }

  .hero-section {
    padding-top: 4rem;
  }

  .hero-visual {
    padding-left: 0;
  }

  .cta-panel {
    padding: 2.2rem;
  }

  .footer-column-right {
    margin-left: 0;
    padding-top: 0;
  }

  .footer-decoration-blue {
    width: 16rem;
    height: 16rem;
    right: -7rem;
    bottom: -7rem;
    border-width: 3rem;
  }
}

@media (max-width: 767.98px) {
  .section-space {
    padding: 4rem 0;
  }

  .brand-logo,
  .footer-logo {
    height: 48px;
  }

  .hero-image {
    min-height: 260px;
  }

  .product-image {
    height: 200px;
  }

  .footer-pila {
    padding: 1.5rem 0 2rem;
  }

  .footer-pila .container {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }

  .footer-heading {
    font-size: 1.2rem;
  }

  .footer-subheading {
    font-size: 1.1rem;
  }

  .footer-line {
    font-size: 1rem;
  }

  .footer-icons {
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .footer-icon-link {
    width: 3.6rem;
    height: 3.6rem;
  }

  .footer-icon-link svg {
    width: 2.8rem;
    height: 2.8rem;
  }

  .footer-decoration-blue {
    width: 11rem;
    height: 11rem;
    right: -5rem;
    bottom: -5rem;
    border-width: 2.2rem;
  }
}
