:root {
  --primary: #0d6efd;
  --primary-dark: #0a58ca;
  --gray-100: #f5f6f8;
  --gray-600: #6c757d;
  --gray-800: #2f3237;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  scroll-padding-top: 90px;
}

body {
  background-color: #fff;
  color: var(--gray-800);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.form-control,
.form-select {
  border: 1px solid #e1e6ee;
  border-radius: 10px;
  background-color: #fff;
  font-size: 0.95rem;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(13, 110, 253, 0.35);
  box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.12);
}

.phone-group .country-select {
  max-width: 120px;
  border-radius: 10px 0 0 10px;
}

.phone-group .input-group-text {
  border: 1px solid #e1e6ee;
  border-right: 0;
  border-radius: 10px 0 0 10px;
  background: #fff;
  color: var(--gray-800);
  padding: 0 12px;
  min-width: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.phone-group .form-control {
  border-radius: 0 10px 10px 0;
}

.recaptcha-box {
  border: 1px solid #d8dde6;
  background: #f7f8fb;
  border-radius: 12px;
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
}

a {
  text-decoration: none;
}

.navbar-brand .logo-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), #5ea6ff);
  display: inline-block;
}

.navbar-nav .nav-link {
  font-size: 1rem;
  font-weight: 600;
  color: #e9f3ff;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: #ffffff;
}

.social-icon {
  color: #fff;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
}

.social-icon:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.45);
}

.hero {
  min-height: 100vh;
  background:
    linear-gradient(115deg, rgba(8, 47, 107, 0.72) 0%, rgba(13, 110, 253, 0.35) 40%, rgba(255, 255, 255, 0.25) 100%),
    url("https://images.unsplash.com/photo-1504151932400-72d4384f04b3?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-top: 4rem;
  padding-bottom: 3.5rem;
  position: relative;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(5, 24, 55, 0.78) 0%, rgba(6, 55, 130, 0.65) 45%, rgba(13, 110, 253, 0.35) 100%);
  z-index: 0;
}

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

.card {
  border-radius: 14px;
}

.bg-company{
  background-color: #08160D;
  color: #fff;
}

.btn.bg-company {
  background-color: #08160D;
  color: #fff;
  border-color: #08160D;
}

.btn.bg-company:hover,
.btn.bg-company:focus {
  background-color: #fff;
  color: #000 !important;
  border-color: #08160D;
}

.btn-outline-primary.bg-company {
  background-color: #fff;
  color: #08160D;
  border-color: #08160D;
}

.btn-outline-primary.bg-company:hover,
.btn-outline-primary.bg-company:focus {
  background-color: #08160D;
  color: #fff;
  border-color: #08160D;
}

.icon-circle {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #08160D;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

#formulario .form-control {
  border-radius: 10px;
}

#formulario .btn {
  border-radius: 10px;
}

.hero h1,
.hero .lead,
.hero .text-secondary,
.hero .list-unstyled li,
.hero .list-unstyled i {
  color: #e9f3ff !important;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.hero .badge {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #e9f3ff !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero .btn-outline-primary {
  color: #e9f3ff;
  border-color: rgba(255, 255, 255, 0.65);
}

.hero .btn-outline-primary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #e9f3ff;
  color: #fff;
}

.glass-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(13, 110, 253, 0.08);
  backdrop-filter: blur(8px);
}

.card-img-top {
  height: 160px;
  object-fit: cover;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}

.step-card {
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: 12px;
  padding: 1.2rem;
  box-shadow: 0 10px 30px rgba(13, 110, 253, 0.06);
  height: 100%;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

/* How it works timeline */
.how-it-works {
  background: #f8fafc;
}

.hiw-timeline {
  position: relative;
  gap: 1rem;
}

.hiw-step {
  position: relative;
  flex: 1;
  text-align: center;
  min-width: 240px;
}

.hiw-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 36px;
  right: -59%;
  width: 100%;
  height: 2px;
  background: #dfe3ea;
  z-index: 0;
  display: none;
}

@media (min-width: 992px) {
  .hiw-step:not(:last-child)::after {
    display: block;
  }
}

.hiw-node {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: 3px solid rgba(13, 110, 253, 0.25);
  background: linear-gradient(180deg, #ffffff 0%, #f4f6fb 100%);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #1b2c55;
  font-size: 1.25rem;
  margin: 0 auto 1rem;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.1);
}

.hiw-card {
  border-radius: 16px;
  background: #eef2f7;
}

.hiw-card h3 {
  color: #1b2c55;
}

.hiw-card p {
  line-height: 1.55;
}

/* Why choose section */
.why-section {
  background: #ffffff;
}

.why-card {
  border-radius: 18px;
  padding: 2rem;
  background: #f9fbff;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  border: 1px solid #e7ecf5;
  text-align: center;
  height: 100%;
}

.why-card h3 {
  color: #1b2c55;
  margin-bottom: 0.75rem;
}

.why-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin: 0 auto 1rem;
  font-size: 1.25rem;
  color: #f05a63;
  background: #ffecee;
}

.why-icon.list {
  color: #f48c06;
  background: #fff5e6;
}

.why-icon.handshake {
  color: #20a36c;
  background: #e6f7f0;
}

.logos-section {
  background: #f8fafc;
}

.logo-card {
  background: #fff;
  border-radius: 14px;
  padding: 1rem 1.5rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  border: 1px solid #e5e9f0;
  display: grid;
  place-items: center;
  min-width: 180px;
  min-height: 90px;
}

.logo-card img {
  max-height: 60px;
  width: auto;
  object-fit: contain;
}

.contact-section {
  background: #ffffff;
}

