/* ═══════════════════════════════════════════════════════
   HOSPITAL SAN ÁNGEL — PREMIUM GOLD REDESIGN
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Playfair+Display:ital,wght@0,700;0,900;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
  /* ── CORE PALETTE ── */
  --navy:       #0B1526;
  --navy-mid:   #132035;
  --navy-card:  #111E33;
  --gold:       #C9A84C;
  --gold-light: #E8C97A;
  --gold-pale:  rgba(201,168,76,0.12);
  --gold-border:rgba(201,168,76,0.25);
  --white:      #FFFFFF;
  --cream:      #F5F0E8;
  --red:        #C0392B;
  --red-soft:   #E74C3C;

  /* ── GRAYS ── */
  --gray-100: #F8F7F4;
  --gray-200: #EDEAE3;
  --gray-300: #C8C3B8;
  --gray-500: #8A8070;
  --gray-700: #4A4438;

  /* ── SHADOWS ── */
  --shadow-sm: 0 2px 12px rgba(11,21,38,0.08);
  --shadow-md: 0 8px 40px rgba(11,21,38,0.15);
  --shadow-lg: 0 24px 80px rgba(11,21,38,0.25);
  --shadow-gold: 0 8px 32px rgba(201,168,76,0.2);

  /* ── RADIUS ── */
  --radius: 10px;
  --radius-lg: 18px;

  /* ── TRANSITION ── */
  --transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; width: 100%; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--gray-700);
  overflow-x: hidden;
  line-height: 1.65;
  width: 100%;
  max-width: 100vw;
}

/* ─── TYPOGRAPHY ─── */
h1, h2, h3 {
  font-family: 'Cormorant Garamond', serif;
  line-height: 1.15;
  color: var(--navy);
}
h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  color: var(--navy);
}
h1 { font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 600; }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p  { font-size: 0.97rem; line-height: 1.7; color: var(--gray-500); }
a  { text-decoration: none; color: inherit; }

/* ─── GOLD DIVIDER ─── */
.gold-line {
  display: inline-block; width: 40px; height: 2px;
  background: var(--gold); margin-right: 12px;
  vertical-align: middle;
}

/* ─── CONTAINER ─── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; width: 100%; }

/* ─── SECTION ─── */
.section { padding: 5rem 0; }
.section-alt { background: var(--gray-100); }

.section-header { text-align: center; max-width: 680px; margin: 0 auto 3.5rem; }
.section-label {
  display: inline-flex; align-items: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}
.section-label::before {
  content: ''; display: inline-block;
  width: 28px; height: 1px;
  background: var(--gold); margin-right: 10px;
}
.section-title { margin-bottom: 1rem; }
.section-desc { font-size: 1rem; color: var(--gray-500); }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.75rem 1.8rem;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-weight: 600; font-size: 0.88rem;
  letter-spacing: 0.04em;
  cursor: pointer; border: none;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 4px 20px rgba(201,168,76,0.35);
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: var(--shadow-gold); }

.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(201,168,76,0.5);
  color: var(--gold-light);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-pale); }

.btn-red {
  background: var(--red);
  color: white;
  box-shadow: 0 4px 20px rgba(192,57,43,0.35);
}
.btn-red:hover { background: var(--red-soft); transform: translateY(-2px); }

.btn-dark {
  background: var(--navy);
  color: var(--gold);
  border: 1.5px solid var(--gold-border);
}
.btn-dark:hover { background: var(--navy-mid); border-color: var(--gold); }

.btn-lg { padding: 0.95rem 2.2rem; font-size: 0.95rem; }
.btn-sm { padding: 0.55rem 1.3rem; font-size: 0.82rem; }

