/* ===================================================================
   Dental Tapia — main.css
   Sistema de diseño completo: tokens, layout, componentes, animaciones
   =================================================================== */

/* ── Google Fonts (cargado desde header) ───────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;0,700;1,400&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

/* ── Tokens de diseño ──────────────────────────────────────────────── */
:root {
  --navy:        #1A3F5C;
  --navy-deep:   #122C40;
  --blue:        #2B6FA8;
  --teal:        #337B7E;
  --teal-light:  #4A9699;
  --gold:        #B8892A;
  --gold-light:  #E8C96A;
  --cream:       #F5F1EA;
  --warm:        #FDFBF7;
  --text:        #2E2E2E;
  --muted:       #5F6B75;
  --rule:        #D8D0C4;
  --white:       #FFFFFF;
  --success:     #2D7A4F;
  --error:       #B83232;

  --shadow-xs:   0 1px 4px rgba(0,0,0,.06);
  --shadow-sm:   0 2px 10px rgba(26,63,92,.08);
  --shadow-md:   0 4px 20px rgba(26,63,92,.12);
  --shadow-lg:   0 8px 40px rgba(26,63,92,.16);
  --shadow-xl:   0 16px 60px rgba(26,63,92,.20);

  --r-sm:  6px;
  --r-md:  10px;
  --r-lg:  16px;
  --r-xl:  24px;

  --transition: .25s ease;
  --transition-slow: .45s ease;
}

/* ── Reset ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }

/* ── Base tipografía ────────────────────────────────────────────────── */
body {
  font-family: "Source Sans 3", sans-serif;
  font-size:   18px;
  line-height: 1.75;
  color:       var(--text);
  background:  var(--warm);
  overflow-x:  hidden;
}
h1, h2, h3, h4 {
  font-family: "Lora", serif;
  line-height: 1.25;
  color:       var(--navy);
}
h1 { font-size: clamp(2rem, 4vw, 3rem);   margin-bottom: 1rem; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin-bottom: .85rem; }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.35rem); }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
em { color: var(--teal); font-style: normal; }

/* ── Scroll progress bar ────────────────────────────────────────────── */
#scroll-progress {
  position: fixed;
  top:   0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  z-index: 9999;
  transition: width .1s linear;
}

/* ── Layout ─────────────────────────────────────────────────────────── */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
section { padding: 5.5rem 0; }

/* ── Labels de sección ──────────────────────────────────────────────── */
.label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .5rem;
}
.sec-head { margin-bottom: 3.5rem; }
.sec-head.center { text-align: center; }
.sec-head .desc {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 580px;
  margin-top: .35rem;
}
.sec-head.center .desc { margin: .35rem auto 0; }

/* ── Botones ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--r-sm);
  padding: .85rem 1.8rem;
  transition: all var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--blue);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-1px);
}
.btn-gold {
  background: var(--gold);
  color: var(--navy);
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-teal {
  background: var(--teal);
  color: var(--white);
}
.btn-teal:hover {
  background: var(--teal-light);
  transform: translateY(-1px);
}
.btn-lg { padding: 1rem 2.2rem; font-size: 1.1rem; }
.btn-sm { padding: .5rem 1.1rem; font-size: .88rem; }
.btn-block { display: flex; width: 100%; }

/* ── Accesibilidad ───────────────────────────────────────────────────── */
.a11y-bar {
  background: #EBF0F5;
  border-bottom: 1px solid var(--rule);
  padding: .35rem 1.5rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  color: var(--muted);
}
.a11y-bar button {
  background: var(--white);
  border: 1.5px solid var(--rule);
  border-radius: 4px;
  padding: .15rem .6rem;
  font-weight: 700;
  color: var(--navy);
  transition: background var(--transition);
}
.a11y-bar button:hover { background: var(--cream); }

/* ── Barra de teléfono ───────────────────────────────────────────────── */
.phone-bar {
  background: var(--navy);
  color: rgba(255,255,255,.8);
  text-align: center;
  padding: .65rem 1rem;
  font-size: .95rem;
}
.phone-bar a {
  color: var(--gold-light);
  font-weight: 700;
  text-decoration: none;
}
.phone-bar a:hover { text-decoration: underline; }

