/* ========================================
   DRA. AZUCENA MENDOZA — CUSTOM STYLES
   ======================================== */

/* ---------- ROOT VARIABLES ---------- */
:root {
  --base-color: #1B7BE8;
  --base-color-dark: #1565C8;
  --base-color-light: #EBF4FF;
  --dark-navy: #0B1E3A;
  --dark-navy-2: #0D2750;
  --green-cta: #25D366;
  --green-cta-dark: #1DA855;
  --text-primary: #1A2D4A;
  --text-secondary: #5A6B82;
  --border-color: #E2EDF7;
  --card-radius: 16px;
}

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

body {
  font-family: "Inter", sans-serif;
  color: var(--text-primary);
  background-color: #fff;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Inter", sans-serif;
  color: var(--text-primary);
  line-height: 1.2;
}

/* ---------- UTILITIES ---------- */
.fs-13 { font-size: 13px; }
.fs-15 { font-size: 15px; }
.fs-17 { font-size: 17px; }
.fs-20 { font-size: 20px; }
.fs-22 { font-size: 22px; }

.text-base-color { color: var(--base-color) !important; }
.bg-base-color   { background-color: var(--base-color) !important; }

.text-white-75 { color: rgba(255,255,255,0.75); }
.text-white-50 { color: rgba(255,255,255,0.50); }

.section-py { padding-top: 60px; padding-bottom: 60px; }

@media (min-width: 992px) {
  .section-py { padding-top: 96px; padding-bottom: 96px; }
}

/* ---------- SECTION LABELS ---------- */
.section-label {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--base-color);
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 580px;
}

/* ---------- BUTTONS ---------- */
.btn-extra-large {
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 50px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn-extra-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.btn-primary {
  background-color: var(--base-color);
  border-color: var(--base-color);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--base-color-dark);
  border-color: var(--base-color-dark);
  color: #fff;
}

.btn-outline-primary {
  border-color: var(--base-color);
  color: var(--base-color);
}

.btn-outline-primary:hover {
  background-color: var(--base-color);
  border-color: var(--base-color);
  color: #fff;
}

.btn-whatsapp {
  background-color: var(--green-cta);
  border: 2px solid var(--green-cta);
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-whatsapp:hover {
  background-color: var(--green-cta-dark);
  border-color: var(--green-cta-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,211,102,0.3);
}

/* ==========================================
   NAVBAR
   ========================================== */
#mainNav {
  padding-top: 10px;
  padding-bottom: 10px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  z-index: 1030;
}

#mainNav.nav-scrolled {
  background-color: #fff !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08) !important;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.logo-desktop {
  height: 56px;
  width: auto;
  object-fit: contain;
}

.logo-mobile {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.navbar-nav .nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--base-color);
  background-color: var(--base-color-light);
}

/* ==========================================
   HERO
   ========================================== */
.hero-section {
  background-color: #fff;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  position: relative;
}

.hero-row {
  min-height: 82vh;
}

@media (max-width: 991.98px) {
  .hero-row { min-height: auto; padding: 52px 0 40px; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--base-color-light);
  border: 1px solid rgba(27,123,232,0.2);
  border-radius: 50px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--base-color);
}

.hero-title {
  font-size: clamp(30px, 4.5vw, 54px);
  font-weight: 800;
  line-height: 1.15;
}

.hero-subtitle {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 520px;
}

.hero-image-wrapper {
  position: relative;
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
}

.hero-doctor-img {
  border-radius: 24px;
  width: 100%;
  max-height: 580px;
  object-fit: cover;
  object-position: top center;
}

.hero-location {
  font-size: 15px;
  color: var(--text-secondary);
}

/* ==========================================
   SERVICES
   ========================================== */
.services-section { background-color: #d5e4fa; }

/* Swiper nav buttons */
.swiper-nav-btn {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  z-index: 10;
  background: #fff;
  border: 2px solid var(--border-color);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--base-color);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 0;
}

.swiper-nav-btn:hover {
  background-color: var(--base-color);
  border-color: var(--base-color);
  color: #fff;
}

.services-prev { left: -58px; }
.services-next { right: -58px; }

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

.services-swiper .swiper-slide { height: auto; }
.services-swiper .swiper-wrapper { align-items: stretch; }

.swiper-pagination-bullet {
  background: var(--base-color) !important;
  opacity: 0.3;
}

.swiper-pagination-bullet-active { opacity: 1 !important; }

