/* =========================================================
   Dra. Jenny Armijos — Otorrinolaringóloga / Rinoplastia
   Design system: elegante, cálido, confianza clínica premium
   ========================================================= */

:root {
  --navy: #141414;
  --navy-deep: #0a0a0a;
  --gold: #c9a24b;
  --gold-light: #e6c877;
  --cream: #fafafa;
  --cream-dark: #f2f0ec;
  --paper: #ffffff;
  --ink: #16171a;
  --ink-soft: #5a5a5f;
  --line: #e4e4e0;

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Jost", "Segoe UI", sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow-soft: 0 20px 45px -20px rgba(0, 0, 0, 0.25);
  --shadow-card: 0 10px 30px -12px rgba(0, 0, 0, 0.18);
  --container: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

/* Reveal-on-scroll base state — kept early in the cascade so later
   component rules (hover transitions, etc.) aren't clobbered by this
   shorthand `transition` declaration. */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.12;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 14px;
}

.eyebrow-light { color: var(--gold-light); }

section { position: relative; padding: 110px 0; }

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head h2 { font-size: clamp(2rem, 4vw, 2.6rem); margin-bottom: 16px; }

.section-lead { color: var(--ink-soft); font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 32px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.98rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--navy-deep);
  box-shadow: 0 10px 24px -8px rgba(201, 162, 75, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgba(201, 162, 75, 0.65); }

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }

.btn-small { padding: 12px 26px; font-size: 0.9rem; }
.btn-full { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 18px 0;
  transition: background 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease;
}

.site-header.scrolled {
  background: rgba(250, 250, 250, 0.92);
  backdrop-filter: blur(10px);
  padding: 10px 0;
  box-shadow: 0 8px 24px -16px rgba(0, 0, 0,0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo { display: flex; align-items: center; gap: 12px; }

.logo-mark {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--navy-deep);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
}
.site-header:not(.scrolled) .logo-text { color: #fff; }
.logo-text em { color: var(--gold); font-style: normal; }

.main-nav { display: flex; align-items: center; gap: 30px; }

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255,255,255,0.88);
  position: relative;
  padding: 4px 0;
  transition: color 0.25s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--gold-light);
  transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }
.nav-cta::after { display: none; }
.site-header.scrolled .nav-link { color: var(--ink); }
.nav-link:hover { color: var(--gold-light); }
.site-header.scrolled .nav-link:hover { color: var(--gold); }
.site-header.scrolled .nav-link::after { background: var(--gold); }

.nav-cta {
  background: var(--gold);
  color: var(--navy-deep) !important;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--gold-light); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.site-header.scrolled .nav-toggle span { background: var(--navy); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  color: #fff;
  overflow: hidden;
  position: relative;
  padding: 0;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.hero-copy-panel {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 150px 5vw 80px clamp(28px, 6vw, 90px);
  background: radial-gradient(ellipse at top left, #1c1c1e, var(--navy-deep) 70%);
}

.hero-decor { position: absolute; inset: 0; z-index: 0; opacity: 0.9; }
.hero-svg { width: 100%; height: 100%; }
.hero-svg .float-slow { animation: floatY 9s ease-in-out infinite; transform-origin: center; }
.hero-svg .float-slower { animation: floatY 13s ease-in-out infinite reverse; transform-origin: center; }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

.hero-copy-inner {
  position: relative;
  z-index: 1;
  max-width: 540px;
}

.hero-photo-panel {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 85%, #241f14 0%, var(--navy-deep) 62%);
}

.hero-photo-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 98%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 30px 40px rgba(0,0,0,0.45));
  opacity: 0;
  z-index: 0;
  transition: opacity 1.4s ease;
}
.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}
.hero-photo-panel::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 170px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent);
  z-index: 2;
  pointer-events: none;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.86);
  max-width: 520px;
  margin: 22px 0 28px;
}
.hero-subtitle strong { color: var(--gold-light); font-weight: 600; }

