/* ============================================================
   Dr. Luis A. Robles — Neurosurgeon | Brain & Spine Surgeon
   Mobile-first responsive design
   Primary: #103554 | Secondary: #123A5A | Accent: #C8A96E
   ============================================================ */

/* ---- Variables ---- */
:root {
  --primary: #103554;
  --primary-dark: #0C2940;
  --primary-mid: #1A4A6E;
  --accent: #C8A96E;
  --accent-light: #E5CFA0;
  --white: #ffffff;
  --off-white: #F7FAFC;
  --light-blue: #EBF4FB;
  --text: #1A2332;
  --text-body: #3D5266;
  --muted: #6B8096;
  --border: #D1DCE8;
  --shadow: 0 4px 24px rgba(16,53,84,.1);
  --shadow-lg: 0 8px 48px rgba(16,53,84,.18);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: all .3s cubic-bezier(.4,0,.2,1);
  --header-h: 75px;
  --max-w: 1200px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Lato', 'Segoe UI', Arial, sans-serif;
  color: var(--text-body);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ---- Language ---- */
body.lang-en .es { display: none !important; }
body.lang-es .en { display: none !important; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  color: var(--primary);
  line-height: 1.25;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.15rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .45s ease, box-shadow .45s ease, border-color .45s ease;
}
.site-header.scrolled {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 28px rgba(16,53,84,.09);
  border-bottom-color: rgba(16,53,84,.07);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* Logo area */
.logo-area {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-imgs { display: flex; align-items: center; }
.site-logo { height: 58px; width: auto; }
.site-logo-light { display: block; }
.site-logo-dark { display: none; }
.site-header.scrolled .site-logo-light { display: none; }
.site-header.scrolled .site-logo-dark { display: block; }

.logo-text {
  display: flex;
  flex-direction: column;
  padding-left: 14px;
  border-left: 2px solid var(--accent);
}
.logo-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .02em;
  line-height: 1.2;
  transition: color .45s ease;
}
.logo-tagline {
  font-size: .68rem;
  color: rgba(255,255,255,.75);
  letter-spacing: .10em;
  text-transform: uppercase;
  line-height: 1.3;
  transition: color .45s ease;
}
.site-header.scrolled .logo-name { color: var(--primary); }
.site-header.scrolled .logo-tagline { color: var(--muted); }

/* Desktop nav */
.main-nav {
  display: none;
  align-items: center;
  gap: 4px;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-item { position: relative; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 16px 12px;
  font-size: .84rem;
  font-weight: 600;
  color: rgba(255,255,255,.90);
  border-radius: 0;
  white-space: nowrap;
  letter-spacing: .02em;
  position: relative;
  transition: color .3s ease;
}
.nav-link::before {
  content: '';
  position: absolute;
  bottom: 5px; left: 16px; right: 16px;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s ease;
}
.nav-link:hover { color: var(--white); background: none; }
.nav-link:hover::before { transform: scaleX(1); }
.nav-link.active { color: var(--white); }
.nav-link.active::before { transform: scaleX(1); }

.site-header.scrolled .nav-link { color: var(--text); }
.site-header.scrolled .nav-link:hover { color: var(--primary); background: none; }
.site-header.scrolled .nav-link.active { color: var(--primary); }

/* Dropdown arrow */
.has-dropdown > .nav-link::after {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .25s ease;
  margin-left: 2px;
}
.has-dropdown:hover > .nav-link::after { transform: rotate(-135deg) translateY(2px); }

/* Dropdown menu */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 210px;
  background: var(--white);
  border: 1px solid rgba(16,53,84,.08);
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(16,53,84,.18);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 100;
  overflow: hidden;
}
.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 13px 20px;
  font-size: .84rem;
  font-weight: 600;
  color: var(--text);
  transition: background .2s ease, color .2s ease;
  border-bottom: 1px solid rgba(16,53,84,.06);
}
.dropdown-menu a:last-child { border-bottom: none; }
.dropdown-menu a:hover { background: var(--light-blue); color: var(--primary); }

/* Language toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 20px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 20px;
  padding: 3px;
  transition: background .45s ease, border-color .45s ease;
}
.site-header.scrolled .lang-toggle {
  background: var(--off-white);
  border-color: var(--border);
}
.lang-btn {
  background: none;
  border: none;
  padding: 4px 11px;
  font-size: .76rem;
  font-weight: 700;
  color: rgba(255,255,255,.75);
  border-radius: 14px;
  transition: background .25s ease, color .25s ease;
  letter-spacing: .06em;
}
.lang-btn.active { background: rgba(255,255,255,.9); color: var(--primary); }
.site-header.scrolled .lang-btn { color: var(--muted); }
.site-header.scrolled .lang-btn.active { background: var(--primary); color: var(--white); }

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 8px;
  padding: 10px;
  transition: background .45s ease, border-color .45s ease;
}
.site-header.scrolled .hamburger {
  background: none;
  border-color: var(--border);
}
.hamburger span {
  display: block;
  height: 1.5px;
  background: var(--white);
  border-radius: 2px;
  transition: background .45s ease, transform .3s ease, opacity .3s ease;
}
.site-header.scrolled .hamburger span { background: var(--primary); }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0; bottom: 0;
  background: var(--white);
  z-index: 999;
  overflow-y: auto;
  padding: 24px 20px 48px;
  flex-direction: column;
  gap: 2px;
}
.mobile-nav.open { display: flex; }
.mobile-nav-link {
  display: block;
  padding: 16px 18px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  border-radius: var(--radius);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
  letter-spacing: .01em;
}
.mobile-nav-link:hover { background: var(--light-blue); color: var(--primary); }
.mobile-nav-sub {
  padding-left: 36px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-body);
}
.mobile-lang-toggle {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.mobile-lang-btn {
  flex: 1;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: none;
  font-size: .85rem;
  font-weight: 700;
  color: var(--muted);
  transition: var(--transition);
  letter-spacing: .04em;
}
.mobile-lang-btn.active { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* ============================================================
   HERO SECTIONS
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 580px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(16,53,84,.48) 0%,
    rgba(16,53,84,.08) 55%,
    rgba(16,53,84,.18) 100%);
}
/* Kept for any remaining hero text (e.g. home page about section CTA) */
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding: 60px 20px;
}
.hero-eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 16px;
  padding: 6px 16px;
  border: 1px solid rgba(200,169,110,.5);
  border-radius: 20px;
}
.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.2rem, 6vw, 4rem);
  color: var(--white);
  margin-bottom: 12px;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: rgba(255,255,255,.88);
  margin-bottom: 32px;
  letter-spacing: .04em;
}
.hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,.82);
  line-height: 1.8;
  margin-bottom: 36px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .04em;
  transition: var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: var(--primary-dark);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,169,110,.4);
}
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.7);
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}
.btn-primary-dark {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary-dark:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn-sm { padding: 10px 22px; font-size: .82rem; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 64px 0; }
.section-light { background: var(--off-white); }
.section-blue { background: var(--primary); color: var(--white); }
.section-blue h2, .section-blue h3 { color: var(--white); }

.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title { margin-bottom: 16px; }
.section-subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}
.divider {
  width: 50px; height: 3px;
  background: var(--accent);
  margin: 16px auto 0;
  border-radius: 2px;
}
.divider-left { margin-left: 0; }