/* ── Navegación ──────────────────────────────────────────────────────── */
nav.main-nav {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
nav.main-nav.scrolled { box-shadow: var(--shadow-md); }

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Brand */
.nav-brand { text-decoration: none; display: flex; flex-direction: column; flex-shrink: 0; }
.brand-name {
  font-family: "Lora", serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}
.brand-sub { font-size: .72rem; color: var(--muted); letter-spacing: .4px; }

/* Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: .93rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: color var(--transition), border-color var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--navy); border-bottom-color: var(--gold); }
.nav-links a.nav-cta {
  background: var(--navy);
  color: var(--white);
  padding: .45rem 1.2rem;
  border-radius: var(--r-sm);
  border: none;
}
.nav-links a.nav-cta:hover { background: var(--blue); }

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--cream);
  border: 1.5px solid var(--rule);
  border-radius: 20px;
  padding: 2px;
  flex-shrink: 0;
}
.lang-switcher a {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .5px;
  text-decoration: none;
  padding: .2rem .6rem;
  border-radius: 16px;
  color: var(--muted);
  transition: all var(--transition);
}
.lang-switcher a.active {
  background: var(--navy);
  color: var(--white);
}
.lang-switcher a:not(.active):hover { color: var(--navy); }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: .4rem;
  cursor: pointer;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all .3s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--white);
  z-index: 850;
  flex-direction: column;
  padding: 6rem 2rem 2rem;
  gap: .5rem;
  animation: slideIn .3s ease;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  padding: .8rem 0;
  border-bottom: 1px solid var(--rule);
  display: block;
  transition: color var(--transition);
}
.nav-mobile a:hover { color: var(--navy); }
.nav-mobile .lang-switcher {
  margin-top: 1.5rem;
  width: fit-content;
}

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

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(145deg, #EEE8DC 0%, #E0EAF2 55%, #DDE9E6 100%);
  padding: 6rem 1.5rem 5rem;
  position: relative;
  overflow: hidden;
}
/* Decorative circles */
.hero::before, .hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: .06;
}
.hero::before {
  width: 500px; height: 500px;
  background: var(--navy);
  top: -200px; right: -150px;
}
.hero::after {
  width: 300px; height: 300px;
  background: var(--teal);
  bottom: -100px; left: -80px;
}

.hero-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-label {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}
.hero h1 { color: var(--navy); margin-bottom: 1.1rem; }
.hero-desc { font-size: 1.08rem; color: var(--muted); margin-bottom: 2rem; max-width: 480px; }
.hero-actions { display: flex; flex-direction: column; gap: .75rem; max-width: 320px; }
.hero-note { font-size: .88rem; color: var(--muted); margin-top: .25rem; }

/* Info panel */
.info-panel {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 2rem;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-lg);
}
.info-panel-title {
  font-family: "Lora", serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.2rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--rule);
}
.info-row { display: flex; gap: .85rem; margin-bottom: 1rem; align-items: flex-start; }
.info-row:last-child { margin-bottom: 0; }
.info-icon {
  width: 42px; height: 42px;
  background: var(--cream);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 700;
  color: var(--navy);
  flex-shrink: 0;
  letter-spacing: -1px;
}
.info-lbl { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: .1rem; }
.info-val { font-size: .95rem; font-weight: 600; color: var(--text); }
.info-val a { color: var(--navy); text-decoration: none; }
.info-val a:hover { text-decoration: underline; }
.open-tag {
  display: inline-flex; align-items: center; gap: .35rem;
  background: #EAF5EA; color: #2B6B2B;
  font-size: .78rem; font-weight: 700;
  padding: .2rem .7rem; border-radius: 20px; margin-top: .3rem;
}
.open-dot { width: 7px; height: 7px; background: #3DAA3D; border-radius: 50%; animation: pulse-green 2s infinite; }

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 0 rgba(61,170,61,.4); }
  50%       { box-shadow: 0 0 0 5px rgba(61,170,61,.0); }
}

/* ── Why Choose Us ───────────────────────────────────────────────────── */
.why-section { background: var(--white); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.why-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--r-md);
  border: 1px solid var(--rule);
  transition: all var(--transition);
}
.why-card:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.why-icon {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 1.2rem;
}
.why-card h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.why-card p  { font-size: .9rem; color: var(--muted); }

