/* ═══ CONRAD – Centro de Diagnóstico ═══ */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --teal:        #0FA3A8;
  --teal-dark:   #0B8286;
  --teal-light:  #35BFC9;
  --navy:        #0A3A4A;
  --mist:        #F6FAFB;
  --sky:         #E7F5F6;
  --line:        #E3EDF0;
  --navy-dark:   #040d18;
  --red:         #e05252;
  --white:       #ffffff;
  --off-white:   #f7f9fc;
  --gray-100:    #f0f4f8;
  --gray-200:    #e2e8f0;
  --gray-400:    #94a3b8;
  --gray-500:    #64748b;
  --gray-700:    #334155;
  --gold:        #D4AF37;
  --gold-light:  rgba(212,175,55,0.15);

  --font-display: 'Sora', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --radius:    8px;
  --radius-lg: 14px;
  --radius-xl: 22px;
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.18);

  --nav-height: 70px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--white);
  color: #071828;
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 3px; }

/* ═══ NAVBAR (claro) ═══ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-height);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center;
  padding: 0 clamp(1rem, 4vw, 3rem);
  gap: 2rem;
}
.navbar-logo { display: flex; align-items: center; gap: 0.6rem; }
.navbar-logo img { height: 40px; width: auto; }
.navbar-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.navbar-brand span { color: var(--teal); }
.navbar-links { display: flex; align-items: center; gap: 0.15rem; margin-left: auto; }
.navbar-links a {
  color: var(--gray-700);
  font-size: 0.87rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 100px;
  transition: all 0.2s;
}
.navbar-links a:hover, .navbar-links a.active {
  color: var(--teal-dark);
  background: var(--sky);
}
.nav-cta {
  background: var(--teal) !important;
  color: #fff !important;
  border-radius: 100px;
  padding: 0.5rem 1.25rem !important;
  box-shadow: 0 4px 14px rgba(15,163,168,0.3);
}
.nav-cta:hover { background: var(--teal-dark) !important; transform: translateY(-1px); }

/* mobile toggle */
.nav-toggle {
  display: none;
  background: none; border: none;
  color: var(--navy); font-size: 1.6rem; cursor: pointer;
  margin-left: auto;
}
@media(max-width: 860px) {
  .navbar-links {
    display: none; flex-direction: column; align-items: stretch;
    position: fixed; top: var(--nav-height); left: 0; right: 0;
    background: rgba(255,255,255,0.98);
    padding: 1.25rem;
    gap: 0.35rem;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px rgba(10,58,74,.08);
  }
  .navbar-links.open { display: flex; }
  .navbar-links a { padding: 0.7rem 1rem; }
  .nav-toggle { display: block; }
}

/* ═══ HERO ═══ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  background: linear-gradient(135deg, #071424 0%, #071828 50%, #072030 100%);
  overflow: hidden;
  padding-top: var(--nav-height);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: saturate(0.8);
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(110deg, rgba(10,20,40,0.92) 40%, rgba(10,20,40,0.5) 75%, rgba(13,158,160,0.25) 100%);
}
.hero-grid-pattern {
  position: absolute; inset: 0; z-index: 1;
  background-image: 
    linear-gradient(rgba(13,158,160,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13,158,160,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}
.hero-inner {
  position: relative; z-index: 3;
  width: 100%; max-width: 1280px;
  margin: 0 auto;
  padding: clamp(3rem,8vw,6rem) clamp(1.5rem,4vw,3rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media(max-width:900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-cards { display: none; }
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(13,158,160,0.15);
  border: 1px solid rgba(13,158,160,0.35);
  color: var(--teal-light);
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 100px;
  margin-bottom: 1.4rem;
}
.hero-badge .dot {
  width: 7px; height: 7px;
  background: var(--teal-light);
  border-radius: 50%;
  animation: blink 2s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}
.hero-title em { color: var(--teal-light); font-style: normal; }
.hero-desc {
  color: rgba(255,255,255,0.65);
  font-size: 1.05rem;
  max-width: 480px;
  margin-bottom: 2rem;
  line-height: 1.75;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-stats {
  display: flex; gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 1.8rem; font-weight: 700;
  color: var(--teal-light);
}
.hero-stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.45); text-transform: uppercase; letter-spacing: 0.08em; }

/* Hero cards right column */
.hero-cards { display: flex; flex-direction: column; gap: 1rem; }
.hero-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(13,158,160,0.2);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(8px);
  transition: transform 0.3s, border-color 0.3s;
}
.hero-card:hover { transform: translateX(6px); border-color: rgba(13,158,160,0.5); }
.hero-card-icon { font-size: 1.8rem; margin-bottom: 0.5rem; }
.hero-card h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 0.3rem; }
.hero-card p { color: rgba(255,255,255,0.5); font-size: 0.83rem; line-height: 1.5; }

