/* Private Internal Medicine Doctor Valencia — Clean Production Stylesheet (v1.0)
   Colour palette & structural inspiration: Deep Navy (#0b1329 / #0f172a / #172554),
   Royal Blue (#2563eb / #1d4ed8), Warm Gold (#f59e0b / #fde047), Crisp Slate Surfaces */
:root {
  --navy-950: #0b1329;
  --navy-900: #0f172a;
  --blue-950: #172554;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-300: #93c5fd;
  --blue-200: #bfdbfe;
  --blue-50: #eff6ff;
  --gold-500: #f59e0b;
  --gold-300: #fde047;
  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { line-height: 1.6; -webkit-text-size-adjust: 100%; font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--slate-900); background: var(--slate-50); scroll-behavior: smooth; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.container { width: 100%; max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* Top announcement bar & Sticky white header */
.site-header-wrap { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.97); backdrop-filter: blur(12px); border-bottom: 1px solid var(--slate-200); }
.top-notice-bar { background: var(--navy-950); color: var(--slate-200); font-size: 0.75rem; padding: 0.45rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.top-notice-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; }
.top-notice-badge { color: var(--gold-300); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.7rem; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }

.brand-mark { display: flex; align-items: center; gap: 0.75rem; }
.brand-crest { width: 2.65rem; height: 2.65rem; border-radius: 0.75rem; background: linear-gradient(135deg, var(--blue-950), var(--navy-900)); color: var(--white); display: grid; place-items: center; font-weight: 900; font-size: 1rem; letter-spacing: -0.02em; border: 1px solid rgba(96, 165, 250, 0.35); flex-shrink: 0; }
.brand-title { font-weight: 800; font-size: 1rem; line-height: 1.2; color: var(--slate-900); }
.brand-sub { font-size: 0.75rem; color: var(--blue-700); font-weight: 600; }

.nav-desktop { display: none; align-items: center; gap: 1.5rem; }
@media (min-width: 1024px) { .nav-desktop { display: flex; } }
.nav-link { font-size: 0.875rem; font-weight: 600; color: var(--slate-700); transition: color 0.15s ease; padding: 0.25rem 0; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--blue-600); }
.nav-link[aria-current="page"] { border-bottom: 2px solid var(--blue-600); }

.header-actions { display: flex; align-items: center; gap: 0.65rem; }
.lang-switch { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.4rem 0.7rem; border-radius: 9999px; border: 1px solid var(--slate-300); background: var(--slate-50); font-size: 0.75rem; font-weight: 700; color: var(--slate-800); transition: border-color 0.15s ease, background 0.15s ease; }
.lang-switch:hover { border-color: var(--blue-600); background: var(--blue-50); color: var(--blue-700); }

.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; background: var(--blue-600); color: var(--white); font-weight: 700; font-size: 0.875rem; padding: 0.625rem 1.15rem; border-radius: var(--radius-lg); border: 1px solid transparent; transition: background 0.15s ease, transform 0.15s ease; cursor: pointer; }
.btn-primary:hover { background: var(--blue-700); }
.btn-outline-light { display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; background: rgba(255, 255, 255, 0.08); color: var(--white); font-weight: 700; font-size: 0.875rem; padding: 0.625rem 1.15rem; border-radius: var(--radius-lg); border: 1px solid rgba(255, 255, 255, 0.22); transition: background 0.15s ease, border-color 0.15s ease; }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.4); }

.mobile-menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 0.5rem; border: 1px solid var(--slate-300); background: var(--white); color: var(--slate-900); cursor: pointer; }
@media (min-width: 1024px) { .mobile-menu-btn { display: none; } }
.mobile-drawer { display: none; background: var(--white); border-top: 1px solid var(--slate-200); padding: 1rem; }
.mobile-drawer.open { display: block; }
.mobile-drawer a { display: block; padding: 0.65rem 0.5rem; font-weight: 600; color: var(--slate-800); border-bottom: 1px solid var(--slate-100); }
.mobile-drawer a:last-child { border-bottom: none; }

