/* ==========================================================================
   Traiber & Slipak — Landing Laboral
   traiberslipak.com.ar/laboral
   Stack: HTML/CSS/JS estático. Mobile-first.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens & Variables
   -------------------------------------------------------------------------- */
:root {
  --navy:        #1A252F;
  --navy-deep:   #111C24;
  --navy-mid:    #243342;
  --gold:        #C9A35C;
  --gold-light:  #D4AE6D;
  --gold-dim:    rgba(201, 163, 92, 0.15);
  --whatsapp:    #25D366;
  --whatsapp-d:  #1DA851;
  --white:       #FFFFFF;
  --off-white:   #F7F5F1;
  --text-light:  rgba(255,255,255,0.72);
  --text-muted:  rgba(255,255,255,0.45);
  --border:      rgba(201,163,92,0.22);
  --shadow:      0 8px 32px rgba(0,0,0,0.16);
  --shadow-lg:   0 20px 60px rgba(0,0,0,0.28);
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --font-head:   'Cormorant Garamond', Georgia, serif;
  --font-body:   'Montserrat', Arial, sans-serif;
  --header-h:    88px;
}

/* --------------------------------------------------------------------------
   2. Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background-color: var(--navy);
  color: var(--white);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, a { touch-action: manipulation; }
img, svg { max-width: 100%; display: block; }

.container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   3. Header
   -------------------------------------------------------------------------- */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(26, 37, 47, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: padding 0.3s var(--ease);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 0;
  transition: padding 0.3s var(--ease);
}

#site-header.scrolled .header-inner {
  padding: 10px 0;
}

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

.logo-circle {
  width: 52px;
  height: 52px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: width 0.3s var(--ease), height 0.3s var(--ease), font-size 0.3s var(--ease);
}

.logo-circle span {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.02em;
  line-height: 1;
  transition: font-size 0.3s var(--ease);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text .firm-name {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.06em;
  line-height: 1.1;
  text-transform: uppercase;
  transition: font-size 0.3s var(--ease);
}

.logo-text .firm-sub {
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 2px;
  transition: font-size 0.3s var(--ease);
}

/* Scrolled state */
#site-header.scrolled .logo-circle { width: 38px; height: 38px; }
#site-header.scrolled .logo-circle span { font-size: 0.85rem; }
#site-header.scrolled .logo-text .firm-name { font-size: 1rem; }
#site-header.scrolled .logo-text .firm-sub { font-size: 0.52rem; }

@media (min-width: 641px) {
  .site-logo { gap: 16px; }
  .logo-circle { width: 58px; height: 58px; }
  .logo-circle span { font-size: 1.2rem; }
  .logo-text .firm-name { font-size: 1.42rem; }
  .logo-text .firm-sub { font-size: 0.64rem; }

  #site-header.scrolled .logo-circle { width: 42px; height: 42px; }
  #site-header.scrolled .logo-circle span { font-size: 0.92rem; }
  #site-header.scrolled .logo-text .firm-name { font-size: 1.1rem; }
  #site-header.scrolled .logo-text .firm-sub { font-size: 0.55rem; }
}

/* --------------------------------------------------------------------------
   4. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}

/* --- Hero background slideshow (6-layer crossfade) ---
   Cycle: 30s total · 5s per image · ~1s crossfade transition
   Negative delays ensure layer-1 is opaque from first paint (no flash).
   The ::after overlay gradient sits above all layers via z-index.
   --------------------------------------------------------------- */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  /* No background-image here — images live on the child layers */
}

/* Gradient overlay — single instance, sits above ALL layers */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    rgba(26, 37, 47, 0.94) 0%,
    rgba(26, 37, 47, 0.82) 50%,
    rgba(26, 37, 47, 0.55) 100%
  );
}

/* Each layer sits below the ::after overlay */
.hero-bg-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: hero-crossfade 30s infinite;
}

/* Fuente de imagen y encuadre individual por capa — background-position ajustado
   para compensar el recorte vertical que produce background-size:cover en
   pantallas con aspect-ratio ≈ 2.18:1 */
