/* ===================================================
   CLA - Consultoría Legal y Arbitraje
   Global Stylesheet
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* ===================================================
   DESIGN TOKENS
   =================================================== */
:root {
  /* Brand */
  --brand-burgundy:       #A93541;
  --brand-burgundy-hover: #902D37;
  --brand-brown:          #604B3D;
  --brand-brown-deep:     #43342B;
  --brand-slate:          #899DAB;

  /* Neutrals */
  --paper:         #FBFAF9;
  --surface:       #FFFFFF;
  --border:        #E0DDDD;
  --border-strong: #C8C4C2;

  /* Text */
  --text:       #1D1C1F;
  --text-muted: #5E5B59;
  --text-light: #8A8784;

  /* Surfaces */
  --gray-100: #F5F3F1;
  --gray-200: #EAE7E5;

  /* Shadows — discretas, sin glow */
  --shadow-sm: 0 1px 4px rgba(29,28,31,.07), 0 2px 8px rgba(29,28,31,.05);
  --shadow-md: 0 4px 16px rgba(29,28,31,.10), 0 1px 4px rgba(29,28,31,.06);
  --shadow-lg: 0 8px 32px rgba(29,28,31,.12), 0 2px 8px rgba(29,28,31,.06);

  /* Transitions */
  --transition: 0.22s ease;

  /* ── Compatibilidad: aliases para variables legacy en HTML inline ── */
  --gold:      var(--brand-burgundy);  /* reemplaza referencias a --gold */
  --navy:      var(--brand-brown-deep);
  --navy-light: #5a4438;
  --white:     var(--surface);
  --gray-600:  var(--text-muted);
}

/* ===================================================
   MOTION — accesibilidad
   =================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===================================================
   RESET
   =================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--surface);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===================================================
   LUCIDE ICONS — base
   =================================================== */
[data-lucide],
svg.lucide {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  color: inherit;         /* hereda el color del contexto */
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
/* Iconos dentro de botones — alineación precisa */
.btn [data-lucide],
.btn svg.lucide {
  margin-top: -1px;
}

/* ===================================================
   TIPOGRAFÍA
   =================================================== */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: clamp(1.05rem, 2vw, 1.3rem); }

.subtitle {
  font-size: 1.02rem;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.75;
}

/* ===================================================
   UTILIDADES
   =================================================== */
.container   { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.section     { padding: 88px 0; }
.text-center { text-align: center; }

.section-alt  { background: var(--paper); }
.section-dark {
  background: var(--brand-brown-deep);
  color: var(--surface);
}

/* Badge — eyebrow */
.badge {
  display: inline-block;
  font-size: .69rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-burgundy);
  background: rgba(169,53,65,.07);
  border: 1px solid rgba(169,53,65,.18);
  border-radius: 2px;
  padding: 4px 10px;
  margin-bottom: 1rem;
}

/* Divider */
.divider {
  width: 36px; height: 2px;
  background: var(--brand-burgundy);
  border-radius: 1px;
  margin: 1rem 0;
}
.divider.centered { margin: 1rem auto; }

/* Section header */
.section-header { margin-bottom: 3.5rem; }
.section-header .subtitle { margin-top: .75rem; max-width: 560px; }
.section-header.centered { display: flex; flex-direction: column; align-items: center; }
.section-header.centered .subtitle { text-align: center; }
/* Ajuste local: solo para bloque Equipo especializado en home */
#equipo-home .section-header { margin-bottom: 1.5rem; }

.text-accent { color: var(--brand-burgundy); }

/* ===================================================
   BOTONES
   =================================================== */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .78rem 1.8rem;
  border-radius: 3px;
  font-family: 'Inter', sans-serif;
  font-size: .88rem; font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  border: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  text-decoration: none;
}

/* PRIMARY */
.btn-primary {
  background: var(--brand-burgundy);
  color: var(--surface);
}
.btn-primary:hover { background: var(--brand-burgundy-hover); }
.btn-primary:focus-visible {
  outline: 2px solid var(--brand-burgundy);
  outline-offset: 3px;
}