/* ============================================================
   HOME — ABOUT SECTION
   ============================================================ */
.home-about {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
.home-about-text { order: 2; }
.home-about-visual { order: 1; }
.home-about-visual img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.credentials-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
}
.credential-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--light-blue);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
}
.credential-item span {
  font-size: .88rem;
  font-weight: 600;
  color: var(--primary);
}

/* ============================================================
   PROCEDURES OVERVIEW
   ============================================================ */
.procedures-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.procedure-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
}
.procedure-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.procedure-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.procedure-card-body {
  padding: 28px;
}
.procedure-card-eyebrow {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.procedure-card h3 { margin-bottom: 12px; font-size: 1.5rem; }
.procedure-card p { font-size: .92rem; color: var(--text-body); margin-bottom: 20px; }
.procedure-list-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.procedure-tag {
  background: var(--light-blue);
  color: var(--primary);
  font-size: .75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
}

/* ============================================================
   PROCEDURE DETAIL PAGES
   ============================================================ */
.proc-nav {
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.proc-nav-inner {
  display: flex;
  gap: 0;
  padding: 0 20px;
  max-width: var(--max-w);
  margin: 0 auto;
  min-width: max-content;
}
.proc-nav-link {
  display: block;
  padding: 14px 18px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--muted);
  border-bottom: 3px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
  letter-spacing: .02em;
}
.proc-nav-link:hover,
.proc-nav-link.active {
  color: var(--primary);
  border-bottom-color: var(--accent);
}

.proc-section {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}
.proc-section:last-child { border-bottom: none; }
.proc-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: var(--primary);
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.proc-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.proc-header h2 {
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  margin-bottom: 0;
}
.proc-body {
  font-size: .97rem;
  line-height: 1.85;
  color: var(--text-body);
}
.proc-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin-bottom: 28px;
  display: block;
}
.proc-body p { margin-bottom: 14px; }
.proc-body ul {
  list-style: none;
  margin: 16px 0;
  padding-left: 0;
}
.proc-body ul li {
  padding: 8px 0 8px 24px;
  position: relative;
  border-bottom: 1px solid var(--border);
}
.proc-body ul li:before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 36px;
  overflow-x: auto;
}
.faq-tab {
  padding: 12px 24px;
  font-size: .88rem;
  font-weight: 700;
  color: var(--muted);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
  white-space: nowrap;
  letter-spacing: .04em;
}
.faq-tab.active { color: var(--primary); border-bottom-color: var(--accent); }
.faq-panel { display: none; }
.faq-panel.active { display: block; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--transition);
}
.faq-item.open { border-color: var(--primary); box-shadow: var(--shadow); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  cursor: pointer;
  gap: 16px;
  background: var(--white);
}
.faq-question h4 {
  font-size: .97rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
  line-height: 1.4;
  font-family: 'Lato', sans-serif;
}
.faq-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--light-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background: var(--primary);
  border-radius: 2px;
}
.faq-icon { position: relative; }
.faq-icon::before { width: 12px; height: 2px; }
.faq-icon::after { width: 2px; height: 12px; transition: var(--transition); }
.faq-item.open .faq-icon { background: var(--primary); }
.faq-item.open .faq-icon::before { background: white; }
.faq-item.open .faq-icon::after { background: white; transform: rotate(90deg); opacity: 0; }
.faq-answer {
  display: none;
  padding: 0 22px 20px;
  font-size: .93rem;
  line-height: 1.8;
  color: var(--text-body);
  border-top: 1px solid var(--border);
}
.faq-item.open .faq-answer { display: block; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}
.about-photo img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.cv-section { margin-top: 48px; }
.cv-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 24px;
}
.cv-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.cv-card h4 {
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
}
.cv-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: .88rem;
  line-height: 1.5;
}
.cv-item:last-child { border-bottom: none; }
.cv-item-year {
  font-weight: 700;
  color: var(--primary);
  min-width: 44px;
  flex-shrink: 0;
  font-size: .82rem;
}
.cv-item-text { color: var(--text-body); }