/* ═══ BUTTONS ═══ */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 600;
  font-size: 0.9rem; letter-spacing: 0.01em;
  padding: 0.65rem 1.4rem;
  border-radius: 100px;
  cursor: pointer; border: none;
  transition: all 0.2s;
}
.btn-primary { background: var(--teal); color: white; }
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(13,158,160,0.4); }
.btn-outline {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-outline:hover { border-color: var(--teal-light); color: var(--teal-light); }
.btn-outline-teal {
  background: transparent;
  color: var(--teal);
  border: 1.5px solid var(--teal);
}
.btn-outline-teal:hover { background: var(--teal); color: white; }
.btn-red { background: var(--red); color: white; }
.btn-red:hover { background: #c94444; transform: translateY(-1px); }
.btn-lg { padding: 0.85rem 1.8rem; font-size: 1rem; }
.btn-sm { padding: 0.45rem 1rem; font-size: 0.82rem; }
.btn-whatsapp { background: #25d366; color: white; }
.btn-whatsapp:hover { background: #1dba57; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,211,102,0.4); }

/* ═══ SECTIONS ═══ */
.section {
  padding: clamp(3rem,6vw,6rem) 0;
}
.section-dark { background: #071828; }
.section-teal { background: var(--teal); }
.section-gray { background: var(--off-white); }
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.2rem,4vw,2.5rem);
}
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-label {
  display: inline-block;
  background: rgba(13,158,160,0.12);
  color: var(--teal);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 4px 14px; border-radius: 100px;
  margin-bottom: 1rem;
}
.section-label-light {
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: #071828;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.section-title-light { color: var(--white); }
.section-desc {
  color: var(--gray-500);
  font-size: 1rem;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}
.section-desc-light { color: rgba(255,255,255,0.55); }

/* ═══ CARDS GRID ═══ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  padding: 1.8rem;
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-dark {
  background: rgba(255,255,255,0.05);
  border-color: rgba(13,158,160,0.2);
  color: white;
}
.card-dark:hover { border-color: rgba(13,158,160,0.5); }

/* ═══ SERVICE CARDS ═══ */
.service-icon {
  width: 52px; height: 52px;
  background: rgba(13,158,160,0.12);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.service-title { font-weight: 700; color: #071828; margin-bottom: 0.4rem; font-size: 1rem; }
.service-desc { color: var(--gray-500); font-size: 0.87rem; line-height: 1.6; }

/* ═══ PHOTO GALLERY ═══ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
  cursor: zoom-in;
  position: relative;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(10,20,40,0.6) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex; align-items: flex-end;
  padding: 1rem;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-label { color: white; font-size: 0.85rem; font-weight: 600; }

/* ═══ VIDEO SECTION ═══ */
.video-player-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.5rem;
  align-items: start;
}
@media(max-width: 800px) {
  .video-player-layout { grid-template-columns: 1fr; }
}
.video-frame-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #000;
  box-shadow: var(--shadow-lg);
}
.video-frame-wrap iframe {
  width: 100%; height: 100%; border: 0;
}
.video-playlist {
  display: flex; flex-direction: column; gap: 0.6rem;
  max-height: 520px; overflow-y: auto;
}
.video-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.7rem;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
}
.video-item:hover { background: rgba(13,158,160,0.08); border-color: rgba(13,158,160,0.2); }
.video-item.active { background: rgba(13,158,160,0.15); border-color: rgba(13,158,160,0.4); }
.video-thumb-small {
  width: 72px; height: 48px;
  border-radius: 6px; overflow: hidden; flex-shrink: 0;
  background: #071828;
  position: relative;
}
.video-thumb-small img { width: 100%; height: 100%; object-fit: cover; }
.video-play-sm {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.3);
}
.video-play-sm svg { fill: white; width: 14px; height: 14px; }
.video-item-info strong { font-size: 0.82rem; color: #071828; display: block; line-height: 1.3; }
.video-item-info span { font-size: 0.73rem; color: var(--gray-400); }
.video-item-num { font-size: 0.7rem; color: var(--gray-400); margin-left: auto; flex-shrink: 0; }

/* ═══ REFERENTES SECTION ═══ */
.referentes-hero {
  background: #071828;
  padding: clamp(3rem,7vw,6rem) 0;
  position: relative;
  overflow: hidden;
}
.ref-gradient {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(13,158,160,0.2) 0%, transparent 65%);
}
.ref-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(13,158,160,0.15);
  border: 1px solid rgba(13,158,160,0.35);
  color: var(--teal-light);
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 16px; border-radius: 100px;
  margin-bottom: 1.4rem;
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.2rem;
}
.benefit-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(13,158,160,0.2);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  transition: border-color 0.3s, transform 0.3s;
}
.benefit-card:hover { border-color: rgba(13,158,160,0.5); transform: translateY(-3px); }
.benefit-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.benefit-title { color: var(--white); font-weight: 700; margin-bottom: 0.4rem; }
.benefit-desc { color: rgba(255,255,255,0.5); font-size: 0.85rem; line-height: 1.6; }