.hero h1 { font-size: clamp(2.6rem, 5.5vw, 4.2rem); color: #fff; }

.hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  color: var(--gold-light);
  margin: 14px 0 20px;
  position: relative;
  padding-left: 22px;
}
.hero-tagline::before {
  content: "";
  position: absolute;
  left: 0; top: 0.35em;
  width: 12px; height: 1px;
  background: var(--gold-light);
}

.hero-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}
.credential-chip {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.92);
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.scroll-cue {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 20px;
  z-index: 2;
}
.scroll-cue span {
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  background: var(--gold-light);
  border-radius: 3px;
  animation: scrollDown 1.8s ease infinite;
}
@keyframes scrollDown {
  0% { opacity: 1; top: 8px; }
  100% { opacity: 0; top: 22px; }
}

/* ---------- About / Conoce ---------- */
.about { background: var(--paper); padding: 0; overflow: hidden; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 720px;
}

.about-media { position: relative; overflow: hidden; }
.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}

.about-copy-wrap {
  display: flex;
  align-items: center;
  padding: 90px clamp(28px, 6vw, 90px) 90px 64px;
}

.about-copy { max-width: 520px; }
.about-copy h2 { font-size: clamp(1.9rem, 3.6vw, 2.5rem); margin-bottom: 18px; }
.about-copy p { color: var(--ink-soft); font-size: 1.02rem; margin-bottom: 30px; }

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.stat {
  border-left: 3px solid var(--gold);
  padding-left: 14px;
}
.stat strong { display: block; font-family: var(--font-display); font-size: 1.7rem; color: var(--navy); }
.stat span { font-size: 0.82rem; color: var(--ink-soft); }

