:root {
  --brand-900: #0b1f3a;
  --brand-700: #164a8a;
  --brand-500: #1f66c1;
  --brand-100: #e8f1ff;
  --accent: #1cb5a3;
  --surface: #f1f6fd;
  --surface-2: #f7faff;
  --site-shadow-sm: 0 8px 26px rgba(11, 31, 58, 0.08);
  --site-shadow-md: 0 16px 40px rgba(11, 31, 58, 0.13);
}

body {
  font-family: "Manrope", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #122033;
  background:
    radial-gradient(circle at 3% 12%, rgba(31, 102, 193, 0.1), transparent 28%),
    radial-gradient(circle at 96% 8%, rgba(28, 181, 163, 0.09), transparent 24%),
    var(--surface);
  text-rendering: optimizeLegibility;
}

.topbar {
  background: linear-gradient(90deg, #0d2a50, #16437d);
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.navbar-shell {
  backdrop-filter: blur(8px);
  background-color: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(11, 31, 58, 0.08);
  box-shadow: 0 10px 24px rgba(11, 31, 58, 0.05);
}

.navbar-shell .nav-link {
  border-radius: 0.6rem;
  font-weight: 600;
  color: #203a5a;
  transition: background-color 0.22s ease, color 0.22s ease;
}

.navbar-shell .nav-link:hover {
  color: var(--brand-700);
  background-color: #ecf4ff;
}

.floating-social {
  position: fixed;
  right: 1rem;
  top: 52%;
  transform: translateY(-50%);
  z-index: 2000;
  background: linear-gradient(180deg, var(--brand-500), var(--brand-700));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.85rem;
  padding: 0.7rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  box-shadow: 0 14px 32px rgba(11, 31, 58, 0.28);
}

.floating-social::before {
  content: "";
  position: absolute;
  right: -18px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(22, 74, 138, 0.35);
  z-index: -1;
}

.floating-social a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  background: #ffffff;
  color: var(--brand-700);
  text-decoration: none;
  font-size: 1.24rem;
  box-shadow: 0 4px 10px rgba(11, 31, 58, 0.18);
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.floating-social a:hover,
.floating-social a:focus {
  background: var(--brand-100);
  color: var(--brand-900);
  box-shadow: 0 7px 16px rgba(11, 31, 58, 0.22);
  transform: scale(1.06);
}

.brand-mark {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 12px;
  display: grid;
  place-content: center;
  background: linear-gradient(140deg, var(--brand-700), var(--accent));
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
}

.hero {
  background: radial-gradient(circle at 15% 25%, rgba(28, 181, 163, 0.2), transparent 35%),
    radial-gradient(circle at 85% 15%, rgba(31, 102, 193, 0.2), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #edf4ff 100%);
}

.hero-carousel {
  position: relative;
}

.hero-carousel .carousel-inner {
  border-radius: 1rem;
}

.hero-carousel .carousel-item {
  padding: 0.25rem 3.2rem 0.4rem;
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
  width: 2.5rem;
  height: 2.5rem;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 999px;
  background: rgba(14, 50, 95, 0.76);
  opacity: 0.9;
}

.hero-carousel .carousel-control-prev {
  left: 0.15rem;
}

.hero-carousel .carousel-control-next {
  right: 0.15rem;
}

.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
  width: 1.15rem;
  height: 1.15rem;
}

.hero-carousel .carousel-indicators {
  margin-bottom: -1.8rem;
}

.hero-carousel .carousel-indicators button {
  width: 0.56rem;
  height: 0.56rem;
  border-radius: 50%;
  border: 0;
  background-color: rgba(31, 84, 157, 0.35);
}

.hero-carousel .carousel-indicators button.active {
  background-color: #1f62be;
}

.hero-card {
  border: 1px solid rgba(22, 74, 138, 0.1);
  box-shadow: var(--site-shadow-md);
}

.hero-visual {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(18, 32, 51, 0.12);
  box-shadow: var(--site-shadow-sm);
  background: #f1f6ff;
}

.hero-visual-image {
  display: block;
  width: 100%;
  height: 230px;
  object-fit: cover;
  object-position: center;
}

.stat-card {
  border: 1px solid rgba(18, 32, 51, 0.1);
  border-radius: 1rem;
  background: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 34px rgba(11, 31, 58, 0.15);
}

.section-title {
  color: var(--brand-900);
  letter-spacing: -0.02em;
}

.service-card,
.team-card,
.plan-card,
.contact-card {
  border: 1px solid rgba(18, 32, 51, 0.1);
  border-radius: 1rem;
  background: #fff;
  box-shadow: var(--site-shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.service-card {
  overflow: hidden;
}

.service-card:hover,
.team-card:hover,
.plan-card:hover,
.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(11, 31, 58, 0.12);
}

.service-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  display: grid;
  place-content: center;
  font-size: 1.1rem;
  color: var(--brand-700);
  background-color: var(--brand-100);
}

.service-image {
  width: 100%;
  height: 140px;
  max-height: 140px;
  border-radius: 0.85rem;
  border: 1px solid rgba(18, 32, 51, 0.1);
  object-fit: cover;
  object-position: center;
  background: #eef4ff;
  box-shadow: 0 6px 16px rgba(18, 32, 51, 0.09);
}

.team-avatar {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  background: linear-gradient(140deg, #dbe9ff, #c5dcff);
  display: grid;
  place-content: center;
  font-weight: 800;
  color: var(--brand-700);
}

.team-photo {
  width: 100%;
  height: 260px;
  border-radius: 0.9rem;
  object-fit: contain;
  object-position: center;
  border: 0;
  box-shadow: none;
  display: block;
  background: #f3f7ff;
}

.team-photo-frame {
  position: relative;
  width: 100%;
  border-radius: 0.9rem;
  overflow: hidden;
  border: 2px solid #d7e6ff;
  box-shadow: 0 8px 18px rgba(16, 52, 98, 0.16);
  background: #f3f7ff;
}

.team-photo-frame .team-photo {
  border: 0;
  box-shadow: none;
}

.plan-feature {
  color: #26415f;
  font-size: 0.95rem;
}

.plan-price-meta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.plan-old-price {
  color: #6b7b91;
  text-decoration: line-through;
  font-weight: 700;
  font-size: 1rem;
}

.plan-discount {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #e7f7ef;
  color: #127a4a;
  border: 1px solid #bfe8d3;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 0.18rem 0.55rem;
}

.plan-highlight {
  border: 2px solid var(--brand-500);
  position: relative;
}

.plan-highlight:not(.plan-has-badge)::before {
  content: "Mas elegido";
  position: absolute;
  right: 1rem;
  top: 1rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: #0b3a77;
  background: #dbeaff;
  border: 1px solid #bfdbff;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}

.cta-band {
  background: linear-gradient(140deg, #0f2b52, #1d5ba9);
}

.contact-panel {
  border: 1px solid rgba(18, 32, 51, 0.12);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 14px 32px rgba(11, 31, 58, 0.12);
}

.contact-panel .form-control,
.contact-panel .form-select {
  border-color: #d7e4f4;
  border-radius: 0.65rem;
  min-height: 2.65rem;
}

.contact-panel .form-control:focus,
.contact-panel .form-select:focus {
  border-color: #78a8e7;
  box-shadow: 0 0 0 0.2rem rgba(31, 102, 193, 0.14);
}

.btn-primary {
  background: linear-gradient(140deg, #1f66c1, #1953a0);
  border-color: transparent;
  box-shadow: 0 10px 20px rgba(20, 74, 145, 0.24);
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(140deg, #1a58a8, #15478b);
  border-color: transparent;
}

.btn-outline-primary {
  color: #1a4d96;
  border-color: #8bb5ed;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: #e8f1ff;
  color: #133f7a;
  border-color: #5d98e2;
}

.footer-shell {
  background: #09192e;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.place-content-center {
  place-content: center;
}

@media (max-width: 767.98px) {
  .floating-social {
    right: 0.5rem;
    padding: 0.58rem 0.42rem;
    gap: 0.52rem;
  }

  .floating-social a {
    width: 38px;
    height: 38px;
    font-size: 1.05rem;
  }

  .floating-social::before {
    width: 28px;
    height: 28px;
    right: -15px;
  }

  .service-image {
    height: 110px;
    max-height: 110px;
  }

  .team-photo {
    height: 220px;
  }


  .hero-carousel .carousel-item {
    padding: 0.2rem 0.35rem 0.5rem;
  }

  .hero-visual-image {
    height: 170px;
  }

  .hero-carousel .carousel-control-prev,
  .hero-carousel .carousel-control-next {
    display: none;
  }

  .hero-carousel .carousel-indicators {
    margin-bottom: -1.25rem;
  }

  .plan-highlight:not(.plan-has-badge)::before {
    right: 0.75rem;
    top: 0.75rem;
  }
}

@media (min-width: 992px) {
  .py-lg-6 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
  }
}