/* ─── HEADER / NAV ─── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(11,21,38,0.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201,168,76,0.12);
  transition: var(--transition);
}
.site-header.scrolled {
  background: rgba(11,21,38,0.99);
  box-shadow: 0 4px 32px rgba(0,0,0,0.4);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 72px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo img { height: 42px; width: auto; }
.nav-logo .logo-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem; font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}
.nav-links {
  display: flex; align-items: center; gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.83rem; font-weight: 500;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.06em; text-transform: uppercase;
  transition: color 0.25s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transition: transform 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold-light); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta { display: flex; align-items: center; gap: 1rem; }
.nav-emergency {
  display: flex; align-items: center; gap: 8px;
  background: var(--red); color: white;
  padding: 0.5rem 1.2rem; border-radius: 4px;
  font-size: 0.82rem; font-weight: 600;
  transition: var(--transition);
}
.nav-emergency:hover { background: var(--red-soft); }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--gold); border-radius: 2px;
  transition: var(--transition);
}
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--navy-mid);
  border-top: 1px solid var(--gold-border);
  padding: 1.5rem 2rem;
  gap: 1rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem; font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.2s;
}
.mobile-nav a:hover { color: var(--gold); }

/* ─── HERO ─── */
.hero {
  position: relative; min-height: 100vh;
  background: var(--navy);
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 70% at 60% 40%, rgba(201,168,76,0.07) 0%, transparent 60%),
    linear-gradient(180deg, rgba(11,21,38,0.3) 0%, rgba(11,21,38,0.95) 100%);
}
/* Subtle texture pattern */
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 4rem;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 7rem 2rem 4rem;
  width: 100%;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold-pale);
  border: 1px solid var(--gold-border);
  color: var(--gold-light);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 100px;
  margin-bottom: 1.5rem;
}
.hero-badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  animation: pulse-gold 2s infinite;
}
@keyframes pulse-gold {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.4); }
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.5rem, 7vw, 6rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}
.hero-title em {
  font-style: italic;
  color: var(--gold);
}
.hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 2.5rem;
  max-width: 520px;
  line-height: 1.8;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-stats {
  display: flex; gap: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(201,168,76,0.15);
}
.hero-stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem; font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
}
.hero-stat-label {
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}
/* Hero side cards */
.hero-cards {
  display: flex; flex-direction: column; gap: 1rem;
}
.hero-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  backdrop-filter: blur(10px);
  transition: var(--transition);
  display: flex; flex-direction: column; gap: 0.4rem;
}
.hero-card:hover {
  background: rgba(201,168,76,0.08);
  border-color: rgba(201,168,76,0.35);
  transform: translateX(4px);
}
.hero-card-icon { font-size: 1.4rem; margin-bottom: 0.3rem; }
.hero-card h4 { color: var(--white); font-size: 0.95rem; font-weight: 600; }
.hero-card p  { color: rgba(255,255,255,0.45); font-size: 0.82rem; line-height: 1.55; }

/* ─── BREADCRUMB ─── */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8rem; color: var(--gray-300);
  margin-bottom: 1.5rem; flex-wrap: wrap;
}
.breadcrumb a { color: var(--gold); transition: opacity 0.2s; }
.breadcrumb a:hover { opacity: 0.7; }
.breadcrumb span { color: rgba(255,255,255,0.3); }

/* ─── PAGE HERO ─── */
.page-hero {
  background: var(--navy);
  padding: 8rem 0 3.5rem;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 30% 50%, rgba(201,168,76,0.07) 0%, transparent 60%),
    linear-gradient(rgba(201,168,76,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.03) 1px, transparent 1px);
  background-size: auto, 60px 60px, 60px 60px;
}
.page-hero h1 { color: var(--white); }
.page-hero p  { color: rgba(255,255,255,0.5); margin-top: 0.8rem; max-width: 560px; }

/* ─── MVV SECTION ─── */
.mvv-section {
  background: var(--navy);
  padding: 5rem 0;
}
.mvv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.mvv-card {
  padding: 2.5rem;
  border-right: 1px solid var(--gold-border);
  transition: var(--transition);
  position: relative;
}
.mvv-card:last-child { border-right: none; }
.mvv-card:hover { background: var(--gold-pale); }
.mvv-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.mvv-card:hover::before { opacity: 1; }
.mvv-icon {
  width: 48px; height: 48px; border-radius: 8px;
  background: var(--gold-pale); border: 1px solid var(--gold-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 1.2rem;
}
.mvv-card h3 {
  color: var(--gold);
  font-size: 1.4rem; margin-bottom: 0.8rem;
  font-family: 'Cormorant Garamond', serif;
}
.mvv-card p { color: rgba(255,255,255,0.5); font-size: 0.88rem; line-height: 1.75; }
.valores-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0.6rem; margin-top: 1rem;
}
.valor-item {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.6); font-size: 0.82rem;
}
.valor-item::before {
  content: '◆'; color: var(--gold); font-size: 0.45rem; flex-shrink: 0;
}

