/* ===== FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
  --primary-dark: #0a1628;
  --primary-deep: #0d1f3c;
  --primary-navy: #102a4a;
  --primary-blue: #1a3a5c;
  --accent-teal: #00c2b8;
  --accent-cyan: #00e5ff;
  --accent-light: #4df0e1;
  --accent-glow: rgba(0, 194, 184, 0.3);
  --text-white: #ffffff;
  --text-light: #e0e8f0;
  --text-muted: #8fa3b8;
  --text-dim: #5a7a94;
  --glass-bg: rgba(16, 42, 74, 0.6);
  --glass-border: rgba(0, 194, 184, 0.15);
  --glass-highlight: rgba(255, 255, 255, 0.05);
  --card-bg: rgba(13, 31, 60, 0.8);
  --shadow-primary: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 40px rgba(0, 194, 184, 0.15);
  --gradient-main: linear-gradient(135deg, #0a1628 0%, #0d1f3c 50%, #102a4a 100%);
  --gradient-accent: linear-gradient(135deg, #00c2b8 0%, #00e5ff 100%);
  --gradient-card: linear-gradient(145deg, rgba(16, 42, 74, 0.8) 0%, rgba(13, 31, 60, 0.6) 100%);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--gradient-main);
  color: var(--text-light);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ===== LOADING SCREEN ===== */
.loading-screen {
  position: fixed;
  inset: 0;
  background: #0a1628;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-logo-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 28px 48px;
  background: radial-gradient(ellipse at center, rgba(0, 194, 184, 0.18) 0%, rgba(255, 255, 255, 0.12) 55%, rgba(10, 22, 40, 0.65) 100%);
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  margin-bottom: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 50px rgba(0, 194, 184, 0.22);
  animation: loadingPulse 2s ease-in-out infinite;
}

.loading-logo {
  width: 320px;
  max-width: 80vw;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.40)) drop-shadow(0 0 25px rgba(0, 194, 184, 0.35));
}

@keyframes loadingPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.03); opacity: 0.92; }
}

.loading-bar-container {
  width: 200px;
  height: 4px;
  background: rgba(0, 194, 184, 0.15);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.loading-bar {
  height: 100%;
  width: 0%;
  background: var(--gradient-accent);
  border-radius: 4px;
  transition: width 0.3s ease;
  box-shadow: 0 0 20px rgba(0, 194, 184, 0.5);
}

/* ===== ANIMATED BACKGROUND ===== */
.bg-animation {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-animation .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.07;
  animation: orbFloat 20s ease-in-out infinite;
}

.bg-animation .orb:nth-child(1) {
  width: 600px; height: 600px;
  background: var(--accent-teal);
  top: -200px; right: -100px;
  animation-delay: 0s;
}
.bg-animation .orb:nth-child(2) {
  width: 400px; height: 400px;
  background: var(--accent-cyan);
  bottom: -100px; left: -100px;
  animation-delay: -7s;
}
.bg-animation .orb:nth-child(3) {
  width: 300px; height: 300px;
  background: #0070f3;
  top: 50%; left: 50%;
  animation-delay: -14s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(50px, -80px) scale(1.1); }
  50% { transform: translate(-30px, 60px) scale(0.9); }
  75% { transform: translate(40px, 30px) scale(1.05); }
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 40px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 22, 40, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  height: 72px;
  background: rgba(10, 22, 40, 0.96);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
}

.nav-logo-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 194, 184, 0.18), 0 0 35px rgba(0, 194, 184, 0.10);
  cursor: pointer;
  transition: var(--transition-fast);
}

.nav-logo-box:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(0, 194, 184, 0.45);
  box-shadow: 0 6px 25px rgba(0, 194, 184, 0.28), 0 0 45px rgba(0, 194, 184, 0.18);
  transform: translateY(-1px) scale(1.02);
}

.nav-logo {
  height: 56px;
  max-height: 56px;
  width: auto;
  display: block;
  transition: var(--transition-fast);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.35)) drop-shadow(0 0 16px rgba(0, 194, 184, 0.30));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links li a {
  display: block;
  padding: 8px 16px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  position: relative;
  white-space: nowrap;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  border-radius: 2px;
  transition: var(--transition-smooth);
  transform: translateX(-50%);
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--text-white);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
  width: 60%;
}