/* OUTLINE sobre oscuro */
.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.45);
  color: var(--surface);
}
.btn-outline:hover {
  background: var(--surface);
  border-color: var(--surface);
  color: var(--brand-brown-deep);
}
.btn-outline:focus-visible {
  outline: 2px solid var(--surface);
  outline-offset: 3px;
}

/* OUTLINE sobre claro */
.btn-outline-dark {
  background: transparent;
  border: 1.5px solid var(--brand-brown);
  color: var(--brand-brown-deep);
}
.btn-outline-dark:hover {
  background: var(--brand-brown-deep);
  border-color: var(--brand-brown-deep);
  color: var(--surface);
}
.btn-outline-dark:focus-visible {
  outline: 2px solid var(--brand-burgundy);
  outline-offset: 3px;
}

/* WHATSAPP — verde profundo, integrado, no fluorescente */
.btn-whatsapp {
  background: #2A7A4F;   /* verde apagado, no #25D366 */
  color: var(--surface);
  border: 1.5px solid transparent;
}
.btn-whatsapp:hover {
  background: #1F5F3C;
}
.btn-whatsapp:focus-visible {
  outline: 2px solid #2A7A4F;
  outline-offset: 3px;
}

/* ===================================================
   NAVBAR
   =================================================== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--brand-brown-deep);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem; max-width: 1180px; margin: 0 auto; height: 78px;
}
.nav-logo { display: flex; align-items: center; gap: .9rem; }
.nav-logo-icon {
  width: 52px; height: 52px;
  background: var(--brand-burgundy);
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.18rem; font-weight: 700; color: var(--surface);
}
.nav-logo-text strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.12rem; color: var(--surface);
}
.nav-logo-text span {
  font-size: .68rem; color: rgba(255,255,255,.62);
  letter-spacing: .08em; text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: .2rem; }
.nav-links a {
  color: rgba(255,255,255,.72);
  font-size: .84rem; font-weight: 500;
  padding: .45rem .8rem; border-radius: 2px;
  letter-spacing: .03em;
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--surface);
  background: rgba(255,255,255,.08);
}
.nav-cta {
  font-size: .82rem !important;
  background: var(--brand-burgundy) !important;
  color: var(--surface) !important;
  font-weight: 600 !important;
  padding: .42rem 1.1rem !important;
  border-radius: 3px !important;
}
.nav-cta:hover { background: var(--brand-burgundy-hover) !important; }

.hamburger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 6px;
  background: rgba(255,255,255,.04);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.hamburger:hover {
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.34);
  box-shadow: 0 6px 18px rgba(0,0,0,.20);
}
.hamburger span {
  width: 20px;
  height: 2px;
  background: var(--surface);
  border-radius: 999px;
  transition: transform .24s ease, opacity .24s ease;
}

/* ===================================================
   HERO — imagen restaurada
   =================================================== */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  background: var(--brand-brown-deep);
}

/* Imagen de fondo: visible y presente */
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('../assets/img/hero_bg.png');
  background-size: cover; background-position: center;
  opacity: .46;   /* restaurado desde .12 — imagen presente sin dominar */
}

/* Overlay: permite que la imagen respire */
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    155deg,
    rgba(67,52,43,.68) 40%,    /* izquierda: legible */
    rgba(67,52,43,.30) 100%    /* derecha: imagen visible */
  );
}