/* ── Services ─────────────────────────────────────────────────────────── */
.services-section { background: var(--cream); }
.srv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.3rem;
}
.srv-card {
  background: var(--white);
  border-radius: var(--r-md);
  padding: 1.8rem;
  border: 1px solid var(--rule);
  border-left: 4px solid var(--teal);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.srv-card:hover {
  border-left-color: var(--gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.srv-img-wrap {
  width: 100%;
  height: 160px;
  border-radius: var(--r-sm);
  overflow: hidden;
  margin-bottom: .5rem;
  background: var(--cream);
}
.srv-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.srv-card:hover .srv-img-wrap img { transform: scale(1.04); }
.srv-icon {
  font-size: 1.8rem;
  margin-bottom: .35rem;
}
.srv-title { font-size: 1.05rem; font-weight: 700; color: var(--navy); }
.srv-desc  { font-size: .9rem; color: var(--muted); flex: 1; }
.srv-cta-wrap { text-align: center; margin-top: 3rem; }

/* ── Cases / Clinical ──────────────────────────────────────────────────── */
.cases-section { background: var(--warm); }
.cases-filters {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.filter-btn {
  background: var(--white);
  border: 1.5px solid var(--rule);
  border-radius: 20px;
  padding: .35rem 1rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover  { border-color: var(--teal); color: var(--teal); }
.filter-btn.active {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.case-card {
  background: var(--white);
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition);
}
.case-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

/* Before/After slider */
.ba-slider {
  position: relative;
  overflow: hidden;
  height: 220px;
  cursor: col-resize;
  user-select: none;
}
.ba-before, .ba-after {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.ba-before img, .ba-after img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.ba-after { clip-path: inset(0 50% 0 0); transition: clip-path .05s linear; }
.ba-divider {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--white);
  z-index: 3;
  transition: left .05s linear;
}
.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px; height: 38px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem;
  color: var(--navy);
  z-index: 4;
  transition: left .05s linear;
  pointer-events: none;
}
.ba-label-before, .ba-label-after {
  position: absolute;
  bottom: .6rem;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(0,0,0,.5);
  color: var(--white);
  padding: .15rem .5rem;
  border-radius: 3px;
  z-index: 5;
  pointer-events: none;
}
.ba-label-before { left: .6rem; }
.ba-label-after  { right: .6rem; }

.case-body { padding: 1.2rem 1.4rem; }
.case-body h3 { font-size: 1rem; margin-bottom: .3rem; }
.case-body p  { font-size: .88rem; color: var(--muted); }
.case-badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  background: var(--cream);
  color: var(--teal);
  padding: .15rem .6rem;
  border-radius: 3px;
  margin-bottom: .5rem;
}

/* ── Office Gallery ───────────────────────────────────────────────────── */
.office-section { background: var(--cream); }
.office-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
}
.office-card {
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: var(--rule);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.office-card:hover { box-shadow: var(--shadow-lg); transform: scale(1.02); }
.office-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.office-card:hover img { transform: scale(1.06); }
.office-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,63,92,.7), transparent);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}
.office-card:hover .office-overlay { opacity: 1; }
.office-overlay span {
  font-size: .9rem;
  font-weight: 600;
  color: var(--white);
}

/* ── Contact ──────────────────────────────────────────────────────────── */
.contact-section { background: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  margin-bottom: 2.5rem;
}
.contact-card {
  background: var(--cream);
  border-radius: var(--r-md);
  padding: 1.8rem 2rem;
  border: 1px solid var(--rule);
  transition: all var(--transition);
}
.contact-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.contact-card-icon {
  width: 48px; height: 48px;
  background: var(--navy);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
.contact-card h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.contact-card p  { font-size: .9rem; color: var(--muted); margin-bottom: .5rem; }
.contact-card a.contact-link {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  margin-top: .5rem;
}
.contact-card a.contact-link:hover { color: var(--teal); }
.contact-card small { font-size: .82rem; color: var(--muted); }

/* Location + Hours */
.location-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.loc-block { background: var(--cream); border-radius: var(--r-md); padding: 1.8rem; border: 1px solid var(--rule); }
.loc-block h3 { font-size: 1.05rem; margin-bottom: .8rem; }
.loc-block p  { font-size: .95rem; color: var(--text); }

.hours-table { width: 100%; border-collapse: collapse; }
.hours-table tr { border-bottom: 1px solid var(--rule); }
.hours-table tr:last-child { border-bottom: none; }
.hours-table td { padding: .7rem .25rem; font-size: .95rem; color: var(--text); }
.hours-table td:last-child { text-align: right; font-weight: 700; color: var(--teal); }
.hours-table .today td { background: rgba(51,123,126,.06); }
.hours-table .today td:first-child { font-weight: 700; color: var(--navy); }
.hours-today-badge {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .72rem; font-weight: 700;
  background: #EAF5EA; color: #2B6B2B;
  padding: .1rem .5rem; border-radius: 10px; margin-left: .5rem;
}

.map-frame {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-md);
  min-height: 340px;
}
.map-frame iframe { display: block; width: 100%; min-height: 340px; border: 0; }