.hero-bg-layer-1 { background-image: url('hero-1.webp'); background-position: center 18%; animation-delay:   0s; }
.hero-bg-layer-2 { background-image: url('hero-2.webp'); background-position: center 22%; animation-delay:  -5s; }
.hero-bg-layer-3 { background-image: url('hero-3.webp'); background-position: center  6%; animation-delay: -10s; }
.hero-bg-layer-4 { background-image: url('hero-4.webp'); background-position: center 25%; animation-delay: -15s; }
.hero-bg-layer-5 { background-image: url('hero-5.webp'); background-position: center  5%; animation-delay: -20s; }
.hero-bg-layer-6 { background-image: url('hero-6.webp'); background-position: center 20%; animation-delay: -25s; }

/*
  Keyframe logic (30s cycle, 6 images = 5s each):
  - Fade in  → 0%  – 3.33%   (~1s)
  - Hold     → 3.33% – 16.66% (~4s)
  - Fade out → 16.66% – 20%  (~1s)
  - Hidden   → 20% – 100%    (other images' turns)
*/
@keyframes hero-crossfade {
  0%       { opacity: 0; }
  3.33%    { opacity: 1; }
  16.66%   { opacity: 1; }
  20%      { opacity: 0; }
  100%     { opacity: 0; }
}

/* Accessibility: stop animation and show only the first image */
@media (prefers-reduced-motion: reduce) {
  .hero-bg-layer {
    animation: none;
    opacity: 0;
  }
  .hero-bg-layer-1 {
    opacity: 1;
  }
  .rotating-words {
    animation: none;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 80px 0 100px;
  max-width: 680px;
}

/* Etiqueta rotativa — estilo eyebrow del sitio institucional (versalitas + guín largo) */
.hero-label-rotativa {
  --word-h: 29px; /* única fuente de verdad: alto de cada renglón rotativo.
                      De acá salen la altura del wrapper, la altura+line-height
                      de cada span, y el salto de la animación — cambiar este
                      valor alcanza para todo, no hay que tocar 3 lugares. */
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  line-height: 1.3;
  white-space: nowrap;
}

/* Guín largo previo a la palabra, en tono apagado */
.hero-label-rotativa::before {
  content: '—';
  color: rgba(201, 163, 92, 0.5);
  font-weight: 400;
  letter-spacing: 0;
  flex-shrink: 0;
}

/* Slot del rotating-wrapper dentro de la etiqueta */
.rotating-wrapper {
  display: block;
  height: var(--word-h);
  overflow: hidden;
  position: relative;
}

.hero-label-slot {
  display: inline-block;
  vertical-align: top;
  margin: 0;
  width: max-content;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 600;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 28px;
}

.hero-title .static-text {
  display: block;
}



.rotating-words {
  display: block;
  font-size: 1.5625rem;
  animation: slide-words 18s steps(1) infinite;
}

.rotating-words span {
  display: block;
  height: var(--word-h);
  line-height: var(--word-h); /* line-height en px, igual a la altura: centra el
    texto en su renglón sin depender de las métricas de la fuente que cargue
    el navegador — por eso antes se veían tiras de la palabra de al lado. */
  color: var(--gold);
  font-size: inherit;
  font-weight: 700;
  letter-spacing: 0.02em;
  overflow: hidden;
}

@keyframes slide-words {
  0%      { transform: translateY(calc(var(--word-h) * 0)); }
  10%     { transform: translateY(calc(var(--word-h) * -1)); }
  20%     { transform: translateY(calc(var(--word-h) * -2)); }
  30%     { transform: translateY(calc(var(--word-h) * -3)); }
  40%     { transform: translateY(calc(var(--word-h) * -4)); }
  50%     { transform: translateY(calc(var(--word-h) * -5)); }
  60%     { transform: translateY(calc(var(--word-h) * -6)); }
  70%     { transform: translateY(calc(var(--word-h) * -7)); }
  80%     { transform: translateY(calc(var(--word-h) * -8)); }
  90%     { transform: translateY(calc(var(--word-h) * -9)); }
  100%    { transform: translateY(calc(var(--word-h) * 0)); }
}

/* Mobile: mismo breakpoint que .hero-title (640px) para que título y etiqueta
   rotativa cambien de tamaño juntos — antes la etiqueta solo tenía su propio
   ajuste en 480px y quedaba grande frente a un H1 ya achicado entre 481-640px.
   Acá solo se pisa --word-h y el font-size; el resto (wrapper, spans, keyframes)
   lee la variable automáticamente, no hay nada más que tocar. */
@media (max-width: 640px) {
  .hero-label-rotativa {
    --word-h: 18px;
    font-size: 0.82rem;
    padding: 6px 14px;
    letter-spacing: 0.01em;
  }
  .rotating-words {
    font-size: 1rem;
  }
}

.hero-subtitle {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text-light);
  margin-bottom: 36px;
  max-width: 520px;
  line-height: 1.7;
}