.hero-content {
  position: relative; z-index: 2;
  max-width: 760px; padding-top: 68px;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .71rem; font-weight: 600; letter-spacing: .13em;
  text-transform: uppercase; color: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.05);
  padding: 5px 13px; border-radius: 2px;
  margin-bottom: 1.5rem;
  animation: fadeInUp .6s ease both;
}
.hero h1 {
  color: var(--surface);
  font-weight: 700;
  animation: fadeInUp .65s .1s ease both;
}
/* Acento — plate slate (azul-gris institucional, no dorado) */
.hero h1 em {
  font-style: normal;
  color: var(--brand-slate);
}
.hero-sub {
  margin: 1.3rem 0 .8rem;
  font-size: 1.02rem; color: rgba(255,255,255,.78);
  max-width: 600px; line-height: 1.75;
  animation: fadeInUp .65s .2s ease both;
}
.hero-text {
  font-size: .9rem; color: rgba(255,255,255,.52);
  max-width: 580px;
  animation: fadeInUp .65s .3s ease both;
}
.hero-btns {
  display: flex; gap: 1rem; flex-wrap: wrap;
  margin-top: 2.2rem;
  animation: fadeInUp .65s .4s ease both;
}
.hero-stats {
  display: flex; gap: 2.5rem; flex-wrap: wrap;
  margin-top: 3rem; padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.10);
  animation: fadeInUp .65s .5s ease both;
}
.hero-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem; font-weight: 700;
  color: var(--surface);
  letter-spacing: -.01em;
}
.hero-stat-label {
  font-size: .76rem; color: rgba(255,255,255,.50);
  text-transform: uppercase; letter-spacing: .08em;
  margin-top: .2rem;
}

/* ===================================================
   ABOUT SNIPPET
   =================================================== */
.about-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-layout { display: grid; grid-template-columns: 360px 1fr; gap: 3rem; align-items: start; }
.about-content { min-width: 0; }
.about-img-wrap {
  position: relative; border-radius: 3px; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-img-wrap img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.about-img-badge {
  position: absolute; bottom: 1.5rem; left: 1.5rem;
  background: var(--brand-burgundy);
  color: var(--surface);
  padding: .85rem 1.25rem; border-radius: 3px;
  font-weight: 600; font-size: .83rem;
  box-shadow: var(--shadow-md);
}

.about-points { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.about-point {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1rem 1.2rem;
  background: var(--paper);
  border-left: 3px solid var(--brand-burgundy);
  border-radius: 0 3px 3px 0;
}
.about-point-icon {
  flex-shrink: 0; margin-top: .15rem;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-burgundy);
  font-size: 1rem;   /* si se usa SVG hereda el color */
}
.about-point-text h4 { font-size: .93rem; margin-bottom: .15rem; color: var(--text); }
.about-point-text p  { font-size: .84rem; color: var(--text-muted); }

/* Nosotros: slider de personas */
.about-people-slider {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
  padding: 1rem;
}
.about-slider-track { position: relative; min-height: 320px; }
.about-person-slide { display: none; }
.about-person-slide.is-active { display: block; }
.about-person-media {
  position: relative;
  max-width: 260px;
  margin: 0 auto;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.about-person-media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 18%;
}
.about-person-media .about-photo-milagros { object-position: 50% 22%; }
.about-person-media .about-photo-scarlet { object-position: 50% 22%; }
.about-person-media .about-photo-anderson { object-position: 50% 14%; }
.about-person-media .about-photo-cesar { object-position: 50% 20%; }
.about-person-media .about-photo-manuel { object-position: 50% 20%; }
.about-person-media .about-photo-marissa { object-position: 50% 24%; }
.about-person-media .about-photo-miguel { object-position: 50% 20%; }
.about-badge-icon {
  width: 14px;
  height: 14px;
  stroke-width: 2;
  vertical-align: middle;
  margin-right: 6px;
}
.about-person-media .about-img-badge {
  bottom: .85rem;
  left: .85rem;
  padding: .55rem .8rem;
  font-size: .71rem;
}
.about-point-svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}
.about-team-cta-wrap { margin-top: 2rem; }
.about-slider-controls {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  gap: .75rem;
}
.about-slider-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  background: var(--paper);
  color: var(--text);
  border-radius: 2px;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}
.about-slider-btn:hover { background: var(--gray-200); }
.about-slider-dots {
  display: flex;
  justify-content: center;
  gap: .45rem;
}
.about-dot {
  width: 8px;
  height: 8px;
  border: none;
  border-radius: 999px;
  background: rgba(29, 28, 31, .25);
  cursor: pointer;
}
.about-dot.is-active { background: var(--brand-burgundy); }

