/* ============================================================
   911 ASESORÍA LABORAL — style.css
   Paleta: Azul marino profundo + Dorado jurídico + Crema
   Tipografía: Playfair Display (títulos) + Crimson Pro (cuerpo)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=Crimson+Pro:ital,wght@0,300;0,400;0,600;1,400&family=Barlow:wght@300;400;500&display=swap');

/* ── Variables ─────────────────────────────────────────── */
:root {
  --navy-dark:   #07111E;
  --navy:        #0D1B2A;
  --navy-light:  #162438;
  --gold:        #C9A84C;
  --gold-light:  #E8C96D;
  --gold-dark:   #A8893A;
  --gold-subtle: rgba(201,168,76,0.12);
  --cream:       #F8F4EE;
  --cream-dark:  #EDE8DF;
  --white:       #FFFFFF;
  --text-dark:   #0D1B2A;
  --text-body:   #2C3E50;
  --text-muted:  #6B7A8A;
  --border:      rgba(201,168,76,0.25);
  --shadow-gold: 0 8px 30px rgba(201,168,76,0.15);
  --shadow-dark: 0 8px 40px rgba(7,17,30,0.25);
  --radius:      4px;
  --transition:  0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Reset & Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 1.1rem;
  color: var(--text-body);
  background-color: var(--white);
  line-height: 1.75;
  overflow-x: hidden;
}

/* ── Tipografía ────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--text-dark);
  line-height: 1.25;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 900; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.45rem; font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }

p { margin-bottom: 1rem; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

/* ── Utilidades ────────────────────────────────────────── */
.text-gold       { color: var(--gold) !important; }
.text-navy       { color: var(--navy) !important; }
.text-cream      { color: var(--cream) !important; }
.bg-navy         { background-color: var(--navy) !important; }
.bg-navy-dark    { background-color: var(--navy-dark) !important; }
.bg-cream        { background-color: var(--cream) !important; }
.section-padding { padding: 100px 0; }

.section-title {
  margin-bottom: 1rem;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 52px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin-top: 14px;
  border-radius: 2px;
}
.section-title.centered::after { margin-left: auto; margin-right: auto; }
.section-subtitle {
  font-family: 'Barlow', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.divider-gold {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.4;
  margin: 60px 0;
}

/* ── Navbar ────────────────────────────────────────────── */
#mainNav {
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
  padding: 22px 0;
  z-index: 1050;
}
#mainNav.scrolled {
  background: rgba(7,17,30,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
  padding: 12px 0;
}
#mainNav .navbar-brand img,
#mainNav .navbar-brand svg { height: 46px; width: auto; }
#mainNav .nav-link {
  font-family: 'Barlow', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85) !important;
  padding: 6px 14px !important;
  position: relative;
  transition: color var(--transition);
}
#mainNav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 14px;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}
#mainNav .nav-link:hover,
#mainNav .nav-link.active { color: var(--gold) !important; }
#mainNav .nav-link:hover::after { width: calc(100% - 28px); }
.navbar-toggler { border-color: var(--gold); }

/* ── Menú colapsado en móvil — fondo sólido ───────────── */
@media (max-width: 991.98px) {
  #navbarNav {
    background: rgba(7,17,30,0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(201,168,76,0.2);
    border-radius: 0 0 8px 8px;
    padding: 12px 8px 16px;
    margin-top: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  }
  #navbarNav .nav-link {
    padding: 10px 18px !important;
    border-radius: 4px;
  }
  #navbarNav .nav-link:hover {
    background: rgba(201,168,76,0.08);
  }
  .btn-nav-cta {
    margin: 8px 18px 0;
    display: block;
    text-align: center;
  }
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23C9A84C' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.btn-nav-cta {
  font-family: 'Barlow', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--navy) !important;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: var(--radius);
  padding: 8px 20px !important;
  font-weight: 600;
  transition: all var(--transition);
}
.btn-nav-cta:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: var(--shadow-gold);
  transform: translateY(-1px);
}