/* Hero Section — Deep Navy gradient + Split 62/38 layout with 1:1 framed portrait */
.hero-section { background: linear-gradient(135deg, var(--navy-950) 0%, var(--blue-950) 55%, var(--navy-900) 100%); color: var(--white); padding: 2.75rem 0 3.25rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.hero-card { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--radius-2xl); overflow: hidden; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35); }
.clinic-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) {
  .clinic-hero-grid { grid-template-columns: minmax(0, 62%) minmax(0, 38%); align-items: stretch; }
}
.hero-content { padding: 1.75rem; display: flex; flex-direction: column; justify-content: center; gap: 1.15rem; }
@media (min-width: 640px) { .hero-content { padding: 2.5rem; } }
.hero-kicker { display: inline-flex; align-items: center; gap: 0.5rem; width: fit-content; padding: 0.3rem 0.75rem; border-radius: 9999px; background: rgba(59, 130, 246, 0.18); border: 1px solid rgba(96, 165, 250, 0.3); color: var(--blue-200); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.hero-title { font-size: 1.875rem; line-height: 1.18; font-weight: 900; letter-spacing: -0.025em; color: var(--white); }
@media (min-width: 640px) { .hero-title { font-size: 2.5rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 2.75rem; } }
.hero-lead { font-size: 1rem; line-height: 1.65; color: var(--slate-200); max-width: 42rem; }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.25rem; }

.trust-strip { display: grid; grid-template-columns: 1fr; gap: 0.65rem; margin-top: 0.5rem; }
@media (min-width: 640px) { .trust-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pmd-trust-item { display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.75rem 0.85rem; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.05); border-radius: var(--radius-xl); }
.pmd-trust-dot { width: 0.55rem; height: 0.55rem; border-radius: 9999px; background: var(--gold-300); margin-top: 0.38rem; flex-shrink: 0; }
.pmd-trust-title { font-size: 0.8rem; font-weight: 800; color: var(--white); line-height: 1.25; }
.pmd-trust-sub { font-size: 0.72rem; color: var(--blue-200); margin-top: 0.15rem; }

.hero-media { position: relative; background: #050914; aspect-ratio: 1 / 1; width: 100%; overflow: hidden; border-top: 1px solid rgba(255, 255, 255, 0.1); }
@media (min-width: 1024px) { .hero-media { border-top: none; border-left: 1px solid rgba(255, 255, 255, 0.1); } }
.clinic-hero-image { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.hero-caption-badge { position: absolute; bottom: 0.85rem; left: 0.85rem; right: 0.85rem; background: rgba(11, 19, 41, 0.88); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 0.75rem; padding: 0.65rem 0.85rem; color: var(--white); }
.hero-caption-name { font-size: 0.85rem; font-weight: 800; }
.hero-caption-role { font-size: 0.72rem; color: var(--blue-200); }

/* Horizontal Continuous Carousel */
.carousel-section { padding: 2.25rem 0 0.5rem; }
.carousel-panel { background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius-2xl); box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05); padding: 1.5rem; }
.carousel-heading { text-align: center; margin-bottom: 1.15rem; }
.carousel-kicker { color: var(--blue-600); font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.carousel-heading h2 { margin-top: 0.25rem; color: var(--slate-900); font-size: 1.5rem; font-weight: 900; }
.pmdr-viewport { position: relative; overflow: hidden; }
.pmdr-track { display: flex; width: max-content; padding: 0.25rem 0 0.75rem; animation: pmdrScroll 220s linear infinite; will-change: transform; }
.pmdr-set { display: flex; gap: 1rem; flex: 0 0 auto; padding-right: 1rem; }
.pmdr-viewport:hover .pmdr-track, .pmdr-viewport:focus-within .pmdr-track { animation-play-state: paused; }
@keyframes pmdrScroll { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
.pmdr-card { width: 285px; min-height: 158px; flex: 0 0 auto; background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: var(--radius-xl); padding: 1.1rem; box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06); transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.pmdr-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12); border-color: var(--blue-300); background: var(--white); }
.pmdr-card-tag { display: inline-block; font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--blue-700); background: var(--blue-50); border: 1px solid var(--blue-200); padding: 0.15rem 0.5rem; border-radius: 9999px; margin-bottom: 0.5rem; }
.pmdr-name { color: var(--slate-900); font-size: 0.95rem; font-weight: 800; line-height: 1.3; }
.pmdr-excerpt { margin-top: 0.45rem; color: var(--slate-600); font-size: 0.84rem; line-height: 1.5; }
@media (prefers-reduced-motion: reduce) {
  .pmdr-viewport { overflow-x: auto; }
  .pmdr-track { animation: none; }
  .pmdr-set[aria-hidden="true"] { display: none; }
}