/* ===================================================
   SERVICIOS GRID
   =================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px; padding: 2rem;
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative; overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--brand-burgundy);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.service-card:hover::before { transform: scaleX(1); }

/* Contenedor de icono — coherente, sin fondo decorativo exagerado */
.service-icon {
  width: 44px; height: 44px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-burgundy);
  font-size: .95rem;   /* SVG outline ~18px */
  margin-bottom: 1.2rem;
}
.service-card h3 { font-size: 1.05rem; margin-bottom: .55rem; color: var(--text); }
.service-card p  { font-size: .87rem; color: var(--text-muted); line-height: 1.65; }

/* Servicios (pagina interna) */
.srv-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
  align-items: center;
  margin-bottom: 5rem;
}
.srv-text { min-width: 0; }
.srv-panel {
  border-radius: 4px;
  padding: 3rem;
  color: var(--surface);
}
.srv-pair-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}
[id^="servicios-"] { scroll-margin-top: 110px; }

/* Servicio 03/04 */
.srv-pair-grid .service-card {
  display: flex;
  flex-direction: column;
}
.srv-card-head {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: .9rem;
}
.srv-card-head .badge {
  margin: 0;
  line-height: 1;
}
.srv-pair-grid .service-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* Servicio 05 */
.srv-highlight-grid {
  display: block;
}

/* ===================================================
   WHY US
   =================================================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem;
}
.why-card {
  text-align: center; padding: 2.25rem 1.5rem;
  border-radius: 4px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  transition: background var(--transition);
}
.why-card:hover { background: rgba(255,255,255,.07); }

/* Icono en why-card sobre fondo oscuro — sin emojis grandes */
.why-card-icon {
  width: 48px; height: 48px; margin: 0 auto 1.1rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  color: var(--brand-slate);  /* slate: institucional, no rojo sobre oscuro */
  font-size: 1rem;
}

/* Número ordinal alternativo */
.why-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem; font-weight: 700;
  color: var(--brand-slate); margin-bottom: .6rem;
  letter-spacing: -.02em;
}
.why-card h3 { font-size: .97rem; margin-bottom: .45rem; color: var(--surface); }
.why-card p  { font-size: .84rem; color: rgba(255,255,255,.55); line-height: 1.65; }

/* ===================================================
   EQUIPO
   =================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px; overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.team-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.team-photo {
  width: 100%; aspect-ratio: 4/5;
  object-fit: cover; object-position: top;
}
.team-info { padding: 1.5rem; }
.team-info h3 { font-size: 1.15rem; margin-bottom: .25rem; color: var(--text); }
.team-info .role {
  font-size: .74rem; color: var(--brand-burgundy);
  font-weight: 600; text-transform: uppercase; letter-spacing: .1em;
}
.team-info p { font-size: .85rem; color: var(--text-muted); margin-top: .7rem; line-height: 1.65; }
.team-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.team-tag {
  font-size: .69rem; font-weight: 600;
  color: var(--text-muted); background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 2px; padding: 3px 8px;
  letter-spacing: .02em;
}

.team-home-cta {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.team-home-focus {
  max-width: 520px;
  margin: 0 auto 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .1rem;
}
.team-home-focus-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  font-size: .9rem;
  color: var(--text);
}
.team-home-check-icon {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
  color: var(--brand-burgundy);
  flex-shrink: 0;
}
.team-home-cta h3 {
  font-size: 1.3rem;
  margin-bottom: .8rem;
}
.team-home-cta .subtitle {
  max-width: 640px;
  margin: 0 auto;
}
.team-home-actions {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: .9rem;
  flex-wrap: wrap;
}
.team-profile-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 4rem;
  align-items: start;
}
.team-profile-section {
  padding-top: 0;
  scroll-margin-top: clamp(28px, 3.5vh, 48px);
}
.team-profile-card {
  border: none;
  box-shadow: var(--shadow-lg);
}
.team-profile-photo { aspect-ratio: 3 / 4; }
.team-profile-name {
  font-size: 1.35rem;
}
.team-profile-tags { margin-top: .75rem; }
.team-profile-actions {
  margin-top: 1.25rem;
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}
.team-profile-action-btn {
  padding: .6rem 1.1rem;
  font-size: .82rem;
}
.team-profile-action-icon {
  width: 14px;
  height: 14px;
  stroke-width: 2;
}
.team-profile-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  scroll-margin-top: clamp(24px, 3vh, 40px);
}
.team-profile-summary {
  font-size: .95rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}
.team-profile-specialties {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 2rem;
}
.team-tag-md {
  font-size: .8rem;
  padding: 5px 12px;
}
.profile-section-label-spaced { margin-top: 2rem; }
.team-profile-credentials {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-bottom: 2rem;
}
.team-profile-credential-icon {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}
.team-cta-icon {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

/* ===================================================
   TRAYECTORIA PROFESIONAL — sección restaurada
   =================================================== */