/* ── Hero ──────────────────────────────────────────────── */
#inicio {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--navy-dark);
  overflow: hidden;
}
.hero-bg-placeholder {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(7,17,30,0.88) 0%, rgba(13,27,42,0.75) 50%, rgba(7,17,30,0.92) 100%),
    repeating-linear-gradient(
      45deg,
      rgba(201,168,76,0.03) 0px,
      rgba(201,168,76,0.03) 1px,
      transparent 1px,
      transparent 60px
    );
}
/* Imagen real irá aquí */
.hero-img-slot {
  position: absolute;
  inset: 0;
  background: var(--navy-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
}
.hero-img-slot .img-placeholder-label {
  font-family: 'Barlow', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  border: 1px dashed rgba(255,255,255,0.15);
  padding: 12px 24px;
  border-radius: var(--radius);
}
.hero-content { position: relative; z-index: 1; }
.hero-badge {
  display: inline-block;
  font-family: 'Barlow', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.4);
  border-radius: 2px;
  padding: 6px 16px;
  margin-bottom: 1.5rem;
}
.hero-title {
  color: var(--white);
  text-shadow: 0 2px 30px rgba(0,0,0,0.5);
  margin-bottom: 1.5rem;
}
.hero-title span { color: var(--gold); }
.hero-subtitle {
  font-family: 'Crimson Pro', serif;
  font-size: 1.25rem;
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  margin-bottom: 2.5rem;
  font-style: italic;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-gold {
  font-family: 'Barlow', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
  color: var(--navy-dark) !important;
  border: none;
  border-radius: var(--radius);
  padding: 14px 32px;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(201,168,76,0.3);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201,168,76,0.4);
  color: var(--navy-dark) !important;
}
.btn-outline-gold {
  font-family: 'Barlow', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  background: transparent;
  color: var(--white) !important;
  border: 1px solid rgba(201,168,76,0.5);
  border-radius: var(--radius);
  padding: 14px 32px;
  transition: all var(--transition);
}
.btn-outline-gold:hover {
  border-color: var(--gold);
  color: var(--gold) !important;
  background: rgba(201,168,76,0.08);
}
.hero-stats {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(201,168,76,0.2);
}
.hero-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}
.hero-stat-label {
  font-family: 'Barlow', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}

/* ── Scroll indicator ──────────────────────────────────── */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.6;
}
.scroll-indicator span {
  font-family: 'Barlow', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.scroll-mouse {
  width: 22px; height: 34px;
  border: 1.5px solid rgba(201,168,76,0.5);
  border-radius: 11px;
  position: relative;
}
.scroll-mouse::after {
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 3px; height: 7px;
  background: var(--gold);
  border-radius: 2px;
  animation: scrollDot 1.6s ease-in-out infinite;
}
@keyframes scrollDot {
  0%   { transform: translateX(-50%) translateY(0); opacity: 1; }
  100% { transform: translateX(-50%) translateY(12px); opacity: 0; }
}

/* ── Sección: Nosotros ─────────────────────────────────── */
#nosotros { background: var(--cream); }
.pillar-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 40px 32px;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: 0 2px 20px rgba(0,0,0,0.04);
}
.pillar-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.pillar-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-gold); }
.pillar-card:hover::before { transform: scaleX(1); }
.pillar-icon {
  width: 54px; height: 54px;
  background: var(--gold-subtle);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
  color: var(--gold);
}
.pillar-num {
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  font-weight: 900;
  color: var(--cream-dark);
  position: absolute;
  top: -10px; right: 20px;
  line-height: 1;
  pointer-events: none;
  z-index: 0;
}

/* ── Sección: Servicios ────────────────────────────────── */
#servicios { background: var(--white); }
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  height: 100%;
  transition: all var(--transition);
  position: relative;
}
.service-card:hover {
  background: var(--navy);
  border-color: var(--navy);
  transform: translateY(-4px);
  box-shadow: var(--shadow-dark);
}
.service-card:hover h4,
.service-card:hover p { color: var(--white); }
.service-card:hover .service-icon { color: var(--gold); background: rgba(201,168,76,0.1); }
.service-icon {
  font-size: 1.6rem;
  color: var(--gold);
  background: var(--gold-subtle);
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  transition: all var(--transition);
}
.service-card h4 { font-size: 1rem; margin-bottom: 0.4rem; transition: color var(--transition); }
.service-card p { font-size: 0.9rem; color: var(--text-muted); margin: 0; transition: color var(--transition); }