.hero-cta-area {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--whatsapp);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 32px;
  border: none;
  cursor: pointer;
  transition: background 0.25s var(--ease), transform 0.2s var(--ease), box-shadow 0.25s var(--ease);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
  text-decoration: none;
}

.btn-whatsapp:hover {
  background: var(--whatsapp-d);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.45);
}
.btn-whatsapp:active { transform: translateY(0); }
.btn-whatsapp svg { flex-shrink: 0; }

.hero-note {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero-note strong { color: var(--gold); font-weight: 600; }

/* --------------------------------------------------------------------------
   5. Trust Bar
   -------------------------------------------------------------------------- */
.trust-bar {
  background: var(--navy-mid);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}

.trust-bar-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 36px;
  border-right: 1px solid var(--border);
}
.trust-item:first-child { padding-left: 0; }
.trust-item:last-child { border-right: none; }

.trust-icon {
  width: 48px;
  height: 48px;
  background: var(--gold-dim);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.trust-icon svg {
  width: 24px;
  height: 24px;
  color: var(--gold);
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trust-text strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1.1;
}
.trust-text span {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-light);
}

/* --------------------------------------------------------------------------
   6. Section Header Shared
   -------------------------------------------------------------------------- */
.section-tag {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.section-tag::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.75;
}

.section-desc-narrow {
  max-width: 520px;
  margin-inline: auto;
}

.section-tag-centered {
  justify-content: center;
}

/* --------------------------------------------------------------------------
   7. Categories Grid
   -------------------------------------------------------------------------- */
.categories {
  padding: 96px 0;
  background: var(--navy);
}

.categories-header {
  text-align: center;
  margin-bottom: 56px;
}

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

.cat-card {
  background: var(--navy-mid);
  border-left: 5px solid transparent;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-left-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease);
}

.cat-card:hover {
  border-left-color: var(--gold);
  background: var(--navy-deep);
  transform: translateY(-4px);
}

.cat-icon {
  width: 52px;
  height: 52px;
  background: var(--gold-dim);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s var(--ease);
}
.cat-card:hover .cat-icon { background: rgba(201,163,92,0.25); }
.cat-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cat-title {
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
}

.cat-desc {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.65;
  flex: 1;
}

.btn-cat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  padding-top: 10px;
  border-top: 1px solid var(--border);
  margin-top: auto;
  text-decoration: none;
  transition: gap 0.25s var(--ease), color 0.25s var(--ease);
}
.btn-cat:hover { color: var(--gold-light); gap: 12px; }
.btn-cat .arrow {
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.25s var(--ease);
}
.btn-cat:hover .arrow { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   7b. Team / Quiénes Somos
   -------------------------------------------------------------------------- */
.team {
  padding: 96px 0;
  background: var(--navy-deep);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.team-header {
  text-align: center;
  margin-bottom: 56px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 1080px;
  margin-inline: auto;
}

.team-card {
  display: grid;
  grid-template-columns: 156px 1fr;
  align-items: center;
  gap: 28px;
  padding: 30px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid transparent;
  text-align: left;
}

.team-card:nth-child(even) {
  border-top-color: rgba(201, 163, 92, 0.35);
}

.team-photo-frame {
  position: relative;
  width: 156px;
  height: 188px;
  flex-shrink: 0;
}

.team-photo-frame::before {
  content: '';
  position: absolute;
  inset: 12px -10px -10px 12px;
  border: 1px solid var(--gold);
  opacity: 0.75;
}

.team-photo {
  position: relative;
  z-index: 1;
  width: 156px;
  height: 188px;
  border-radius: 0;
  object-fit: cover;
  object-position: center 15%;
  border: 1px solid var(--border);
  outline: none;
  margin: 0;
}

.team-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.team-role {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.team-name {
  font-family: var(--font-head);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 4px;
}

.team-spec {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.team-desc {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.65;
  max-width: 330px;
}

.team-tags {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-top: 18px;
}

.team-tag {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-light);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  text-transform: uppercase;
  white-space: nowrap;
}

.team-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 44px;
}

.team-cta-note {
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   8. Caso Destacado
   -------------------------------------------------------------------------- */
.caso-destacado {
  padding: 96px 0;
  background: var(--navy-deep);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.caso-inner {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 80px;
  align-items: center;
}

.caso-stat-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  padding-left: 28px;
}
.caso-stat-block::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--gold);
}

.caso-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.caso-monto {
  font-family: var(--font-head);
  font-size: clamp(3.2rem, 6vw, 5.5rem);
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}

.caso-currency {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-top: 4px;
}

.caso-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.caso-badge {
  display: inline-block;
  background: var(--gold-dim);
  border: 1px solid var(--border);
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 14px;
  width: fit-content;
}

.caso-title {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
}

.caso-text {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.8;
}

.caso-highlight {
  border-left: 4px solid var(--gold);
  color: var(--white);
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  font-weight: 600;
  line-height: 1.25;
  margin: 2px 0;
  padding: 4px 0 4px 18px;
}

.caso-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.caso-tag {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-light);
  padding: 5px 12px;
}