.nav-links li a.active {
  color: var(--accent-teal);
}

/* Mobile menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
  z-index: 1001;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-white);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== MAIN CONTENT ===== */
.main-content {
  position: relative;
  z-index: 1;
  padding-top: 84px;
  min-height: 100vh;
}

/* ===== PAGE SECTIONS ===== */
.page-section {
  display: none;
  opacity: 0;
  animation: fadeInSection 0.6s ease forwards;
}

.page-section.active {
  display: block;
}

@keyframes fadeInSection {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== SECTION STYLES ===== */
.section {
  padding: 80px 40px;
  max-width: 1300px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(0, 194, 184, 0.1);
  border: 1px solid rgba(0, 194, 184, 0.2);
  border-radius: 50px;
  color: var(--accent-teal);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-title span {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: calc(100vh - 84px);
  display: flex;
  align-items: center;
  padding: 60px 40px;
  overflow: hidden;
}

.hero-content {
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text {
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(0, 194, 184, 0.1);
  border: 1px solid rgba(0, 194, 184, 0.25);
  border-radius: 50px;
  color: var(--accent-teal);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.15;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease 0.4s both;
}

.hero-title .accent {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 520px;
  animation: fadeInUp 0.6s ease 0.6s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease 0.8s both;
}

.hero-image {
  position: relative;
  z-index: 2;
  animation: fadeInUp 0.8s ease 0.5s both;
}

.hero-image img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-primary), var(--shadow-glow);
  border: 1px solid var(--glass-border);
}

.hero-image::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: calc(var(--radius-xl) + 4px);
  background: var(--gradient-accent);
  opacity: 0.15;
  z-index: -1;
  filter: blur(20px);
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  animation: fadeInUp 0.6s ease 1s both;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border: none;
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-accent);
  color: var(--primary-dark);
  box-shadow: 0 4px 20px rgba(0, 194, 184, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 194, 184, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--accent-teal);
  border: 1px solid rgba(0, 194, 184, 0.3);
}

.btn-outline:hover {
  background: rgba(0, 194, 184, 0.1);
  border-color: var(--accent-teal);
  transform: translateY(-2px);
}

/* ===== HERO SOCIAL ===== */
.hero-social-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.hero-social-strip span {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-social-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(16, 42, 74, 0.6);
  border: 1px solid var(--glass-border);
  color: var(--text-white);
  font-size: 1rem;
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

.hero-social-btn.instagram:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  border-color: transparent;
  color: #fff;
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 4px 20px rgba(225, 48, 108, 0.4);
}

.hero-social-btn.facebook:hover {
  background: #1877f2;
  border-color: #1877f2;
  color: #fff;
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 4px 20px rgba(24, 119, 242, 0.4);
}

/* ===== CONTACT BAR ===== */
.contact-bar {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

.contact-item:hover {
  background: rgba(0, 194, 184, 0.1);
  border-color: var(--accent-teal);
  transform: translateY(-2px);
}

.contact-item .icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 194, 184, 0.15);
  border-radius: var(--radius-sm);
  color: var(--accent-teal);
  font-size: 1.1rem;
}

.contact-item .info {
  display: flex;
  flex-direction: column;
}

.contact-item .info small {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-item .info strong {
  font-size: 0.88rem;
  color: var(--text-white);
  font-weight: 600;
}

/* ===== GLASS CARDS ===== */
.glass-card {
  background: var(--gradient-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(20px);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 194, 184, 0.3), transparent);
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 194, 184, 0.3);
  box-shadow: var(--shadow-glow);
}

/* ===== DOCTOR CARDS ===== */
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.doctor-card {
  background: #0b1524;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-smooth);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.doctor-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 194, 184, 0.4);
  box-shadow: var(--shadow-glow);
}

.doctor-card-img-wrapper {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  position: relative;
  background: var(--primary-deep);
  border-bottom: 1px solid var(--glass-border);
}

.doctor-card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: var(--transition-smooth);
}

.doctor-card:hover .doctor-card-img-wrapper img {
  transform: scale(1.05);
}