/* ═══ DOCTOR PORTAL ═══ */
.portal-section {
  background: var(--off-white);
  padding: clamp(3rem,6vw,5rem) 0;
}
.portal-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}
.portal-input {
  width: 100%; padding: 0.85rem 1.2rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: var(--font-body); font-size: 1rem;
  color: #071828;
  outline: none;
  transition: border-color 0.2s;
}
.portal-input:focus { border-color: var(--teal); }
.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.stat-card {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  text-align: center;
  border: 1px solid var(--gray-200);
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 700;
  color: var(--teal);
}
.stat-label { font-size: 0.8rem; color: var(--gray-500); margin-top: 0.2rem; }
.patients-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  font-size: 0.88rem;
}
.patients-table th {
  text-align: left;
  padding: 0.7rem 1rem;
  background: var(--off-white);
  color: var(--gray-500);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--gray-200);
}
.patients-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--gray-100);
  color: #071828;
}
.patients-table tr:last-child td { border-bottom: none; }
.patients-table tr:hover td { background: rgba(13,158,160,0.04); }
.commission-badge {
  background: rgba(13,158,160,0.12);
  color: var(--teal-dark);
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.82rem;
}

/* ═══ CONTACT ═══ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media(max-width:700px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-item {
  display: flex; align-items: flex-start; gap: 1rem;
  margin-bottom: 1.4rem;
}
.contact-icon {
  width: 42px; height: 42px;
  background: rgba(13,158,160,0.1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.contact-info label { display: block; font-size: 0.73rem; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 2px; }
.contact-info strong { font-size: 0.97rem; color: #071828; }
.contact-info a { color: var(--teal); }

/* ═══ FOOTER (compacto) ═══ */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.55);
  padding: 1.6rem 0 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.1rem;
}
@media(max-width:700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media(max-width:480px) { .footer-grid { grid-template-columns: 1fr; gap: 1rem; } }
.footer-brand img { height: 30px; margin-bottom: 0.4rem; }
.footer-brand p { font-size: 0.76rem; line-height: 1.5; max-width: 240px; margin-top: .35rem; }
.footer-col h4 { color: white; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.55rem; }
.footer-col a { display: block; font-size: 0.78rem; color: rgba(255,255,255,0.5); margin-bottom: 0.28rem; line-height: 1.4; transition: color 0.2s; }
.footer-col a:hover { color: var(--teal-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 0.8rem;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.4rem;
  font-size: 0.72rem;
}
.fb-dev { display: inline-flex; align-items: center; gap: .5rem; color: rgba(255,255,255,.6); font-size: .78rem; font-weight: 600; letter-spacing: .02em; opacity: .9; transition: opacity .2s, color .2s; }
.fb-dev img { width: 30px; height: 30px; border-radius: 50%; display: block; }
.fb-dev:hover { opacity: 1; color: #fff; }
/* Móvil: pie mínimo — solo derechos reservados + CodeNest */
@media(max-width:700px) {
  .footer { padding: .9rem 0 .8rem; }
  .footer-grid { display: none; }
  .footer-bottom { border-top: none; padding: 0 4.2rem 0 0; margin: 0; flex-direction: column; align-items: flex-start; gap: .55rem; font-size: .68rem; line-height: 1.45; }
}

/* ═══ CHATBOT ═══ */
.chatbot-toggle {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 999;
  width: 56px; height: 56px;
  background: var(--teal);
  border-radius: 50%;
  border: none; cursor: pointer;
  box-shadow: 0 6px 22px rgba(15,163,168,0.45);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  transition: transform 0.3s, box-shadow 0.3s;
}
.chatbot-toggle:hover { transform: scale(1.1); box-shadow: 0 10px 30px rgba(15,163,168,0.55); }
.chatbot-window {
  position: fixed; bottom: calc(1.5rem + 68px); right: 1.5rem; z-index: 998;
  width: 360px;
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  border: 1px solid var(--gray-200);
  display: flex; flex-direction: column;
  overflow: hidden;
  max-height: 540px;
  transform: translateY(20px) scale(0.97);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.chatbot-window.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: all;
}
@media(max-width:420px) { .chatbot-window { width: calc(100vw - 2rem); right: 1rem; } }
.chat-header {
  background: var(--teal);
  color: white;
  padding: 1rem 1.2rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.chat-avatar {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.chat-header-info strong { font-size: 0.9rem; display: block; }
.chat-header-info span { font-size: 0.73rem; opacity: 0.8; }
.chat-close { margin-left: auto; background: none; border: none; color: white; font-size: 1.3rem; cursor: pointer; opacity: 0.7; }
.chat-close:hover { opacity: 1; }
.chat-messages {
  flex: 1; overflow-y: auto;
  padding: 1rem;
  display: flex; flex-direction: column; gap: 0.75rem;
  min-height: 280px;
}
.msg { max-width: 82%; padding: 0.65rem 0.95rem; border-radius: 12px; font-size: 0.87rem; line-height: 1.5; }
.msg-bot { background: var(--off-white); color: #071828; border-bottom-left-radius: 3px; align-self: flex-start; }
.msg-user { background: var(--teal); color: white; border-bottom-right-radius: 3px; align-self: flex-end; }
.msg-typing { display: flex; gap: 4px; align-items: center; padding: 0.65rem 0.95rem; }
.msg-typing span { width: 7px; height: 7px; background: var(--gray-400); border-radius: 50%; animation: bounce 1s infinite; }
.msg-typing span:nth-child(2) { animation-delay: 0.15s; }
.msg-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce { 0%,60%,100%{transform:translateY(0)} 30%{transform:translateY(-6px)} }
.chat-input-row {
  border-top: 1px solid var(--gray-200);
  padding: 0.75rem;
  display: flex; gap: 0.5rem;
}
.chat-input {
  flex: 1; padding: 0.6rem 0.9rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 100px;
  font-family: var(--font-body); font-size: 0.87rem;
  outline: none;
  transition: border-color 0.2s;
}
.chat-input:focus { border-color: var(--teal); }
.chat-send {
  width: 38px; height: 38px;
  background: var(--teal);
  border: none; border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}
.chat-send:hover { background: var(--teal-dark); }
.chat-send svg { fill: white; width: 16px; height: 16px; }

/* ═══ FADE-IN ANIMATIONS ═══ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
/* fi class used in newer pages */
.fi { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
.fi.visible { opacity: 1; transform: none; }
.fi.d1 { transition-delay:.1s } .fi.d2 { transition-delay:.2s } .fi.d3 { transition-delay:.3s }
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ═══ PAGE HERO (inner pages) ═══ */
.page-hero {
  background: linear-gradient(180deg, var(--sky) 0%, #fff 100%);
  padding: calc(var(--nav-height) + 3rem) 0 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: var(--line);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--navy); font-weight: 700; letter-spacing: -.02em;
  position: relative; z-index: 1;
}
.page-hero p { color: var(--gray-500); position: relative; z-index: 1; margin-top: 0.5rem; }
.breadcrumb {
  display: flex; align-items: center; gap: 0.4rem; justify-content: center;
  font-size: 0.78rem; color: var(--gray-400);
  position: relative; z-index: 1;
  margin-bottom: 0.75rem;
}
.breadcrumb a { color: var(--teal-dark); font-weight: 600; }

/* ═══ TAGS / PILLS ═══ */
.pill {
  display: inline-block;
  background: rgba(13,158,160,0.1);
  color: var(--teal-dark);
  border-radius: 100px;
  padding: 3px 12px;
  font-size: 0.75rem; font-weight: 600;
  margin: 2px;
}

/* ═══ VISITADORA SECTION ═══ */
.visitadora-card {
  background: linear-gradient(135deg, #0a7f81 0%, #0D9EA0 50%, #071828 100%);
  border-radius: var(--radius-xl);
  padding: clamp(2rem,5vw,3.5rem);
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}
.visitadora-card::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50%;
  top: -200px; right: -100px;
}
.visitadora-card::after {
  content: '';
  position: absolute;
  width: 250px; height: 250px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 50%;
  bottom: -80px; left: -60px;
}
.visitadora-name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem,3vw,2.2rem);
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.visitadora-role { opacity: 0.75; font-size: 0.9rem; margin-bottom: 2rem; }
.visitadora-whatsapp {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: #25d366;
  color: white; font-weight: 700; font-size: 1rem;
  padding: 0.85rem 2rem;
  border-radius: 100px;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative; z-index: 1;
}
.visitadora-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(37,211,102,0.5); }

/* ═══ CHART STYLES ═══ */
canvas { max-width: 100%; }

/* ═══ SERVICES LIST (accordion style) ═══ */
.services-accordion { margin-top: 0; }
.service-group {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 0.75rem;
}
.service-group-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.4rem;
  cursor: pointer;
  background: white;
  transition: background 0.2s;
  user-select: none;
}
.service-group-header:hover { background: var(--off-white); }
.service-group-header.open { background: rgba(13,158,160,0.06); }
.service-group-title {
  font-weight: 700; color: #071828; display: flex; align-items: center; gap: 0.75rem;
}
.service-group-icon { font-size: 1.3rem; }
.service-group-body {
  display: none;
  padding: 0.5rem 1.4rem 1.2rem;
  border-top: 1px solid var(--gray-100);
}
.service-group-body.open { display: block; }
.service-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.75rem; }
.service-tag {
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  color: var(--gray-700);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 0.8rem;
}
.chevron { transition: transform 0.3s; font-size: 0.9rem; color: var(--teal); }
.chevron.open { transform: rotate(180deg); }

/* ═══ RESPONSIVE MISC ═══ */
@media(max-width:600px) {
  .hero-stats { gap: 1.2rem; }
  .cards-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .patients-table { font-size: 0.8rem; }
  .patients-table th, .patients-table td { padding: 0.6rem 0.6rem; }
}

/* ═══ NO RESULTS / EMPTY STATES ═══ */
.empty-state {
  text-align: center; padding: 3rem 1.5rem;
  color: var(--gray-400);
}
.empty-state .icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state p { font-size: 0.9rem; }

/* Loading spinner */
.spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 2rem auto;
}
@keyframes spin { to { transform: rotate(360deg); } }