/* ===========================
   CSS Variables
   =========================== */
:root {
  --base-color: #1B3070;
  --accent-color: #5B9CD4;
  --green-color: #3DB876;
  --cta-blue: #163069;
  --light-bg: #EBF4FD;
  --text-dark: #1a202c;
  --text-muted: #718096;
  --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --border-radius-card: 16px;
}

/* ===========================
   Global
   =========================== */
body {
  font-family: "Inter", sans-serif;
  color: var(--text-dark);
  font-size: 15px;
  overflow-x: hidden;
}

/* ===========================
   Utility Colors
   =========================== */
.text-base-color { color: var(--base-color); }
.text-accent     { color: var(--accent-color); }
.text-green      { color: var(--green-color); }
.bg-light-blue   { background-color: var(--light-bg); }

/* ===========================
   Section Tags & Titles
   =========================== */
.section-tag {
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: 40px;
  font-weight: 800;
  color: var(--base-color);
  line-height: 1.15;
}

@media (max-width: 991px) { .section-title { font-size: 32px; } }
@media (max-width: 575px) { .section-title { font-size: 26px; } }

/* ===========================
   Buttons
   =========================== */
.btn-green {
  background-color: var(--green-color);
  color: #fff;
  border: none;
  font-weight: 600;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.btn-green:hover {
  background-color: #2faa6a;
  color: #fff;
  transform: translateY(-2px);
}

.btn-extra-large {
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 8px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.btn-extra-large:hover { transform: translateY(-2px); }

/* ===========================
   Navbar
   =========================== */
.site-navbar {
  background-color: transparent;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-navbar.scrolled {
  background-color: #fff;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.07);
}

.navbar-logo { height: 80px; }

@media (max-width: 575px) { .navbar-logo { height: 64px; } }

.nav-link-item {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  position: relative;
  transition: color 0.25s ease;
  white-space: nowrap;
}

.nav-link-item::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--base-color);
  transition: width 0.25s ease;
}

.nav-link-item:hover { color: var(--base-color); }
.nav-link-item:hover::after { width: 100%; }

/* Links oscuros cuando el nav está scrolled */
.site-navbar.scrolled .nav-link-item { color: #1a1a2e; }
.site-navbar.scrolled .nav-link-item:hover { color: var(--base-color); }

/* Mobile menu */
.nav-mobile-list {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.site-navbar.scrolled .nav-mobile-list {
  border-top-color: rgba(0, 0, 0, 0.08);
}

.nav-mobile-list .nav-link-item {
  font-size: 16px;
  color: #fff;
}

.site-navbar.scrolled .nav-mobile-list .nav-link-item {
  color: #1a1a2e;
}

/* Hamburger icon */
.nav-hamburger { line-height: 1; cursor: pointer; }
.nav-hamburger .fa-bars { color: #fff; transition: color 0.25s ease; }
.site-navbar.scrolled .nav-hamburger .fa-bars { color: #1a1a2e; }

/* Nav siempre blanco en mobile / tablet */
@media (max-width: 991.98px) {
  .site-navbar {
    background-color: #fff;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.07);
  }
  .nav-hamburger .fa-bars { color: #1a1a2e; }
  .nav-mobile-list { border-top-color: rgba(0, 0, 0, 0.08); }
  .nav-mobile-list .nav-link-item { color: #1a1a2e; }
}

/* ===========================
   Hero
   =========================== */
.hero-section {
  background-image: url('../images/bg-hero.jpg');
  background-size: cover;
  background-position: right center;
  padding-top: 110px;
  padding-bottom: 60px;
  min-height: 90vh;
}

@media (max-width: 767px) {
  .hero-section {
    background-image: url('../images/bg-hero-mobile.jpg');
    background-position: top center;
    min-height: 100vh;
    padding-top: 90px;
  }
}

.hero-content-col {
  padding-top: 40px;
  padding-bottom: 40px;
}

.hero-title {
  font-size: 46px;
  font-weight: 800;
  color: var(--base-color);
  line-height: 1.1;
  margin-bottom: 8px;
}

.hero-subtitle {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent-color);
  line-height: 1.3;
  margin-bottom: 16px;
}

.hero-desc {
  font-size: 16px;
  color: #4a5568;
  margin-bottom: 28px;
  max-width: 500px;
}

@media (max-width: 991px) {
  .hero-title    { font-size: 34px; }
  .hero-subtitle { font-size: 20px; }
  .hero-desc     { max-width: 100%; }
}

@media (max-width: 575px) {
  .hero-title    { font-size: 28px; }
  .hero-subtitle { font-size: 18px; }
}

.hero-img-col {
  display: flex;
  align-items: flex-end;
}

.hero-img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  object-position: top center;
  border-radius: 16px 16px 0 0;
}

@media (max-width: 991px) {
  .hero-img { max-height: 380px; border-radius: 12px; margin-top: 24px; }
}

.trust-link {
  font-size: 14px;
  color: #4a5568;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  transition: color 0.2s;
}
.trust-link:hover { color: var(--accent-color); }

/* ===========================
   Credential Bar
   =========================== */
.credential-bar {
  background: #fff;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.credential-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 36px 24px;
  border-right: 1px solid #e2e8f0;
  cursor: default;
}

.credential-item:last-child {
  border-right: none;
}

.credential-icon {
  color: var(--accent-color);
  font-size: 36px;
  margin-bottom: 14px;
  display: block;
  transition: transform 0.3s ease;
}

.credential-item:hover .credential-icon {
  transform: scale(1.3);
}

.credential-item span {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.5;
}

/* Tablet: 2 columnas */
@media (max-width: 991.98px) and (min-width: 576px) {
  .credential-item:nth-child(2n)     { border-right: none; }
  .credential-item:nth-child(-n+2)   { border-bottom: 1px solid #e2e8f0; }
}

/* Mobile: 1 columna */
@media (max-width: 575.98px) {
  .credential-item {
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
  }
  .credential-item:last-child {
    border-bottom: none;
  }
}

/* ===========================
   Section 2 – Te identificas
   =========================== */
.identificas-section {
  background-size: cover;
  background-position: center;
  padding: 80px 0;
}

.identificas-card {
  background: #fff;
  border-radius: var(--border-radius-card);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  height: 100%;
  transition: transform 0.3s ease;
}
.identificas-card:hover { transform: translateY(-5px); }

.identificas-card .card-top-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card-body-inner { padding: 20px; }

.card-icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  font-size: 18px;
  margin-bottom: 12px;
}

.identificas-card.card-featured {
  background-color: var(--accent-color);
  color: #fff;
}
.identificas-card.card-featured .card-icon-circle {
  background-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}
.identificas-card.card-featured h5,
.identificas-card.card-featured p { color: #fff; }

/* ===========================
   Section 3 – Soluciones
   =========================== */
.soluciones-section {
  background-size: cover;
  background-position: center;
  padding: 80px 0;
}

.services-swiper { padding-bottom: 50px !important; }

.service-card {
  background: #fff;
  border-radius: var(--border-radius-card);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  height: 100%;
  transition: transform 0.3s ease;
}
.service-card:hover { transform: translateY(-5px); }

.service-card .service-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-card .service-body { padding: 20px; }

.service-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  font-size: 20px;
  margin-bottom: 12px;
}

/* ===========================
   Section 4 – Doctor
   =========================== */
.doctor-section {
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.doctor-photo-col {
  padding: 0;
}

.doctor-photo {
  width: 100%;
  height: 100%;
  min-height: 540px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

@media (max-width: 991px) {
  .doctor-photo { min-height: 360px; }
}

.doctor-content-col {
  padding: 60px 48px;
}

@media (max-width: 1199px) {
  .doctor-content-col { padding: 48px 32px; }
}

@media (max-width: 767px) {
  .doctor-content-col { padding: 40px 24px; }
}

.doctor-title {
  font-size: 34px;
  font-weight: 800;
  color: var(--base-color);
  line-height: 1.2;
  margin-bottom: 32px;
}

@media (max-width: 575px) { .doctor-title { font-size: 26px; } }

.doctor-feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.doctor-feature-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background-color: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  font-size: 20px;
}

/* ===========================
   Section 5 – Testimoniales
   =========================== */
.testimoniales-section {
  background-size: cover;
  background-position: center;
  padding: 80px 0;
}

.testimonial-card {
  background: #fff;
  border-radius: var(--border-radius-card);
  padding: 28px;
  box-shadow: var(--card-shadow);
  height: 100%;
}

.star-rating {
  color: #F5A623;
  font-size: 18px;
  letter-spacing: 2px;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #EEF5FF;
  color: var(--accent-color);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
}

.cta-strip {
  background-color: var(--cta-blue);
  border-radius: 12px;
  padding: 22px 32px;
  color: #fff;
}

@media (max-width: 767px) {
  .cta-strip { text-align: center; }
  .cta-strip .d-flex { flex-direction: column; gap: 16px !important; }
}

/* ===========================
   Section 6 – Galería
   =========================== */
.galeria-section {
  background-size: cover;
  background-position: center;
  padding: 80px 0;
}

.gallery-swiper { padding-bottom: 50px !important; }

.gallery-swiper .swiper-slide img {
  border-radius: 12px;
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--base-color) !important;
  background: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 14px !important;
  font-weight: 700 !important;
}

.swiper-pagination-bullet-active { background: var(--accent-color) !important; }

.gallery-cta-strip {
  background-color: var(--light-bg);
  border-radius: 12px;
  padding: 22px 32px;
}

@media (max-width: 767px) {
  .gallery-cta-strip { text-align: center; }
  .gallery-cta-strip .d-flex { flex-direction: column; gap: 12px !important; }
}

/* ===========================
   Section 7 – CTA Banner
   =========================== */
.cta-banner-section {
  background-size: cover;
  background-position: center;
  padding-top: 60px;
  overflow: hidden;
}

.doctor-cta-img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  object-position: top center;
  border-radius: 16px 16px 0 0;
  display: block;
  margin-top: auto;
}

@media (max-width: 991px) {
  .doctor-cta-img { max-height: 300px; border-radius: 12px; }
}

.cta-banner-content {
  padding: 40px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.cta-banner-title {
  font-size: 40px;
  font-weight: 800;
  color: var(--base-color);
  line-height: 1.2;
  margin-bottom: 20px;
}

@media (max-width: 991px) { .cta-banner-title { font-size: 30px; } }
@media (max-width: 575px) { .cta-banner-title { font-size: 24px; } }

.cta-location {
  font-size: 15px;
  color: #4a5568;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.cta-banner-bottom {
  background-color: var(--base-color);
  color: rgba(255, 255, 255, 0.85);
  padding: 14px 0;
  font-size: 14px;
  margin-top: 60px;
}

@media (max-width: 767px) {
  .cta-banner-bottom .d-flex { flex-direction: column; gap: 4px; text-align: center; }
}

/* ===========================
   Section 8 – FAQ
   =========================== */
.faq-section {
  background-size: cover;
  background-position: right center;
  padding: 80px 0;
}

.faq-icon-top {
  width: 60px;
  height: 60px;
  background-color: var(--light-bg);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  font-size: 26px;
  margin-bottom: 24px;
}

.accordion-item {
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  margin-bottom: 12px;
  overflow: hidden;
  background: #fff;
}

.accordion-button {
  font-weight: 600;
  font-size: 16px;
  color: var(--text-dark);
  background-color: #fff;
  padding: 20px 24px;
  gap: 14px;
}

.accordion-button:not(.collapsed) {
  color: var(--base-color);
  background-color: #fff;
  box-shadow: none;
}

.accordion-button::after {
  margin-left: auto;
  flex-shrink: 0;
}

.accordion-body {
  padding: 0 24px 20px 62px;
  color: var(--text-muted);
  font-size: 15px;
}

.faq-q-icon {
  color: var(--accent-color);
  font-size: 18px;
  min-width: 24px;
}

/* ===========================
   Reviews Carousel
   =========================== */
.reviews-swiper {
  padding-bottom: 50px !important;
}

.review-card {
  background: #fff;
  border-radius: var(--border-radius-card);
  padding: 24px;
  box-shadow: var(--card-shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.3s ease;
}
.review-card:hover { transform: translateY(-4px); }

.review-source-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 5px 12px;
  border-radius: 20px;
  text-transform: uppercase;
}

.review-source-tag.tag-doctoralia {
  background-color: #E4F4F4;
  color: #02A5A5;
  border: 1px solid #c0e8e8;
}

.review-source-tag.tag-google {
  background-color: #FFF0EE;
  color: #EA4335;
  border: 1px solid #fdd;
}

.review-card .star-rating {
  font-size: 14px;
  letter-spacing: 1px;
}

.review-text {
  font-size: 14px;
  color: #4a5568;
  line-height: 1.75;
  font-style: italic;
  flex: 1;
  margin: 0;
}

.reviewer-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--base-color);
  margin: 0 0 2px;
}

.reviewer-date {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

/* ===========================
   Footer
   =========================== */
.site-footer {
  background-color: #0D1F4A;
  color: rgba(255, 255, 255, 0.82);
  padding: 60px 0 30px;
}

.footer-logo { height: 80px; }

.footer-contact-icon {
  color: var(--accent-color);
  font-size: 20px;
  min-width: 24px;
  margin-top: 2px;
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.12);
  margin: 40px 0 30px;
}

.footer-copyright {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.footer-copyright a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}
.footer-copyright a:hover { color: #fff; }

.footer-creds-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-creds-list li {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  padding: 3px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

@media (min-width: 768px) {
  .footer-creds-list li {
    justify-content: flex-start;
  }
}
.footer-creds-list li i {
  color: var(--accent-color);
  font-size: 14px;
}

/* ===========================
   Entrance Animations
   =========================== */
[data-animate] {
  opacity: 0;
  transition: opacity 0.65s ease, transform 0.65s ease;
}

[data-animate="fade-up"]    { transform: translateY(36px); }
[data-animate="fade-left"]  { transform: translateX(40px); }
[data-animate="fade-right"] { transform: translateX(-40px); }

[data-animate].is-visible {
  opacity: 1;
  transform: none;
}

[data-delay="100"] { transition-delay: 0.10s; }
[data-delay="200"] { transition-delay: 0.20s; }
[data-delay="300"] { transition-delay: 0.30s; }
[data-delay="400"] { transition-delay: 0.40s; }
[data-delay="500"] { transition-delay: 0.50s; }

@media (prefers-reduced-motion: reduce) {
  [data-animate] { opacity: 1; transform: none; transition: none; }
}