.doctor-card-info {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.doctor-card-info h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 6px;
  line-height: 1.3;
}

.doctor-card-info p {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-teal);
  line-height: 1.4;
}

/* ===== DOCTOR MODAL ===== */
.doctor-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(5, 12, 22, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-smooth), visibility var(--transition-smooth);
}

.doctor-modal.open {
  opacity: 1;
  visibility: visible;
}

.doctor-modal-content {
  background: #0a1424;
  width: 100%;
  max-width: 820px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  position: relative;
  box-shadow: var(--shadow-primary), var(--shadow-glow);
  transform: translateY(30px);
  transition: transform var(--transition-smooth);
}

.doctor-modal.open .doctor-modal-content {
  transform: translateY(0);
}

.doctor-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-fast);
}

.doctor-modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-white);
}

.doctor-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
}

.doctor-modal-left {
  position: relative;
  background: var(--primary-dark);
  overflow: hidden;
}

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

.doctor-modal-right {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.doctor-modal-right h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 6px;
  line-height: 1.2;
}

.doctor-modal-right .doctor-modal-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-teal);
  margin-bottom: 20px;
  line-height: 1.4;
}

.doctor-modal-right ul {
  list-style: none;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.doctor-modal-right ul li {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  position: relative;
  padding-left: 18px;
}

.doctor-modal-right ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  background: var(--accent-teal);
  border-radius: 50%;
}

.btn-instagram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  color: var(--text-white);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  align-self: flex-start;
  transition: var(--transition-smooth);
}

.btn-instagram:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--text-white);
  transform: translateY(-2px);
}

/* ===== CONVENIOS ===== */
.convenios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.convenio-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
  font-size: 0.88rem;
  color: var(--text-light);
}

.convenio-item:hover {
  background: rgba(0, 194, 184, 0.08);
  border-color: rgba(0, 194, 184, 0.25);
  transform: translateX(4px);
}

.convenio-item .check {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 194, 184, 0.15);
  border-radius: 50%;
  color: var(--accent-teal);
  font-size: 0.7rem;
  flex-shrink: 0;
}

/* ===== SPECIALTIES ===== */
.specialties-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.specialty-row {
  display: flex;
  background: var(--gradient-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-smooth);
  align-items: stretch;
}

.specialty-row:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 194, 184, 0.4);
  box-shadow: var(--shadow-glow);
}

.specialty-row-image {
  width: 340px;
  min-width: 340px;
  position: relative;
  overflow: hidden;
  background: var(--primary-deep);
}

.specialty-row-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.specialty-row:hover .specialty-row-image img {
  transform: scale(1.05);
}

.specialty-row-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
}

.specialty-row-content h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 12px;
}

.specialty-row-content h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--gradient-accent);
  border-radius: 2px;
}

/* Align after line for alternating row to match the design */
.specialty-row:nth-child(even) .specialty-row-content h3::after {
  left: auto;
  right: 0;
}

.specialty-row-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 24px;
}

.specialty-row-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.specialty-video-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: rgba(0, 194, 184, 0.08);
  border: 1px solid rgba(0, 194, 184, 0.2);
  border-radius: var(--radius-sm);
  color: var(--accent-teal);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.specialty-video-link:hover {
  background: rgba(0, 194, 184, 0.2);
  border-color: var(--accent-teal);
  transform: translateY(-2px);
}

/* Alternating rows layout */
.specialty-row:nth-child(even) {
  flex-direction: row-reverse;
}

.specialty-row:nth-child(even) .specialty-row-content {
  text-align: right;
}

.specialty-row:nth-child(even) .specialty-row-actions {
  justify-content: flex-end;
}

/* Mobile responsive */
@media (max-width: 900px) {
  .specialty-row, .specialty-row:nth-child(even) {
    flex-direction: column !important;
  }
  .specialty-row-image {
    width: 100%;
    height: 250px;
    min-width: 100%;
  }
  .specialty-row-content {
    padding: 30px 20px;
    text-align: left !important;
  }
  .specialty-row-content h3::after {
    left: 0 !important;
    right: auto !important;
  }
  .specialty-row-actions {
    justify-content: flex-start !important;
  }
}