/* Credenciales académicas */
.credential-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  border-radius: 3px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand-burgundy);
}
.credential-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-burgundy);
  font-size: .9rem;
  margin-top: .1rem;
}
.credential-text h4 {
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .15rem;
}
.credential-text p {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Timeline de experiencia */
.exp-timeline {
  position: relative;
  padding-left: 2rem;
  margin-top: 1.5rem;
}
.exp-timeline::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 1px;
  background: var(--border);  /* línea discreta como borde sutil */
}

.exp-item {
  position: relative;
  margin-bottom: 1.75rem;
}
.exp-item:last-child { margin-bottom: 0; }

/* Nodo de timeline — sobrio, sin glow */
.exp-item::before {
  content: '';
  position: absolute;
  left: -2.35rem; top: .4rem;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--brand-burgundy);
  border: 2px solid var(--surface);
  outline: 1.5px solid var(--brand-burgundy);
}

.exp-item h4 {
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .18rem;
}
.exp-item p {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.exp-item .exp-year {
  font-size: .72rem;
  color: var(--brand-burgundy);
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: .3rem;
  display: block;
}

/* Subtítulos de sección en perfil de abogado */
.profile-section-label {
  font-family: 'Inter', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--brand-burgundy);
  margin-bottom: 1rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid var(--border);
}

/* ===================================================
   COVERAGE
   =================================================== */
.coverage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem; margin-top: 2.5rem;
}
.coverage-item {
  display: flex; gap: 1rem; align-items: flex-start;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 4px; padding: 1.4rem;
}
.coverage-item-icon {
  flex-shrink: 0;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-slate);
  font-size: .95rem;
}
.coverage-item h4 { font-size: .92rem; color: var(--surface); margin-bottom: .2rem; }
.coverage-item p  { font-size: .81rem; color: rgba(255,255,255,.50); line-height: 1.6; }

/* ===================================================
   HERRAMIENTAS
   =================================================== */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px; padding: 1.75rem;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.tool-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.tool-logo {
  font-family: 'Playfair Display', serif;
  font-size: .97rem; font-weight: 700;
  color: var(--text); letter-spacing: .04em;
  border-bottom: 2px solid var(--brand-burgundy);
  display: inline-block; padding-bottom: 4px;
  margin-bottom: 1rem;
}
.tool-card p { font-size: .83rem; color: var(--text-muted); flex: 1; line-height: 1.65; }
.tool-card .btn {
  margin-top: 1.3rem; align-self: flex-start;
  padding: .5rem 1rem; font-size: .78rem;
}

/* Tool card de ayuda — usa brand-brown-deep, no --navy */
.tool-card-cta {
  background: var(--brand-brown-deep);
  border-color: var(--brand-brown-deep);
}
.tool-card-cta .tool-logo {
  color: rgba(255,255,255,.85);
  border-bottom-color: rgba(255,255,255,.2);
}
.tool-card-cta p { color: rgba(255,255,255,.60); }

/* ===================================================
   CTA BLOCK
   =================================================== */
.cta-block {
  background: var(--brand-brown-deep);
  border-radius: 4px; padding: 4rem 3rem;
  text-align: center; position: relative; overflow: hidden;
}
.cta-block::before {
  content: '§';
  position: absolute; right: -1rem; top: -2rem;
  font-size: 15rem; font-weight: 700; opacity: .04;
  color: var(--surface); pointer-events: none;
  font-family: serif; user-select: none;
}
.cta-block h2 { color: var(--surface); margin-bottom: .75rem; }
.cta-block p  { color: rgba(255,255,255,.65); max-width: 520px; margin: 0 auto 2rem; }
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ===================================================
   CONTACTO
   =================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3.5rem; align-items: start; }