/* ---------- Services ---------- */
.services {
  background: radial-gradient(ellipse at top right, #1c1c1e, var(--navy-deep) 65%);
}
.services .section-head h2 { color: #fff; }
.services .section-lead { color: rgba(255, 255, 255, 0.72); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: opacity 0.6s ease, transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 20px 45px -20px rgba(0, 0, 0, 0.6);
  border-color: var(--gold);
}
.services-grid .service-card:nth-child(1) { transition-delay: 0s; }
.services-grid .service-card:nth-child(2) { transition-delay: .06s; }
.services-grid .service-card:nth-child(3) { transition-delay: .12s; }
.services-grid .service-card:nth-child(4) { transition-delay: .18s; }
.services-grid .service-card:nth-child(5) { transition-delay: .06s; }
.services-grid .service-card:nth-child(6) { transition-delay: .12s; }
.services-grid .service-card:nth-child(7) { transition-delay: .18s; }
.services-grid .service-card:nth-child(8) { transition-delay: .24s; }

.service-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(201, 162, 75, 0.12);
  border: 1px solid rgba(201, 162, 75, 0.35);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.service-card h3 { font-size: 1.15rem; margin-bottom: 10px; color: #fff; }
.service-card p { color: rgba(255, 255, 255, 0.68); font-size: 0.92rem; }

/* ---------- Cases ---------- */
.cases { background: var(--paper); }

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.case-card {
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: opacity 0.6s ease, transform 0.35s ease, box-shadow 0.35s ease;
}
.case-card:hover { transform: translateY(-6px); box-shadow: 0 20px 45px -18px rgba(0,0,0,0.28); }
.cases-grid .case-card:nth-child(1) { transition-delay: 0s; }
.cases-grid .case-card:nth-child(2) { transition-delay: .1s; }
.cases-grid .case-card:nth-child(3) { transition-delay: .2s; }
.cases-grid .case-card:nth-child(4) { transition-delay: .06s; }
.cases-grid .case-card:nth-child(5) { transition-delay: .16s; }
.cases-grid .case-card:nth-child(6) { transition-delay: .26s; }

.case-images { display: grid; grid-template-columns: 1fr 1fr; }
.case-img {
  aspect-ratio: 1/1;
  background: linear-gradient(160deg, #e8e4da, #d0cabb);
  display: flex; align-items: center; justify-content: center;
  color: rgba(0, 0, 0,0.55);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
}
.case-img:first-child { border-right: 1px solid rgba(255,255,255,0.5); }

.case-info { padding: 22px 24px; }
.case-info h3 { font-size: 1.1rem; margin-bottom: 8px; }
.case-info p { color: var(--ink-soft); font-size: 0.9rem; }

.cases-note {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
  margin-top: 36px;
  font-style: italic;
}

.cases-page { padding-top: 90px; }
.cases-cta { text-align: center; margin-top: 48px; }

/* ---------- Page banner (subpages) ---------- */
.page-banner {
  position: relative;
  overflow: hidden;
  padding: 180px 0 90px;
  text-align: center;
  color: #fff;
  background: radial-gradient(ellipse at top right, #1c1c1e, var(--navy-deep) 65%);
}
.page-banner-decor { position: absolute; inset: 0; z-index: 0; opacity: 0.9; }
.page-banner .container { position: relative; z-index: 1; }
.page-banner h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: #fff;
  margin: 16px 0 18px;
}
.page-banner-lead {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.05rem;
  max-width: 620px;
  margin: 0 auto;
}

/* ---------- Gallery ---------- */
.gallery { background: var(--cream); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 160px;
  gap: 20px;
}

.gallery-item {
  border-radius: var(--radius-sm);
  background: linear-gradient(160deg, #232326, #101012);
  display: flex; align-items: flex-end;
  padding: 16px;
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  transition: opacity 0.6s ease, transform 0.3s ease;
}
.gallery-item:nth-child(3n+1) { background: linear-gradient(160deg, #2c2c2f, #0f0f11); }
.gallery-item:nth-child(3n+2) { background: linear-gradient(160deg, #262628, #1a1a1c); }
.gallery-item.tall { grid-row: span 2; }
.gallery-grid .gallery-item:nth-child(1) { transition-delay: 0s; }
.gallery-grid .gallery-item:nth-child(2) { transition-delay: .08s; }
.gallery-grid .gallery-item:nth-child(3) { transition-delay: .16s; }
.gallery-grid .gallery-item:nth-child(4) { transition-delay: .08s; }
.gallery-grid .gallery-item:nth-child(5) { transition-delay: .16s; }
.gallery-grid .gallery-item:nth-child(6) { transition-delay: .24s; }
.gallery-item:hover { transform: scale(1.02); }

/* ---------- Payment Methods ---------- */
.payment-methods { background: var(--navy-deep); }
.payment-methods .section-head h2 { color: #fff; }
.payment-methods .section-lead { color: rgba(255, 255, 255, 0.72); }

.payment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.payment-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 32px 26px;
  text-align: center;
  transition: opacity 0.6s ease, transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.payment-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--gold);
  box-shadow: 0 20px 45px -20px rgba(0, 0, 0, 0.6);
}
.payment-grid .payment-card:nth-child(1) { transition-delay: 0s; }
.payment-grid .payment-card:nth-child(2) { transition-delay: .08s; }
.payment-grid .payment-card:nth-child(3) { transition-delay: .16s; }
.payment-grid .payment-card:nth-child(4) { transition-delay: .24s; }

.payment-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(201, 162, 75, 0.12);
  border: 1px solid rgba(201, 162, 75, 0.35);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 18px;
}

.payment-card h3 { font-size: 1.05rem; margin-bottom: 8px; color: #fff; }
.payment-card p { color: rgba(255, 255, 255, 0.68); font-size: 0.88rem; }

/* ---------- Appointment ---------- */
.appointment {
  background: radial-gradient(ellipse at bottom left, #1c1c1e, var(--navy-deep) 70%);
  color: #fff;
}

.appointment-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.appointment-info h2 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.5rem); margin-bottom: 16px; }
.appointment-info > p { color: rgba(255,255,255,0.8); margin-bottom: 30px; max-width: 440px; }

.info-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 30px; }
.info-list li {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.88);
}
.info-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.social-row { display: flex; gap: 14px; }
.social-row a {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  font-size: 0.85rem;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.social-row a:hover { background: rgba(255,255,255,0.1); border-color: var(--gold-light); }

.appointment-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 34px;
  color: var(--ink);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.4);
}

.mode-toggle {
  display: flex;
  background: var(--cream);
  border-radius: 999px;
  padding: 5px;
  margin-bottom: 26px;
}
.mode-btn {
  flex: 1;
  padding: 11px 16px;
  border: none;
  background: transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}
.mode-btn.active {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--navy-deep);
}

.appointment-form { display: flex; flex-direction: column; gap: 16px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.appointment-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.appointment-form input,
.appointment-form select,
.appointment-form textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--cream);
  transition: border-color 0.25s ease;
}
.appointment-form input:focus,
.appointment-form select:focus,
.appointment-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.appointment-form textarea { resize: vertical; }

.form-note {
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 4px;
}

/* ---------- Map block (bottom of Agenda section) ---------- */
.map-block {
  margin-top: 70px;
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.85fr 1.35fr;
  box-shadow: 0 30px 70px -28px rgba(0, 0, 0, 0.6);
}

.map-block-info {
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.map-block-info h3 { font-size: 1.5rem; }
.map-block-info p { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.7; }

.map-embed { min-height: 340px; background: var(--cream-dark); }
.map-embed iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  align-self: flex-start;
  margin-top: 6px;
}
.btn-whatsapp:hover { background: #20bd5a; transform: translateY(-2px); }
.btn-whatsapp svg { width: 20px; height: 20px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.75); padding: 64px 0 0; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand strong { display: block; color: #fff; font-family: var(--font-display); font-size: 1.15rem; }
.footer-brand p { font-size: 0.82rem; color: rgba(255,255,255,0.6); }

.footer-nav { display: flex; flex-direction: column; gap: 10px; font-size: 0.9rem; }
.footer-nav a:hover { color: var(--gold-light); }

.footer-contact { font-size: 0.9rem; display: flex; flex-direction: column; gap: 8px; }

.footer-bottom {
  padding: 22px 28px;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}

/* ---------- Floating social buttons (WhatsApp / Instagram) ---------- */
.float-stack {
  position: fixed;
  bottom: 26px; right: 26px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.float-btn {
  position: relative;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px -8px rgba(0,0,0,0.4);
  color: #fff;
  transition: transform 0.25s ease;
}
.float-btn svg { width: 28px; height: 28px; }
.float-btn:hover { transform: scale(1.08); }

.float-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: pulseRing 2.6s ease-out infinite;
  z-index: -1;
}

.whatsapp-float { background: #25D366; }
.whatsapp-float::before { background: #25D366; }

.instagram-float {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}
.instagram-float::before {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  animation-delay: 1.3s;
}

@keyframes pulseRing {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .appointment-grid { grid-template-columns: 1fr; }

  .hero-split { grid-template-columns: 1fr; min-height: auto; }
  .hero-photo-panel { order: -1; height: 54vh; min-height: 380px; }
  .hero-copy-panel { padding: 56px 28px 64px; }

  .about-grid { grid-template-columns: 1fr; min-height: auto; }
  .about-media { height: 56vh; min-height: 380px; }
  .about-copy-wrap { padding: 64px 28px; justify-content: center; text-align: center; }
  .about-copy { max-width: 560px; }
  .about-stats { justify-items: center; }
  .stat { border-left: none; border-top: 3px solid var(--gold); padding-left: 0; padding-top: 10px; text-align: center; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .payment-grid { grid-template-columns: repeat(2, 1fr); }
  .cases-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { justify-content: center; }
  .info-list li { justify-content: center; }
  .map-block { grid-template-columns: 1fr; }
  .map-block-info { text-align: center; align-items: center; }
  .btn-whatsapp { align-self: center; }
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    top: 0; right: -100%;
    width: min(320px, 82vw);
    height: 100vh;
    background: var(--navy-deep);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 26px;
    padding: 40px;
    transition: right 0.35s ease;
    z-index: 250;
  }
  .main-nav.open { right: 0; box-shadow: -20px 0 50px rgba(0,0,0,0.35); }
  .main-nav .nav-link { color: #fff; font-size: 1.05rem; }
  .nav-toggle { display: flex; }
  .nav-cta { align-self: flex-start; }
}

@media (max-width: 640px) {
  section { padding: 80px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .payment-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 130px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}