.publications-section { margin-top: 48px; }
.pub-list {
  margin-top: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.pub-item {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  font-size: .84rem;
  line-height: 1.6;
  color: var(--text-body);
}
.pub-item:last-child { border-bottom: none; }
.pub-item:nth-child(even) { background: var(--off-white); }
.pub-num {
  font-weight: 700;
  color: var(--primary);
  margin-right: 6px;
}
.pub-journal {
  font-style: italic;
  color: var(--muted);
}
.show-more-btn {
  margin-top: 16px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 20px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--primary);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.show-more-btn:hover { background: var(--light-blue); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.contact-item:last-child { border-bottom: none; }
.contact-icon {
  width: 44px; height: 44px;
  background: var(--light-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon svg { width: 20px; height: 20px; color: var(--primary); }
.contact-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.contact-value {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
}
.contact-value a { transition: var(--transition); }
.contact-value a:hover { color: var(--primary); }
.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.map-wrapper iframe { display: block; width: 100%; height: 380px; border: 0; }

/* Google Reviews */
.reviews-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
}
.reviews-banner h3 { color: var(--white); margin-bottom: 8px; font-size: 1.3rem; }
.reviews-banner p { color: rgba(255,255,255,.8); font-size: .9rem; margin-bottom: 20px; }
.stars { display: flex; justify-content: center; gap: 4px; margin-bottom: 16px; }
.star { font-size: 1.4rem; color: var(--accent); }
.reviews-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--primary);
  padding: 11px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .88rem;
  transition: var(--transition);
}
.reviews-btn:hover { background: var(--off-white); transform: translateY(-2px); }

/* WhatsApp float button */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 24px;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  z-index: 500;
  transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 8px 32px rgba(37,211,102,.5); }