/* Service Cards */
.service-card {
  background: #fff;
  border-radius: var(--card-radius);
  box-shadow: 0 4px 24px rgba(27,123,232,0.07);
  border: 1px solid var(--border-color);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(27,123,232,0.14);
}

.service-card-img {
  height: 200px;
  overflow: hidden;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-card:hover .service-card-img img { transform: scale(1.06); }

.service-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 4px;
}

.service-card-specialty {
  font-size: 13px;
  font-weight: 600;
  color: var(--base-color);
  margin-bottom: 10px;
}

.service-card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  flex-grow: 1;
  margin-bottom: 16px;
}

.service-treatments-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.service-treatments li {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 2px 0;
}

.service-card .btn {
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
}

/* ==========================================
   ABOUT
   ========================================== */
.about-section { background-color: #fff; }

.about-photo-col { padding-bottom: 40px; }

.about-photo-frame {
  border-radius: 24px;
  overflow: hidden;
  border: 3px solid var(--base-color-light);
  position: relative;
}

.about-doctor-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.about-name-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 14px 20px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  margin-top: 16px;
}

.about-badge-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.about-title {
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 800;
  line-height: 1.2;
}

/* Feature boxes */
.feature-box {
  padding: 18px;
  border-radius: 12px;
  background-color: #f5f9ff;
  border: 1px solid var(--border-color);
  height: 100%;
}

.feature-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  background-color: var(--base-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 17px;
}

.feature-text-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 4px;
}

.feature-text-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.5;
}

/* Quote block */
.about-quote {
  background: linear-gradient(135deg, var(--dark-navy) 0%, #103065 100%);
  border-radius: 20px;
  padding: 40px 48px;
  position: relative;
  overflow: hidden;
}

.quote-mark {
  font-family: Georgia, serif;
  font-size: 100px;
  line-height: 0.7;
  color: rgba(27,123,232,0.35);
  display: block;
  margin-bottom: 16px;
  font-weight: 700;
}

.quote-text {
  font-size: 18px;
  font-style: italic;
  color: rgba(255,255,255,0.9);
  line-height: 1.75;
  margin-bottom: 16px;
}

.quote-author {
  font-size: 15px;
  font-weight: 600;
  color: var(--base-color);
  margin-bottom: 0;
}

/* Decorative eye — about section */
.about-eye-deco {
  position: absolute;
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  width: 340px;
  height: 340px;
  border-radius: 50%;
  overflow: hidden;
  opacity: 0.12;
  pointer-events: none;
}

/* ==========================================
   GALLERY CAROUSEL
   ========================================== */
.gallery-section { overflow: hidden; }

.gallery-swiper { width: 100%; }

.gallery-swiper .swiper-slide { overflow: hidden; }

.gallery-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-swiper .swiper-slide:hover .gallery-img { transform: scale(1.04); }

@media (max-width: 767.98px) {
  .gallery-img { height: 260px; }
}

/* ==========================================
   CONTACT
   ========================================== */
.contact-section {
  background-color: #f0f7ff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.contact-title {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  line-height: 1.2;
}

.contact-icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 50%;
  background-color: var(--base-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 17px;
}


/* ==========================================
   FOOTER
   ========================================== */
.footer-main {
  background-color: var(--dark-navy);
  position: relative;
  overflow: hidden;
}

.footer-eye-deco {
  position: absolute;
  right: -90px;
  top: 50%;
  transform: translateY(-50%);
  width: 420px;
  height: 420px;
  border-radius: 50%;
  overflow: hidden;
  opacity: 0.40;
  pointer-events: none;
}

.footer-logo {
  height: 70px;
  width: auto;
  object-fit: contain;
}

.footer-divider {
  width: 1px;
  height: 160px;
  background: rgba(255,255,255,0.12);
}

.footer-bottom {
  background-color: rgb(11, 13, 45);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1199.98px) {
  .services-prev { left: -12px; }
  .services-next { right: -12px; }
}

@media (max-width: 991.98px) {
  .swiper-nav-btn { display: none !important; }

  .about-doctor-img { height: 360px; }


  .about-quote { padding: 28px 24px; }

  .footer-divider { display: none; }

  .about-eye-deco { display: none; }
}

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

  .hero-badge { font-size: 12px; padding: 6px 14px; }

  .btn-extra-large { padding: 12px 20px; font-size: 14px; }

  .about-doctor-img { height: 280px; }

  .about-quote { padding: 24px 20px; }

  .quote-text { font-size: 16px; }

  .quote-mark { font-size: 72px; }

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