.contact-info-items { display: flex; flex-direction: column; gap: 1.1rem; margin-top: 2rem; }
.contact-info-item {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.15rem; background: var(--paper);
  border-radius: 4px; border: 1px solid var(--border);
}
.contact-info-item .ci-icon {
  width: 40px; height: 40px; border-radius: 3px;
  background: var(--brand-burgundy);
  display: flex; align-items: center; justify-content: center;
  color: var(--surface); font-size: .95rem; flex-shrink: 0;
}
.contact-info-item h4 {
  font-size: .80rem; color: var(--text-light);
  margin-bottom: .15rem; text-transform: uppercase; letter-spacing: .06em;
}
.contact-info-item p,
.contact-info-item a { font-size: .92rem; font-weight: 500; color: var(--text); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px; padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}
.contact-form h3 { font-size: 1.2rem; margin-bottom: 1.5rem; color: var(--text); }
.form-group { margin-bottom: 1.15rem; }
.form-group label {
  display: block; font-size: .80rem; font-weight: 600;
  color: var(--text); margin-bottom: .4rem; letter-spacing: .01em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: .72rem 1rem;
  border: 1.5px solid var(--border); border-radius: 3px;
  font-family: 'Inter', sans-serif; font-size: .88rem; color: var(--text);
  background: var(--paper);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--brand-burgundy);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(169,53,65,.09);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.map-wrap {
  border-radius: 3px; overflow: hidden;
  box-shadow: var(--shadow-sm); margin-top: 2rem;
  height: 250px; border: 1px solid var(--border);
}
.map-wrap iframe { width: 100%; height: 100%; border: none; }

/* ===================================================
   FOOTER
   =================================================== */
footer {
  background: var(--brand-brown-deep);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 64px 0 0;
  color: rgba(255,255,255,.65);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 3rem;
  padding-bottom: 3rem;
}
.footer-about p { font-size: .85rem; line-height: 1.75; margin-top: 1rem; max-width: 300px; }
.footer-col h4 {
  font-family: 'Playfair Display', serif;
  font-size: .92rem; color: var(--surface);
  margin-bottom: 1.2rem; padding-bottom: .5rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-links { display: flex; flex-direction: column; gap: .5rem; }
.footer-links a {
  font-size: .83rem; color: rgba(255,255,255,.50);
  transition: color var(--transition), padding-left var(--transition);
}
.footer-links a:hover { color: rgba(255,255,255,.85); padding-left: 3px; }
.footer-book-link {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-size: .95rem !important;
  font-weight: 600;
  color: rgba(255,255,255,.9) !important;
  line-height: 1.2;
}
.footer-book-link img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
  padding: 0;
  display: block;
}