/* ── Sección: Especialistas ────────────────────────────── */
#especialistas { background: var(--navy); }
#especialistas h2,
#especialistas h3 { color: var(--white); }
#especialistas .section-subtitle { color: var(--gold); }
#especialistas .section-title::after { background: linear-gradient(90deg, var(--gold), var(--gold-light)); }
#especialistas p { color: rgba(255,255,255,0.75); }
.team-img-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  background: var(--navy-light);
  border: 2px dashed rgba(201,168,76,0.35);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(255,255,255,0.3);
}
.team-img-placeholder i { font-size: 3rem; color: rgba(201,168,76,0.3); }
.team-img-placeholder span {
  font-family: 'Barlow', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.team-img-placeholder small {
  font-size: 0.7rem;
  opacity: 0.6;
}
.feature-list { list-style: none; padding: 0; }
.feature-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.75);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1.05rem;
}
.feature-list li i { color: var(--gold); margin-top: 4px; flex-shrink: 0; }

/* ── Sección: Clientes ─────────────────────────────────── */
#clientes { background: var(--cream); }
.client-badge {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  text-align: center;
  transition: all var(--transition);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.client-badge:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}
.client-badge span {
  font-family: 'Crimson Pro', serif;
  font-size: 0.95rem;
  color: var(--text-body);
  font-weight: 600;
  line-height: 1.3;
}

/* ── Sección: Contacto ─────────────────────────────────── */
#contacto { background: var(--white); }
.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 40px;
  box-shadow: 0 4px 30px rgba(0,0,0,0.06);
}
.contact-info-card {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 48px 40px;
  height: 100%;
}
.contact-info-card h3 { color: var(--white); }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 2rem;
}
.contact-item-icon {
  width: 44px; height: 44px;
  background: rgba(201,168,76,0.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-item-text p { color: rgba(255,255,255,0.65); margin: 0; font-size: 0.95rem; }
.contact-item-text strong { color: var(--white); display: block; margin-bottom: 2px; font-family: 'Barlow', sans-serif; font-size: 0.78rem; letter-spacing: 1.5px; text-transform: uppercase; }

/* Formulario */
.form-label {
  font-family: 'Barlow', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 6px;
}
.form-control, .form-select {
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-family: 'Crimson Pro', serif;
  font-size: 1.05rem;
  color: var(--text-body);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus, .form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
  outline: none;
}
textarea.form-control { resize: vertical; min-height: 140px; }
.btn-submit {
  font-family: 'Barlow', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
  color: var(--navy-dark);
  border: none;
  border-radius: var(--radius);
  padding: 16px 40px;
  width: 100%;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(201,168,76,0.3);
}
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201,168,76,0.4);
}
.alert-success-custom {
  background: rgba(201,168,76,0.1);
  border: 1px solid var(--gold);
  color: var(--gold-dark);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-family: 'Crimson Pro', serif;
  font-size: 1.05rem;
  display: none;
}

/* ── Footer ────────────────────────────────────────────── */
#footer {
  background: var(--navy-dark);
  padding: 60px 0 32px;
  color: rgba(255,255,255,0.5);
}
#footer .footer-logo img,
#footer .footer-logo svg { height: 42px; width: auto; filter: brightness(10); opacity: 0.85; }
#footer .footer-tagline {
  font-family: 'Crimson Pro', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.45);
  margin-top: 8px;
}
.footer-heading {
  font-family: 'Barlow', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  color: rgba(255,255,255,0.5);
  font-size: 0.92rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--gold); }
.footer-divider {
  border: none;
  height: 1px;
  background: rgba(255,255,255,0.07);
  margin: 40px 0 28px;
}
.footer-copy {
  font-family: 'Barlow', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.3);
}
.footer-copy a { color: rgba(201,168,76,0.6); }
.footer-copy a:hover { color: var(--gold); }