.whatsapp-float svg { width: 30px; height: 30px; fill: white; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,.85);
  padding: 52px 0 28px;
}
.footer-contact-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .9rem;
  color: rgba(255,255,255,.78);
}
.footer-contact-item svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
  color: var(--accent);
}
.footer-contact-item a {
  color: rgba(255,255,255,.78);
  transition: color .25s ease;
}
.footer-contact-item a:hover { color: var(--white); }
.footer-bottom {
  text-align: center;
  font-size: .78rem;
  color: rgba(255,255,255,.4);
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }
.text-muted { color: var(--muted); }
.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.highlight-box {
  background: var(--light-blue);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: .93rem;
}
.badge {
  display: inline-block;
  background: var(--accent);
  color: var(--primary-dark);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

/* ============================================================
   RESPONSIVE — TABLET (768px+)
   ============================================================ */
@media (min-width: 768px) {
  .main-nav { display: flex; }
  .hamburger { display: none; }

  .home-about {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
  }
  .home-about-text { order: 1; }
  .home-about-visual { order: 2; }

  .procedures-grid { grid-template-columns: 1fr 1fr; }

  .about-grid { grid-template-columns: 3fr 2fr; }
  .about-photo { order: 2; }
  .about-text { order: 1; }

  .cv-grid { grid-template-columns: 1fr 1fr; }

  .contact-grid { grid-template-columns: 1fr 1fr; }

  .footer-contact-row {
    flex-direction: row;
    justify-content: center;
    gap: 48px;
    text-align: left;
  }

  .proc-header { align-items: flex-start; }

  .section { padding: 80px 0; }
}

/* ============================================================
   RESPONSIVE — TABLET LANDSCAPE / DESKTOP (1024px+)
   ============================================================ */
@media (min-width: 1024px) {
  :root { --header-h: 86px; }

  .home-about { gap: 80px; }

  .procedures-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .procedure-card-img { height: 280px; }

  .proc-body { font-size: 1rem; }

  .cv-grid { grid-template-columns: repeat(3, 1fr); }

  /* footer is now single-row, no grid needed */

  .contact-grid { grid-template-columns: 1fr 1.5fr; gap: 48px; }
}

/* ============================================================
   RESPONSIVE — WIDE DESKTOP (1280px+)
   ============================================================ */
@media (min-width: 1280px) {
  .container { padding: 0 32px; }
  .hero-content { max-width: 800px; }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in-up {
  animation: fadeInUp .7s cubic-bezier(.4,0,.2,1) both;
}
.delay-1 { animation-delay: .15s; }
.delay-2 { animation-delay: .3s; }
.delay-3 { animation-delay: .45s; }

/* Print */
@media print {
  .site-header, .site-footer, .whatsapp-float { display: none; }
  .hero { height: auto; min-height: 0; }
}

/* ============================================================
   PRELOADER
   ============================================================ */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity .65s ease, visibility .65s ease;
}
#preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader-logo {
  height: 304px;
  width: auto;
  animation: preloaderPulse 1.4s ease-in-out infinite alternate;
}
.preloader-bar {
  width: 40px;
  height: 2px;
  background: rgba(255,255,255,.15);
  border-radius: 2px;
  margin-top: 28px;
  overflow: hidden;
}
.preloader-progress {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  animation: preloaderSlide 1.1s ease-in-out infinite alternate;
}
@keyframes preloaderPulse {
  from { opacity: .65; transform: scale(.97); }
  to   { opacity: 1;   transform: scale(1);   }
}
@keyframes preloaderSlide {
  from { width: 10%; margin-left: 0; }
  to   { width: 90%; margin-left: 5%; }
}