/* Transport note */
.transport-note {
  background: linear-gradient(135deg, #EBF2F8, #EAF0F5);
  border: 1px solid rgba(43,111,168,.15);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 1.4rem 1.8rem;
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  margin-top: 2rem;
}
.transport-note-icon { font-size: 1.6rem; flex-shrink: 0; }
.transport-note h4 { font-size: .9rem; color: var(--navy); margin-bottom: .2rem; }
.transport-note p  { font-size: .9rem; color: var(--muted); margin: 0; }

/* Patient note */
.patient-note {
  background: #FFF8E6;
  border-top: 3px solid var(--gold);
  border-radius: var(--r-md);
  padding: 1.4rem 1.8rem;
  font-size: .95rem;
  color: #5C3E00;
  margin-top: 2rem;
}
.patient-note strong { color: #3D2B00; }

/* ── Footer ──────────────────────────────────────────────────────────── */
footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,.5);
  padding: 3rem 1.5rem;
  text-align: center;
}
.footer-inner { max-width: 1120px; margin: 0 auto; }
.footer-brand {
  font-family: "Lora", serif;
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: .4rem;
}
.footer-links { display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; margin: 1rem 0; }
.footer-links a { font-size: .88rem; color: rgba(255,255,255,.5); text-decoration: none; transition: color var(--transition); }
.footer-links a:hover { color: var(--gold-light); }
.footer-divider { border: 0; border-top: 1px solid rgba(255,255,255,.1); margin: 1.2rem 0; }
footer a { color: var(--gold-light); text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer p { margin-bottom: .3rem; font-size: .88rem; }

/* ── WhatsApp floating button ────────────────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 1.8rem;
  right: 1.8rem;
  width: 58px; height: 58px;
  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: 800;
  text-decoration: none;
  animation: wa-bounce 3s ease infinite;
  transition: transform var(--transition), box-shadow var(--transition);
}
.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,.55);
  animation: none;
}
.wa-float svg { width: 30px; height: 30px; fill: white; }

@keyframes wa-bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

/* ── Lightbox ─────────────────────────────────────────────────────────── */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  animation: fadeIn .2s ease;
}
.lightbox-overlay.active { display: flex; }
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-xl);
}
.lightbox-caption {
  position: absolute;
  bottom: 1.5rem;
  left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.8);
  font-size: .9rem;
  text-align: center;
  background: rgba(0,0,0,.4);
  padding: .4rem 1rem;
  border-radius: 20px;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,255,255,.15);
  border: none;
  color: white;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
}
.lightbox-close { top: 1.2rem; right: 1.2rem; }
.lightbox-prev  { left: 1.2rem;  top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 1.2rem; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,.3); }

/* ── Notice banner ───────────────────────────────────────────────────── */
.notice-bar {
  background: #FFF8E6;
  border-top: 3px solid var(--gold);
  text-align: center;
  padding: .85rem 1.5rem;
  font-size: .92rem;
  color: #6B4A00;
}
.notice-bar strong { color: #3D2B00; }
.notice-bar a { color: var(--gold); font-weight: 700; text-decoration: none; }
.notice-bar a:hover { text-decoration: underline; }

/* ── Scroll reveal animations ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Page header (interior pages) ───────────────────────────────────── */
.page-header {
  background: linear-gradient(145deg, #1A3F5C, #2B6FA8);
  padding: 3.5rem 1.5rem;
  text-align: center;
  color: var(--white);
}
.page-header .label { color: var(--gold-light); }
.page-header h1 { color: var(--white); font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: .5rem; }
.page-header p { color: rgba(255,255,255,.7); font-size: 1rem; max-width: 560px; margin: 0 auto; }

/* ── HR rule ─────────────────────────────────────────────────────────── */
hr.rule { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .info-panel { display: none; }
  .nav-links  { display: none; }
  .nav-hamburger { display: flex; }
  .location-row { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .contact-grid   { grid-template-columns: 1fr; }
  .why-grid       { grid-template-columns: 1fr; }
  .cases-grid, .srv-grid, .office-grid { grid-template-columns: 1fr; }
  section         { padding: 3.5rem 0; }
  .hero           { padding: 3.5rem 1.2rem 3rem; }
  h1              { font-size: 1.8rem; }
}

@media (max-width: 480px) {
  body            { font-size: 17px; }
  .nav-inner      { height: 60px; }
  .wa-float       { bottom: 1.2rem; right: 1.2rem; width: 52px; height: 52px; }
}