/* Main Content Sections & Cards */
.section-block { padding: 2.75rem 0; }
.section-head { max-width: 46rem; margin-bottom: 1.75rem; }
.section-kicker { color: var(--blue-600); font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.section-title { font-size: 1.65rem; font-weight: 900; color: var(--slate-900); line-height: 1.25; margin-top: 0.25rem; }
@media (min-width: 640px) { .section-title { font-size: 2rem; } }
.section-desc { margin-top: 0.6rem; color: var(--slate-600); font-size: 0.98rem; line-height: 1.65; }

.grid-2 { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.surface-card { background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius-xl); padding: 1.35rem; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04); }
.surface-card h3 { font-size: 1rem; font-weight: 800; color: var(--slate-900); margin-bottom: 0.4rem; }
.surface-card p { font-size: 0.88rem; color: var(--slate-600); line-height: 1.55; }

.intent-card-featured { border-color: var(--blue-600); box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.12); position: relative; }
.badge-pill { display: inline-block; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.22rem 0.6rem; border-radius: 9999px; background: var(--blue-50); color: var(--blue-700); border: 1px solid var(--blue-200); margin-bottom: 0.65rem; }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; font-size: 0.8rem; color: var(--blue-200); margin-bottom: 0.75rem; }
.breadcrumb a:hover { color: var(--white); text-decoration: underline; }

.timeline-list { display: grid; gap: 0.85rem; }
.timeline-item { display: flex; gap: 0.85rem; align-items: flex-start; background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius-lg); padding: 1rem 1.15rem; }
.timeline-bullet { width: 0.65rem; height: 0.65rem; border-radius: 9999px; background: var(--blue-600); margin-top: 0.42rem; flex-shrink: 0; }

.notice-box { background: #fefce8; border: 1px solid #fef08a; color: #854d0e; border-radius: var(--radius-xl); padding: 1.1rem 1.25rem; font-size: 0.88rem; line-height: 1.55; }

/* Dark Navy Multi-Column Footer */
.site-footer { background: var(--navy-950); color: var(--slate-300); border-top: 1px solid rgba(255, 255, 255, 0.1); margin-top: 3rem; padding: 3.25rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; padding-bottom: 2.25rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.35fr 1fr 1fr 1.15fr; } }
.footer-heading { color: var(--white); font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.85rem; }
.footer-links { display: grid; gap: 0.55rem; font-size: 0.86rem; }
.footer-links a { color: var(--slate-300); transition: color 0.15s ease; }
.footer-links a:hover { color: var(--white); text-decoration: underline; }
.footer-meta-list { display: grid; gap: 0.5rem; font-size: 0.84rem; color: var(--slate-300); }
.footer-meta-list strong { color: var(--white); font-weight: 700; }
.footer-bottom { padding-top: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; font-size: 0.78rem; color: var(--slate-400); }
@media (min-width: 768px) { .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; } }


/* v1.1 Hero Image Carousel (3-slide accessible switcher, blank caption slots preserved for slides 2 & 3) */
.hero-carousel { position: relative; width: 100%; height: 100%; }
.hero-slides { position: relative; width: 100%; height: 100%; }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.35s ease, visibility 0.35s ease; }
.hero-slide.is-active { position: relative; opacity: 1; visibility: visible; height: 100%; }
.hero-caption-badge.is-blank { min-height: 3.1rem; display: flex; flex-direction: column; justify-content: center; }
.hero-carousel-controls { position: absolute; top: 0.75rem; right: 0.75rem; z-index: 3; display: flex; align-items: center; gap: 0.4rem; }
.hero-carousel-btn { width: 2rem; height: 2rem; border-radius: 9999px; border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(11, 19, 41, 0.82); color: var(--white); display: inline-flex; align-items: center; justify-content: center; font-size: 0.9rem; font-weight: 800; cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease; }
.hero-carousel-btn:hover, .hero-carousel-btn:focus-visible { background: var(--blue-600); border-color: var(--white); outline: none; }
.hero-carousel-dots { position: absolute; top: 0.95rem; left: 0.85rem; z-index: 3; display: flex; align-items: center; gap: 0.35rem; background: rgba(11, 19, 41, 0.72); padding: 0.3rem 0.55rem; border-radius: 9999px; border: 1px solid rgba(255, 255, 255, 0.14); }
.hero-dot { width: 0.5rem; height: 0.5rem; border-radius: 9999px; border: 0; padding: 0; background: rgba(255, 255, 255, 0.38); cursor: pointer; transition: background 0.15s ease, transform 0.15s ease; }
.hero-dot.is-active { background: var(--gold-300); transform: scale(1.2); }
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
}