.contact-card {
  border-radius: 16px;
  background: #f9fbff;
  border: 1px solid #e7ecf5;
}

.contact-card .form-control {
  border-radius: 10px;
}

.contact-card .btn {
  border-radius: 10px;
}

.featured-section {
  background: #f8fafc;
}

.featured-card {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e5e9f0;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  height: 100%;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.12);
}

.featured-media {
  position: relative;
  padding-top: 58%;
  background-size: cover;
  background-position: center;
}

.featured-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  backdrop-filter: blur(6px);
}

.featured-tag.video {
  background: linear-gradient(120deg, #1f7dff, #4da3ff);
}

.featured-tag.article {
  background: linear-gradient(120deg, #16a05d, #39c07a);
}

.featured-tag.video {
  background: linear-gradient(120deg, #ed320d, #ff0101);
}

  .featured-tag.link-externo {
    background: linear-gradient(120deg, #1f7dff, #4da3ff);
  }


.featured-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.2rem 1.2rem 1.35rem;
}

.featured-meta {
  color: #6c7788;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.featured-title {
  color: #0f172a;
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.featured-text {
  color: #505a68;
  margin: 0;
}

.featured-actions {
  margin-top: auto;
  padding-top: 0.75rem;
}

.faq-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e5e9f0;
  padding: 1.5rem;
}

.faq-header .badge {
  letter-spacing: 0.02em;
}

.faq-accordion .accordion-item {
  border: none;
  border-bottom: 1px solid #eef1f6;
}

.faq-accordion .accordion-item:last-child {
  border-bottom: none;
}

.faq-accordion .accordion-button {
  background: transparent;
  box-shadow: none;
  font-weight: 600;
  color: #0f172a;
  padding-left: 0;
  padding-right: 0;
}

.faq-accordion .accordion-button:not(.collapsed) {
  color: var(--primary-dark);
  background: transparent;
}

.faq-accordion .accordion-body {
  padding-left: 0;
  padding-right: 0;
  color: #546072;
}

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

.clinic-benefits .icon-circle.soft-success {
  background: #e6f7ee;
  color: #1f9a5d;
}

.clinic-benefits .text-secondary {
  color: #3a3f47;
  font-size: 1rem;
}

.clinic-logo-card {
  background: #fff;
  border: 1px solid #e5e9f0;
  border-radius: 20px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
  padding: 2.2rem 2.5rem;
  display: grid;
  place-items: center;
  min-height: 260px;
}

.clinic-logo-card img {
  max-height: 200px;
  max-width: 200px;
  width: auto;
  object-fit: contain;
}

.clinic-control {
  filter: invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0.45) contrast(100%);
}

.clinic-control:hover {
  filter: invert(27%) sepia(93%) saturate(1753%) hue-rotate(202deg) brightness(98%) contrast(95%);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(36%) sepia(98%) saturate(1912%) hue-rotate(201deg) brightness(95%) contrast(95%);
  width: 2.4rem;
  height: 2.4rem;
}

.carousel-control-prev,
.carousel-control-next {
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
}

@media (max-width: 991px) {
  .hiw-timeline {
    align-items: stretch;
    gap: 2rem;
  }

  .hiw-step:not(:last-child)::after {
    display: block;
    width: 2px;
    height: 48px;
    top: auto;
    right: 50%;
    bottom: -40px;
  }

  .hiw-card {
    width: 100%;
  }

  .hiw-step {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .why-card {
    padding: 1.6rem;
  }

  .logo-card {
    min-width: 150px;
    padding: 0.9rem 1.2rem;
  }
}

@media (max-width: 575px) {
  .why-card {
    padding: 1.4rem;
  }

  .logo-card img {
    max-height: 50px;
  }

  /* Solo 2 logos por slide en mobile */
  #logoCarousel .carousel-item .logo-card:nth-of-type(n + 3) {
    display: none;
  }

  .logo-card {
    min-width: 140px;
    min-height: 80px;
    padding: 0.75rem 1rem;
  }
}

.accordion-button:not(.collapsed) {
  color: var(--primary-dark);
  background-color: rgba(13, 110, 253, 0.08);
}

.accordion-button:focus {
  box-shadow: none;
  border-color: rgba(13, 110, 253, 0.3);
}

.single-hero {
  position: relative;
  min-height: 500px;
  background-size: cover;
  background-position: center;
  color: #fff;
  display: flex;
  align-items: flex-end;
  padding: 5rem 0 3.5rem;
  isolation: isolate;
}

.single-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 22, 13, 0.6) 0%, rgba(8, 22, 13, 0.35) 100%);
  z-index: 0;
}

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

.single-hero .meta {
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.02em;
}

.single-article {
  background: #f8fafc;
}

.single-article-card {
  border-radius: 16px;
  border: 1px solid #e5e9f0;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.single-article-card .content p {
  color: #42506b;
  margin-bottom: 1.25rem;
}

.single-article-card .content h2,
.single-article-card .content h3,
.single-article-card .content h4 {
  color: #0f172a;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.single-article-card .content ul,
.single-article-card .content ol {
  padding-left: 1.1rem;
  color: #42506b;
}

.single-embed {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 78px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  z-index: 1050;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
  color: #fff;
  opacity: 0.95;
}

footer {
  font-size: 0.95rem;
}

@media (max-width: 991px) {
  .hero {
    padding-top: 5.5rem;
  }

  header .navbar-nav .nav-link {
    padding-left: 0;
  }
}

@media (max-width: 575px) {
  .hero {
    padding-top: 5rem;
  }

  .display-5 {
    font-size: 2rem;
  }

  .card-body {
    padding: 1.25rem;
  }
}