/* ===== SCHEDULING ===== */
.schedule-form {
  max-width: 700px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 18px;
  background: rgba(16, 42, 74, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-white);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  transition: var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-teal);
  box-shadow: 0 0 0 3px rgba(0, 194, 184, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dim);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2300c2b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.form-group select option {
  background: var(--primary-deep);
  color: var(--text-white);
}

/* ===== BLOG ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
}

.blog-card {
  background: var(--gradient-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

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

.blog-card-content {
  padding: 24px;
}

.blog-card-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(0, 194, 184, 0.12);
  border-radius: 50px;
  color: var(--accent-teal);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.blog-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 8px;
}

.blog-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  color: var(--accent-teal);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-fast);
}

.blog-card .read-more:hover {
  gap: 10px;
}

/* ===== BLOG MODAL ===== */
.blog-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(5, 12, 22, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-smooth), visibility var(--transition-smooth);
}

.blog-modal.open {
  opacity: 1;
  visibility: visible;
}

.blog-modal-content {
  background: #0a1424;
  width: 100%;
  max-width: 900px;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  position: relative;
  box-shadow: var(--shadow-primary), var(--shadow-glow);
  transform: translateY(30px);
  transition: transform var(--transition-smooth);
}

/* Custom scrollbar for blog content */
.blog-modal-content::-webkit-scrollbar {
  width: 8px;
}
.blog-modal-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.blog-modal-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
.blog-modal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

.blog-modal.open .blog-modal-content {
  transform: translateY(0);
}

.blog-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-fast);
}

.blog-modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-white);
}

.blog-modal-body {
  padding: 40px;
}

/* Article Styling inside Modal */
.blog-article-header {
  margin-bottom: 24px;
  padding-right: 32px;
}

.blog-article-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(0, 194, 184, 0.12);
  border-radius: 50px;
  color: var(--accent-teal);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.blog-article-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.3;
}

.blog-article-cover {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 28px;
  border: 1px solid var(--glass-border);
}

.blog-article-content {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.blog-article-content p {
  margin-bottom: 20px;
}

.blog-article-content h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-white);
  margin-top: 30px;
  margin-bottom: 15px;
}

.blog-article-image-container {
  margin: 28px 0;
  text-align: center;
}

.blog-article-image {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  display: block;
}

.blog-article-image-caption {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 8px;
  font-style: italic;
}

/* Image row: Image 2 next to Image 3 */
.blog-article-image-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0;
}

.blog-article-image-row img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
}

/* Video Responsive Box */
.blog-article-video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  margin: 30px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

.blog-article-video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.blog-article-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.blog-article-source {
  color: var(--accent-teal);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.blog-article-source:hover {
  text-decoration: underline;
  color: var(--text-white);
}

@media (max-width: 768px) {
  .blog-modal-body {
    padding: 24px;
  }
  .blog-article-title {
    font-size: 1.5rem;
  }
  .blog-article-image-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-info-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--gradient-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
}

.contact-info-card:hover {
  border-color: rgba(0, 194, 184, 0.3);
  transform: translateX(4px);
}

.contact-info-card .icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 194, 184, 0.12);
  border-radius: var(--radius-md);
  font-size: 1.3rem;
  color: var(--accent-teal);
  flex-shrink: 0;
}

.contact-info-card .details h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 4px;
}

.contact-info-card .details p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  height: 300px;
  margin-top: 24px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ===== ABOUT (ORTOCENTER) ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 80px;
}

.about-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-primary);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition-smooth);
}

.about-image:hover img {
  transform: scale(1.03);
}

.about-text h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 20px;
}

.about-text p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

/* ===== FOOTER ===== */
.footer {
  background: rgba(10, 22, 40, 0.9);
  border-top: 1px solid var(--glass-border);
  padding: 60px 40px 30px;
  position: relative;
  z-index: 1;
}

/* Footer centered brand layout */
.footer-brand-centered {
  max-width: 1300px;
  margin: 0 auto 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-brand-centered p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 500px;
}