/* ─── CARDS ─── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0); transition: transform 0.35s;
  transform-origin: left;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: transparent;
}
.card:hover::after { transform: scaleX(1); }
.card-icon {
  width: 52px; height: 52px; border-radius: 10px;
  background: var(--cream);
  border: 1px solid var(--gray-200);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 1.2rem;
}
.card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.card p  { font-size: 0.88rem; color: var(--gray-500); }

/* ─── VIDEO SECTION ─── */
.video-section {
  background: var(--navy);
  position: relative; overflow: hidden;
}
.video-section::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(201,168,76,0.06) 0%, transparent 60%),
    linear-gradient(rgba(201,168,76,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.025) 1px, transparent 1px);
  background-size: auto, 60px 60px, 60px 60px;
}

/* ─── TESTIMONIOS ─── */
.testimonios-section {
  background: var(--navy);
  padding: 5rem 0;
  position: relative;
}
.testimonios-section::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(rgba(201,168,76,0.025) 1px, transparent 1px),
              linear-gradient(90deg, rgba(201,168,76,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
}
.testimonio-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
}
.testimonio-card:hover {
  background: rgba(201,168,76,0.06);
  border-color: rgba(201,168,76,0.3);
  transform: translateY(-3px);
}
.testimonio-stars { color: var(--gold); font-size: 0.9rem; margin-bottom: 1rem; }
.testimonio-text {
  font-size: 0.93rem; color: rgba(255,255,255,0.65);
  line-height: 1.75; font-style: italic;
  margin-bottom: 1.4rem;
}
.testimonio-author { display: flex; align-items: center; gap: 12px; padding-top: 1rem; border-top: 1px solid rgba(201,168,76,0.1); }
.author-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--gold); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; flex-shrink: 0;
}
.author-info strong { display: block; color: var(--white); font-size: 0.88rem; }
.author-info span   { color: rgba(255,255,255,0.35); font-size: 0.75rem; }

/* ─── CONTACT ─── */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start;
}
.contact-item {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.2rem; border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  background: var(--white);
  margin-bottom: 1rem;
  transition: var(--transition);
}
.contact-item:hover { border-color: var(--gold-border); box-shadow: var(--shadow-sm); }
.contact-icon {
  width: 44px; height: 44px; border-radius: 8px;
  background: var(--cream); border: 1px solid var(--gray-200);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.contact-info label { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray-300); margin-bottom: 3px; }
.contact-info strong { display: block; font-size: 0.9rem; color: var(--navy); }

/* ─── FOOTER ─── */
.site-footer {
  background: var(--navy);
  border-top: 1px solid var(--gold-border);
}
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; padding: 4rem 0 3rem;
}
.footer-brand p { color: rgba(255,255,255,0.4); font-size: 0.85rem; margin-top: 1rem; max-width: 280px; line-height: 1.7; }
.footer-col h5 {
  color: var(--gold); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul li a { color: rgba(255,255,255,0.45); font-size: 0.85rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 1.5rem 0;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.3); }
.footer-bottom a { color: var(--gold); }

/* ─── NOTICE BOX ─── */
.notice-box {
  background: var(--cream);
  border: 1px solid var(--gray-200);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
}
.notice-box p { font-size: 0.88rem; color: var(--gray-700); }
.notice-box.red {
  background: rgba(192,57,43,0.06);
  border-color: rgba(192,57,43,0.2);
  border-left-color: var(--red);
}

/* ─── INCLUDES LIST ─── */
.includes-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; margin: 1rem 0; }
.includes-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.88rem; color: var(--gray-700);
}
.includes-list li::before { content: '◆'; color: var(--gold); font-size: 0.4rem; margin-top: 6px; flex-shrink: 0; }