/* ── WhatsApp Flotante ─────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 28px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  border-radius: 50px;
  padding: 13px 18px;
  box-shadow: 0 6px 24px rgba(37,211,102,0.4);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  overflow: hidden;
  max-width: 56px;
}
.whatsapp-float:hover {
  max-width: 240px;
  color: #fff;
  box-shadow: 0 8px 32px rgba(37,211,102,0.5);
}
.whatsapp-float i { font-size: 1.6rem; flex-shrink: 0; }
.whatsapp-float span {
  font-family: 'Barlow', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.25s 0.1s ease;
}
.whatsapp-float:hover span { opacity: 1; }
@keyframes waPulse {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
  70%  { box-shadow: 0 0 0 12px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
.whatsapp-float { animation: waPulse 2s infinite; }
.whatsapp-float:hover { animation: none; }

/* ── Animaciones de entrada ────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .section-padding { padding: 72px 0; }
  .contact-form-wrap { padding: 32px 24px; }
  .contact-info-card { padding: 32px 24px; margin-top: 28px; }
}
@media (max-width: 767.98px) {
  .hero-actions { flex-direction: column; }
  .btn-gold, .btn-outline-gold { text-align: center; }
  .hero-stats .col-4 { margin-bottom: 20px; }
  #mainNav .nav-link::after { display: none; }
  .pillar-num { font-size: 3.5rem; }

  /* ── Hero móvil ───────────────────────────── */
  /* La imagen de fondo real en móvil debe estar
     en formato retrato y con el sujeto centrado.
     Se aplica vía clase .hero-img-mobile si existe,
     o se posiciona el fondo con object-position top center */
  #inicio { min-height: 100svh; }

  /* Si usas la imagen real como <img> dentro de .hero-img-slot:
     el objeto se ancla arriba para mostrar la parte superior
     (rostros, logos, fachada de oficina) en pantallas altas y estrechas */
  .hero-img-slot img {
    object-position: top center;
  }

  /* Ajuste de tamaño tipográfico en hero para pantallas pequeñas */
  .hero-subtitle { font-size: 1.1rem; }
  .hero-stat-num { font-size: 1.8rem; }
  .hero-stats    { margin-top: 2.5rem; padding-top: 2rem; }
}
@media (max-width: 575.98px) {
  .section-padding { padding: 56px 0; }
  .whatsapp-float { bottom: 20px; right: 18px; }
}

/* ── Botón Scroll-to-Top ───────────────────────────────── */
#scrollTopBtn {
  position: fixed;
  bottom: 120px;          /* separación cómoda sobre el botón WhatsApp */
  right: 28px;
  z-index: 9998;
  width: 44px;
  height: 44px;
  background: var(--navy);
  border: 1px solid rgba(201,168,76,0.45);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.35s ease, visibility 0.35s ease,
              transform 0.35s ease, background 0.25s ease,
              box-shadow 0.25s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  text-decoration: none;
}
#scrollTopBtn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#scrollTopBtn:hover {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
  box-shadow: 0 6px 20px rgba(201,168,76,0.35);
  transform: translateY(-2px);
}
/* Móvil: ambos botones bajan un poco y se separan con margen generoso */
@media (max-width: 575.98px) {
  .whatsapp-float { bottom: 20px;  right: 18px; }
  #scrollTopBtn   { bottom: 88px;  right: 18px; width: 40px; height: 40px; font-size: 1rem; }
}

/* ── Foto real del especialista ────────────────────────── */
.team-photo-wrap {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
}
.team-photo {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: top center;
  display: block;
  border-radius: 6px;
  filter: brightness(0.97) contrast(1.05);
  transition: transform 0.5s ease, filter 0.5s ease;
}
.team-photo-wrap:hover .team-photo {
  transform: scale(1.03);
  filter: brightness(1) contrast(1.05);
}
.team-photo-wrap::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 38%;
  background: linear-gradient(to top, rgba(6,15,26,0.88) 0%, transparent 100%);
  pointer-events: none;
  border-radius: 0 0 6px 6px;
}
/* Badge debajo de la foto, no encima */
.team-photo-wrap::after {
  display: none;   /* quitar el degradado inferior, ya no hace falta */
}
.team-photo-badge {
  position: static;        /* sale del overlay */
  padding: 14px 4px 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.badge-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
}
.badge-role {
  font-family: 'Barlow', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #C9A84C;
}