.footer-logo-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  background: radial-gradient(ellipse at center, rgba(0, 194, 184, 0.16) 0%, rgba(255, 255, 255, 0.10) 60%, rgba(10, 22, 40, 0.6) 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 194, 184, 0.18);
  margin-bottom: 22px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.footer-logo-box:hover {
  background: radial-gradient(ellipse at center, rgba(0, 194, 184, 0.24) 0%, rgba(255, 255, 255, 0.14) 60%, rgba(10, 22, 40, 0.7) 100%);
  border-color: rgba(0, 194, 184, 0.45);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.35), 0 0 50px rgba(0, 194, 184, 0.28);
  transform: translateY(-2px) scale(1.02);
}

.footer-logo-box img {
  height: 84px;
  width: auto;
  max-width: 100%;
  display: block;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.35)) drop-shadow(0 0 20px rgba(0, 194, 184, 0.28));
}

.footer-bottom {
  max-width: 1300px;
  margin: 25px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--text-dim);
  text-align: center;
  margin: 0;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 194, 184, 0.1);
  border: 1px solid rgba(0, 194, 184, 0.2);
  border-radius: 50%;
  color: var(--accent-teal);
  text-decoration: none;
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.footer-social a:hover {
  background: var(--accent-teal);
  color: var(--primary-dark);
  transform: translateY(-3px);
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.8rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition-smooth);
  animation: whatsappPulse 2s ease infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 40px rgba(37, 211, 102, 0.6), 0 0 0 15px rgba(37, 211, 102, 0.1); }
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== FEATURES CARDS (HOME) ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.feature-card {
  background: var(--gradient-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
  opacity: 0;
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 194, 184, 0.12);
  border-radius: var(--radius-md);
  margin: 0 auto 20px;
  font-size: 1.8rem;
}

.feature-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-title { font-size: 2.8rem; }
  .hero-description { margin: 0 auto 36px; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-image { max-width: 500px; margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .specialties-grid { grid-template-columns: 1fr; }
  .doctors-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .doctor-modal-grid { grid-template-columns: 1fr; }
  .doctor-modal-left { max-height: 350px; }
  .doctor-modal-right { padding: 30px; }
}

@media (max-width: 768px) {
  .navbar { padding: 0 20px; height: 78px; }
  .navbar.scrolled { height: 68px; }
  .nav-logo { height: 46px; }
  .footer-logo-box img { height: 72px; }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: rgba(10, 22, 40, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 80px 30px 30px;
    gap: 8px;
    transition: right var(--transition-smooth);
    border-left: 1px solid var(--glass-border);
    overflow-y: auto;
  }
  .nav-links.open { right: 0; }
  .nav-toggle { display: flex; }
  .nav-links li a {
    font-size: 0.95rem;
    padding: 12px 16px;
  }

  .section { padding: 60px 20px; }
  .hero { padding: 40px 20px; }
  .hero-title { font-size: 2.2rem; }
  .section-title { font-size: 2rem; }
  .features-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .convenios-grid { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: center; text-align: center; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .contact-bar { flex-direction: column; }
  .doctor-modal-content {
    max-height: 90vh;
    overflow-y: auto;
  }
  .doctor-modal-left {
    height: 320px;
    max-height: 42vh;
    overflow: hidden;
    background: #060e18;
  }
  .doctor-modal-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
  }
  .doctor-modal-right { padding: 24px; }
  .doctor-modal-right h3 { font-size: 1.3rem; }
  .doctor-modal-right ul li { font-size: 0.8rem; }
}

@media (max-width: 480px) {
  .loading-logo-box { padding: 16px 24px; margin-bottom: 30px; }
  .loading-logo { width: 220px; }
  .navbar { height: 74px; }
  .nav-logo-box { padding: 4px 10px; }
  .nav-logo { height: 40px; }
  .footer-logo-box { padding: 10px 18px; }
  .footer-logo-box img { height: 62px; }
  .hero-title { font-size: 1.8rem; }
  .section-title { font-size: 1.6rem; }
  .doctors-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .doctor-card-info h3 { font-size: 0.95rem; }
  .doctor-card-info p { font-size: 0.72rem; }
  .doctor-modal-left {
    height: 290px;
    max-height: 38vh;
  }
}

/* ===== SCROLL BAR ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--primary-dark);
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 194, 184, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 194, 184, 0.5);
}

/* ===== OVERLAY FOR MOBILE NAV ===== */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}