/* ─── PROC / LAB GRIDS ─── */
.proc-grid  { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.diag-grid  { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.5rem; }
.lab-photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 1.2rem;
}
.lab-photo-grid .main-photo { grid-row: 1 / 3; }
.diag-photo { border-radius: var(--radius); overflow: hidden; height: 200px; }
.diag-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ─── CHATBOT ─── */
.chatbot-trigger {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 999;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 4px 24px rgba(201,168,76,0.5);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition);
  border: none;
}
.chatbot-trigger:hover { transform: scale(1.1); background: var(--gold-light); box-shadow: 0 6px 32px rgba(201,168,76,0.6); }
.chatbot-trigger svg { width: 26px; height: 26px; fill: var(--navy); }

.chatbot-badge {
  position: absolute; top: -3px; right: -3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--red); color: white;
  font-size: 0.62rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--cream);
}

.chatbot-window {
  position: fixed; bottom: 5.5rem; right: 2rem; z-index: 998;
  width: 340px;
  background: var(--navy);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
  border: 1px solid var(--gold-border);
  display: none; /* hidden by default */
  flex-direction: column;
  overflow: hidden;
  max-height: 520px;
}
.chatbot-window.open { display: flex; }

.chatbot-header {
  background: linear-gradient(135deg, var(--navy-mid), var(--navy));
  padding: 1rem 1.2rem;
  display: flex; align-items: center; gap: 0.8rem;
  border-bottom: 1px solid var(--gold-border);
}
.chatbot-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gold-pale); border: 1px solid var(--gold-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.chatbot-header-info { flex: 1; }
.chatbot-header-info strong { display: block; color: var(--white); font-size: 0.88rem; font-weight: 600; }
.chatbot-header-info span { color: var(--gold); font-size: 0.72rem; display: flex; align-items: center; gap: 5px; }
.online-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: #4CAF50; animation: pulse-gold 2s infinite;
}
.chatbot-close {
  background: none; border: none; color: rgba(255,255,255,0.4);
  cursor: pointer; font-size: 1.1rem; line-height: 1;
  transition: color 0.2s; padding: 4px;
}
.chatbot-close:hover { color: var(--gold); }

.chatbot-messages {
  flex: 1; overflow-y: auto; padding: 1rem;
  display: flex; flex-direction: column; gap: 0.8rem;
  background: rgba(0,0,0,0.2);
}
.chatbot-messages::-webkit-scrollbar { width: 3px; }
.chatbot-messages::-webkit-scrollbar-thumb { background: var(--gold-border); border-radius: 2px; }

.msg { max-width: 85%; font-size: 0.84rem; line-height: 1.6; }
.msg.bot { align-self: flex-start; }
.msg.user { align-self: flex-end; }
.msg-bubble {
  padding: 0.7rem 1rem;
  border-radius: 4px;
  line-height: 1.6;
}
.msg.bot .msg-bubble {
  background: var(--navy-mid);
  color: rgba(255,255,255,0.8);
  border: 1px solid var(--gold-border);
  border-radius: 0 10px 10px 10px;
}
.msg.user .msg-bubble {
  background: var(--gold);
  color: var(--navy);
  font-weight: 500;
  border-radius: 10px 0 10px 10px;
}
.msg-time { display: block; font-size: 0.67rem; color: rgba(255,255,255,0.25); margin-top: 3px; }

.chat-quick-btns {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 0.7rem 1rem;
  border-top: 1px solid var(--gold-border);
  background: rgba(0,0,0,0.15);
}
.quick-btn {
  background: var(--gold-pale);
  border: 1px solid var(--gold-border);
  color: var(--gold-light);
  border-radius: 100px; padding: 4px 12px;
  font-size: 0.74rem; font-weight: 500;
  cursor: pointer; transition: var(--transition);
  font-family: 'Inter', sans-serif;
}
.quick-btn:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }

.chatbot-input-area {
  display: flex; padding: 0.8rem; gap: 0.6rem;
  border-top: 1px solid var(--gold-border);
  background: var(--navy-mid);
}
.chatbot-input {
  flex: 1; padding: 0.6rem 0.9rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--gold-border);
  border-radius: 100px;
  font-size: 0.84rem; outline: none;
  color: white;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s;
}
.chatbot-input::placeholder { color: rgba(255,255,255,0.3); }
.chatbot-input:focus { border-color: var(--gold); }
.chatbot-send {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gold); border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0; transition: var(--transition);
}
.chatbot-send:hover { background: var(--gold-light); transform: scale(1.1); }
.chatbot-send svg { width: 16px; height: 16px; fill: var(--navy); }

/* ─── ANIMATIONS ─── */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-delay-1 { transition-delay: 0.12s; }
.fade-in-delay-2 { transition-delay: 0.24s; }
.fade-in-delay-3 { transition-delay: 0.36s; }
.fade-in-delay-4 { transition-delay: 0.48s; }

@keyframes pulse-red {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.5); }
}
.now-playing-dot, .modal-dot { animation: pulse-red 1.5s infinite; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-cards { flex-direction: row; flex-wrap: wrap; }
  .hero-card { flex: 1; min-width: 200px; }
  .mvv-grid { grid-template-columns: 1fr; border: none; gap: 1rem; }
  .mvv-card { border-right: none; border: 1px solid var(--gold-border); border-radius: var(--radius); }
}

@media (max-width: 768px) {
  .container { padding: 0 1.2rem; }
  .section { padding: 3.5rem 0; }
  .nav-links, .nav-cta .btn-dark { display: none; }
  .hamburger { display: flex; }
  .hero-inner { padding: 6rem 1.2rem 3rem; }
  .hero-title { font-size: clamp(2.8rem, 8vw, 4rem); }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
  .hero-cards { display: none; }
  .cards-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .lab-photo-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .lab-photo-grid .main-photo { grid-row: auto; grid-column: 1 / -1; }
  #testimoniosGrid { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
  .cards-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .proc-grid { grid-template-columns: 1fr; }
  .diag-grid { grid-template-columns: 1fr 1fr; }
}

/* ─── ACCORDION / FAQ ─── */
.accordion { display: flex; flex-direction: column; gap: 0; max-width: 780px; margin: 0 auto; }

.accordion-item {
  border-bottom: 1px solid var(--gray-200);
}
.accordion-item:first-child { border-top: 1px solid var(--gray-200); }

.accordion-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 0;
  background: none; border: none; cursor: pointer;
  text-align: left; font-family: 'Inter', sans-serif;
  font-size: 0.95rem; font-weight: 500; color: var(--navy);
  gap: 1rem; transition: color 0.2s;
}
.accordion-btn:hover { color: var(--gold); }
.accordion-btn[aria-expanded="true"] { color: var(--gold); }

.accordion-icon {
  width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--gray-300);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 300; color: var(--gray-500);
  flex-shrink: 0; transition: var(--transition);
  line-height: 1;
}
.accordion-btn[aria-expanded="true"] .accordion-icon {
  border-color: var(--gold); color: var(--gold);
  transform: rotate(45deg);
}

.accordion-body {
  display: none;
  padding: 0 0 1.2rem;
}
.accordion-body.open { display: block; }
.accordion-body p, .accordion-body li {
  font-size: 0.9rem; color: var(--gray-500); line-height: 1.75;
}

/* On dark backgrounds (video section etc) */
.accordion-dark .accordion-btn { color: rgba(255,255,255,0.75); }
.accordion-dark .accordion-item { border-color: var(--gold-border); }
.accordion-dark .accordion-btn:hover,
.accordion-dark .accordion-btn[aria-expanded="true"] { color: var(--gold); }
.accordion-dark .accordion-icon { border-color: rgba(255,255,255,0.2); color: rgba(255,255,255,0.4); }
.accordion-dark .accordion-body p { color: rgba(255,255,255,0.5); }

/* ─── HOW TO GET HERE CARDS — CENTERED ─── */
.access-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 320px));
  gap: 1.5rem;
  justify-content: center;
}
@media (max-width: 768px) {
  .access-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
}