.footer-social { display: flex; gap: .6rem; margin-top: 1.2rem; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 3px;
  background: rgba(255,255,255,.07);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; color: rgba(255,255,255,.55);
  border: 1px solid rgba(255,255,255,.08);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.footer-social a:hover {
  background: var(--brand-burgundy);
  color: var(--surface);
  border-color: var(--brand-burgundy);
}
.footer-social a svg {
  display: block;
  color: inherit;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 1.5rem 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: .5rem;
}
.footer-bottom p { font-size: .76rem; color: rgba(255,255,255,.28); }

/* ===================================================
   PAGE HERO (páginas internas)
   =================================================== */
.page-hero {
  background: var(--brand-brown-deep);
  padding: 136px 0 76px;
  position: relative; overflow: hidden;
}
/* Textura de fondo también visible en páginas internas */
.page-hero::after {
  content: ''; position: absolute; inset: 0;
  background: url('../assets/img/hero_bg.png') center/cover no-repeat;
  opacity: .18;
}
.page-hero-content { position: relative; z-index: 2; }
.page-hero h1 { color: var(--surface); }
.page-hero .subtitle { color: rgba(255,255,255,.60); margin-top: .75rem; }

.team-members-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.team-member-card { height: 100%; position: relative; cursor: pointer; }
.team-member-card:focus-visible { outline: 2px solid var(--brand-burgundy); outline-offset: 2px; }
.team-member-card:active { transform: translateY(-1px); }
.team-member-card .team-photo,
.team-member-card .team-info { position: relative; z-index: 1; }
.team-member-card-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 4px;
}
.team-member-card-link:focus-visible {
  outline: 2px solid var(--brand-burgundy);
  outline-offset: -2px;
}
.team-member-card.is-selected {
  border-color: rgba(123, 31, 52, 0.35);
  box-shadow: var(--shadow-md);
}
.team-member-card .team-photo {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: 50% 20%;
}
.team-member-card .team-photo-milagros { object-position: 50% 24%; }
.team-member-card .team-photo-scarlet { object-position: 50% 24%; }
.team-member-card .team-photo-anderson { object-position: 50% 48%; }
.team-member-card .team-photo-cesar { object-position: 50% 22%; }
.team-member-card .team-photo-manuel { object-position: 50% 18%; }
.team-member-card .team-photo-marissa { object-position: 50% 24%; }
.team-member-card .team-photo-miguel { object-position: 50% 20%; }
.team-profile-photo.team-photo-scarlet { object-position: 50% 24%; }
.team-member-card .team-info { padding: 2rem; }
.team-member-card p { font-size: .9rem; line-height: 1.8; color: var(--text-muted); margin-bottom: 1rem; }

.breadcrumb {
  display: flex; align-items: center; gap: .5rem;
  font-size: .76rem; color: rgba(255,255,255,.38);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: rgba(255,255,255,.60); }
.breadcrumb a:hover { color: var(--surface); }
.breadcrumb span { color: rgba(255,255,255,.22); }

/* ===================================================
   TRUST BAR
   =================================================== */
.trust-bar {
  background: var(--paper);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.4rem 0;
}
.trust-items {
  display: flex; align-items: center; justify-content: center;
  gap: 2.5rem; flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: .5rem;
  font-size: .74rem; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .07em;
}
.trust-item svg,
.trust-item span:first-child {
  color: var(--brand-burgundy);
  font-size: .95rem;
}

/* ===================================================
   ANIMACIONES
   =================================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 1024px) {
  .footer-grid   { grid-template-columns: 1fr 1fr; }
  .about-cols    { grid-template-columns: 1fr; }
  .about-layout  { grid-template-columns: 1fr; gap: 2rem; }
  .srv-detail-grid { grid-template-columns: 1fr; gap: 2rem; margin-bottom: 3.25rem; }
  .srv-pair-grid { grid-template-columns: 1fr; }
  .team-profile-grid { grid-template-columns: 1fr; gap: 2rem; }
  .team-profile-card { max-width: 480px; margin: 0 auto; }
  .about-img-wrap { max-width: 460px; margin: 0 auto; }
  .about-person-media { max-width: 240px; }
  .contact-grid  { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .srv-panel { padding: 2rem; }
  .srv-highlight-grid { text-align: left; }
  .srv-highlight-icon { margin-bottom: .25rem; }
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 78px; left: 0; right: 0;
    background: rgba(67,52,43,.92);
    backdrop-filter: blur(6px);
    padding: .75rem 1rem; gap: 0;
    border-top: 1px solid rgba(255,255,255,.06);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .team-members-grid { grid-template-columns: 1fr; }
  .team-profile-actions { gap: .55rem; }
  .team-profile-action-btn {
    width: 100%;
    justify-content: center;
  }
  .team-profile-title { font-size: 1.55rem; }
  .team-profile-summary { font-size: .9rem; line-height: 1.75; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-stats  { gap: 1.5rem; }
  .cta-block   { padding: 2.5rem 1.5rem; }
}

@media (max-width: 480px) {
  .hero-btns { flex-direction: column; }
  .cta-btns  { flex-direction: column; align-items: center; }
  .contact-form { padding: 1.5rem; }
}