.caso-tag-strong {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--gold);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   9. CTA de Cierre
   -------------------------------------------------------------------------- */
.cta-close {
  padding: 96px 0;
  background: var(--navy);
  text-align: center;
}

.cta-close-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 540px;
  margin: 0 auto;
}

.cta-close-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.12;
  color: var(--white);
}

.cta-close-sub {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
}

.cta-address-line {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cta-address-line svg {
  display: inline;
  vertical-align: middle;
  margin-right: 5px;
  margin-top: -2px;
}

/* --------------------------------------------------------------------------
   10. Footer
   -------------------------------------------------------------------------- */
#site-footer {
  background: var(--navy-deep);
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

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

.footer-copy {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.footer-address {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: right;
  line-height: 1.6;
}

.footer-logo-circle {
  width: 36px;
  height: 36px;
}

.footer-logo-circle span {
  font-size: 0.8rem;
}

.footer-firm-name {
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   11. Floating WhatsApp Button
   -------------------------------------------------------------------------- */
#wa-float {
  position: fixed;
  z-index: 999;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), opacity 0.25s var(--ease);
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
}

#wa-float.wa-float-visible {
  opacity: 1;
  pointer-events: auto;
}

@media (min-width: 769px) {
  #wa-float {
    bottom: 28px;
    right: 28px;
    width: 60px;
    height: 60px;
    background: var(--whatsapp);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(37,211,102,0.45);
  }
  #wa-float:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 36px rgba(37,211,102,0.6);
  }
  #wa-float svg { width: 30px; height: 30px; }
  #wa-float .wa-label { display: none; }
}

@media (max-width: 768px) {
  #wa-float {
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--whatsapp);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 20px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
  }
  #wa-float svg { width: 22px; height: 22px; }
  #wa-float .wa-label {
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--white);
  }
  body { padding-bottom: 62px; }
}

/* --------------------------------------------------------------------------
   12. Reveal animations
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* --------------------------------------------------------------------------
   13. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .caso-inner { grid-template-columns: 1fr; gap: 48px; }
  .team-grid { grid-template-columns: 1fr; max-width: 620px; }
  .team-desc { max-width: 380px; }
  .team-tags { flex-wrap: nowrap; }
  .trust-bar-inner { grid-template-columns: 1fr; }
  .trust-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 18px 0;
  }
  .trust-item:last-child { border-bottom: none; }
}

@media (max-width: 640px) {
  :root { --header-h: 68px; }
  .hero-content { padding: 56px 0 80px; }
  .hero-title { font-size: 2.4rem; }
  .categories-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; gap: 40px; }
  .team-card {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 24px;
    padding: 28px 0 34px;
    text-align: center;
  }
  .team-info { align-items: center; }
  .team-desc { max-width: 320px; }
  .team-tags {
    flex-wrap: wrap;
    justify-content: center;
  }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-address { text-align: center; }
  .logo-text .firm-sub { display: none; }
}

/* Accessibility */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 8px 16px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  z-index: 9999;
}
.skip:focus { left: 0; }
