/* ══════════════════════════════════════════════════════════════════════════
   BS Asociados — style.css
   Premium dark legal firm — version 2.0
   ══════════════════════════════════════════════════════════════════════════ */

/* ──── VARIABLES ──── */
:root {
  --bg-primary:   #111111;
  --bg-navbar:    #0A0A0A;
  --bg-alt:       #0D0D0D;
  --border-light: #1E1E1E;
  --border-mid:   #2A2A2A;
  --text-primary: #F5F3EE;
  --text-body:    #E8E6E1;
  --text-muted:   #888888;
  --text-subtle:  #555555;
  --accent-gold:  #C9A96E;
  --accent-hover: #D4B880;
  --font-display: 'Playfair Display', serif;
  --font-body:    'Inter', sans-serif;
  --nav-h:        64px;
  --transition:   0.2s ease;
  --max-w:        1200px;
}

/* ──── RESET ──── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-body);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ──── UTILITIES ──── */
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 100px 48px;
}

.section-header {
  margin-bottom: 60px;
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-gold);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--text-primary);
}

.section-intro {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 600px;
  margin-top: 16px;
}

/* ──── BUTTONS ──── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 14px 28px;
  border-radius: 0;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-gold);
  color: #0A0A0A;
  border: 1px solid var(--accent-gold);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--text-body);
  border: 1px solid #333333;
}
.btn-secondary:hover {
  border-color: var(--text-subtle);
  color: var(--text-primary);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ══════════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: var(--bg-navbar);
  border-bottom: 1px solid var(--border-mid);
  transition: background var(--transition), backdrop-filter var(--transition);
}

.navbar.scrolled {
  background: rgba(10,10,10,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  gap: 32px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  transition: color var(--transition);
  flex-shrink: 0;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

/* Monograma BS */
.logo-monogram {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 34px;
}

.logo-letter {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  /* Premium metallic/champagne gradient for the letters */
  background: linear-gradient(to bottom right, #ffffff, #e6dccb, #bfa888);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: absolute;
  line-height: 1;
  filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.8));
}

.logo-b {
  left: 0;
  z-index: 1;
}

.logo-s {
  right: -2px;
  z-index: 3;
}

/* Aguja dorada */
.logo-needle {
  position: absolute;
  top: 52%;
  left: -4px;
  width: 125%;
  height: 1.5px;
  background: linear-gradient(90deg, #b8860b, #ffe55c, #b8860b);
  box-shadow: 0 0 4px rgba(255, 215, 0, 0.4), 0 1px 1px rgba(0,0,0,0.8);
  z-index: 2;
  transform: translateY(-50%);
  border-radius: 2px;
}

/* Texto B&S Asociados */
.logo-text-group {
  display: flex;
  flex-direction: column;
}

.logo-text-main {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
  color: #Fdfbf7;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.9);
}

.nav-logo:hover .logo-letter {
  background: linear-gradient(to bottom right, #ffd700, #c9a96e, #b8860b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 0.3s ease;
}
.nav-logo:hover .logo-text-main {
  color: var(--accent-gold);
  transition: color 0.3s ease;
}

/* Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-gold);
  transition: width var(--transition);
}
.nav-link:hover,
.nav-link.active { color: var(--text-primary); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* CTA nav */
.nav-cta { padding: 10px 20px; font-size: 11px; }

/* Burger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  padding: 4px 0;
  flex-shrink: 0;
}
.nav-burger span {
  display: block;
  height: 1px;
  background: var(--text-muted);
  transition: transform var(--transition), opacity var(--transition), width var(--transition);
}
.nav-burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ══════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════ */
.hero {
  position: relative;
  background: var(--bg-navbar);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

/* Top decorative gold line */
.hero-line-top {
  position: absolute;
  top: var(--nav-h);
  left: 0;
  right: 0;
  height: 1px;
  background: #1E1E1E;
  z-index: 3;
}

/* Subtle radial glow */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 45%, rgba(201,169,110,0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 0 48px;
  text-align: center;
}

.hero-label {
  margin-bottom: 28px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  line-height: 1.18;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.hero-title em {
  font-style: italic;
  color: var(--accent-gold);
}

.hero-subtitle {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto 40px;
}

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

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.35;
  animation: fadeInUp 1s 1.2s ease both;
  z-index: 2;
}
.scroll-line {
  width: 1px;
  height: 32px;
  background: var(--text-muted);
  display: block;
  animation: scrollPulse 2s infinite ease-in-out;
}
.scroll-text {
  font-size: 9px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 0.9; transform: scaleY(1.15); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateX(-50%) translateY(16px); }
  to   { opacity: 0.35; transform: translateX(-50%) translateY(0); }
}

/* ══════════════════════════════════════════════════
   EFECTO 1 — TYPEWRITER CURSOR
   ══════════════════════════════════════════════════ */
#typewriter-target {
  font-style: italic;
  color: var(--accent-gold);
}

/* Cursor parpadeante dorado */
.tw-cursor {
  display: inline-block;
  color: var(--accent-gold);
  font-style: normal;
  font-weight: 300;
  margin-left: 1px;
  animation: twBlink 0.8s step-end infinite;
  line-height: 1;
}

@keyframes twBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ══════════════════════════════════════════════════
   EFECTO 3 — CANVAS DE PARTÍCULAS DORADAS
   ══════════════════════════════════════════════════ */
#hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* ══════════════════════════════════════════════════
   EFECTO 6 — SEPARADORES CON DESTELLO DORADO
   ══════════════════════════════════════════════════ */
.section-divider {
  height: 1px;
  background: #1E1E1E;
  position: relative;
  overflow: hidden;
}

.section-divider::after {
  content: '';
  position: absolute;
  top: 0;
  left: -30%;
  width: 30%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(201, 169, 110, 0.4) 50%,
    transparent 100%
  );
  animation: dividerShimmer 4s linear infinite;
}

@keyframes dividerShimmer {
  0%   { left: -30%; }
  100% { left: 100%; }
}

/* Shimmer en la hero-line-top también */
.hero-line-top::after {
  content: '';
  position: absolute;
  top: 0;
  left: -30%;
  width: 30%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(201, 169, 110, 0.4) 50%,
    transparent 100%
  );
  animation: dividerShimmer 4s linear infinite;
}

/* ══════════════════════════════════════════════════
   NOSOTROS
   ══════════════════════════════════════════════════ */
.nosotros {
  background: var(--bg-alt);
}

.nosotros-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.5fr;
  gap: 64px;
  align-items: center;
}

.nosotros-img-container {
  border: 1px solid var(--border-mid);
  padding: 10px;
  background: var(--bg-primary);
  display: flex;
}

.nosotros-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
}

.nosotros-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.nosotros-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.85;
}

/* ══════════════════════════════════════════════════
   EFECTO 4 — CONTADORES ANIMADOS
   ══════════════════════════════════════════════════ */
.counters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 8px 0 0 0;
  padding: 28px 0 28px 0;
  border-top: 1px solid var(--border-mid);
  border-bottom: 1px solid var(--border-mid);
}

.counter-item {
  display: flex;
  flex-direction: column;
}

.counter-num {
  font-family: var(--font-display);
  font-size: 42px;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 6px;
}

.counter-plus {
  color: var(--accent-gold);
  font-family: var(--font-display);
  font-size: 38px;
}

.counter-label {
  font-size: 11px;
  color: #555555;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ══════════════════════════════════════════════════
   PILARES
   ══════════════════════════════════════════════════ */
.pilares {
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr;
  gap: 0;
  margin-top: 4px;
  border-top: 1px solid var(--border-light);
  padding-top: 32px;
}

.pilar {
  padding: 0 24px;
}
.pilar:first-child { padding-left: 0; }
.pilar:last-child  { padding-right: 0; }

.pilar-divider {
  background: var(--border-mid);
  width: 1px;
  align-self: stretch;
  position: relative;
  overflow: hidden;
}

/* Shimmer en pilar-divider (vertical — adaptado) */
.pilar-divider::after {
  content: '';
  position: absolute;
  left: 0;
  top: -30%;
  width: 100%;
  height: 30%;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(201, 169, 110, 0.35) 50%,
    transparent 100%
  );
  animation: pilarDividerShimmer 4s linear infinite;
}

@keyframes pilarDividerShimmer {
  0%   { top: -30%; }
  100% { top: 100%; }
}

.pilar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-mid);
  margin-bottom: 20px;
  color: var(--accent-gold);
  font-size: 20px;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.pilar:hover .pilar-icon {
  background: rgba(201,169,110,0.06);
  border-color: rgba(201,169,110,0.3);
}

.pilar-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.pilar-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ══════════════════════════════════════════════════
   ÁREAS DE PRÁCTICA
   ══════════════════════════════════════════════════ */
.areas {
  background: var(--bg-primary);
}

.areas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border-light);
  border: 1px solid var(--border-light);
}

/* ══════════════════════════════════════════════════
   EFECTO 5 — HOVER EN TARJETAS DE ÁREA
   ══════════════════════════════════════════════════ */
.area-card {
  background: var(--bg-primary);
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
  outline: none;
  cursor: default;
  /* Transición del fondo */
  transition: background 0.35s ease;
}

/* Brillo dorado desde abajo (opacidad 5%) */
.area-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(201, 169, 110, 0.05) 0%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

/* Línea dorada inferior que se desliza desde la izquierda */
.area-card-line {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1px;
  width: 0;
  background: var(--accent-gold);
  transition: width 0.35s ease;
}

/* Estados hover */
.area-card:hover,
.area-card:focus-visible {
  background: #141414;
}

.area-card:hover::before,
.area-card:focus-visible::before {
  opacity: 1;
}

.area-card:hover .area-card-line,
.area-card:focus-visible .area-card-line {
  width: 100%;
}

.area-card:focus-visible {
  box-shadow: inset 0 0 0 1px rgba(201,169,110,0.15);
}

/* Número y título aclaran en hover */
.area-num {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--accent-gold);
  text-transform: uppercase;
  transition: color 0.35s ease;
}

.area-card:hover .area-num {
  color: var(--accent-hover);
}

.area-body { display: flex; flex-direction: column; gap: 16px; }

.area-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--text-primary);
  transition: color 0.35s ease;
}

.area-card:hover .area-title {
  color: #FFFFFF;
}

.area-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
}

.area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.tag {
  font-size: 11px;
  font-weight: 500;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-subtle);
  border: 1px solid var(--border-mid);
  padding: 4px 10px;
  transition: border-color 0.35s ease, color 0.35s ease;
}
.area-card:hover .tag {
  border-color: #383838;
  color: #777777;
}

/* ══════════════════════════════════════════════════
   EFECTO 7 — HALO DORADO BAJO EL CURSOR (hero)
   ══════════════════════════════════════════════════ */
#hero-cursor-halo {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(201, 169, 110, 0.07) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  will-change: transform;
}

#hero-cursor-halo.visible {
  opacity: 1;
}

/* ══════════════════════════════════════════════════
   EFECTO 8 — FADE EN CASCADA PARA LISTAS
   ══════════════════════════════════════════════════ */
.cascade-item {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.cascade-item.cascade-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════════
   CLIENTES
   ══════════════════════════════════════════════════ */
.clientes {
  background: var(--bg-navbar);
}

/* ══════════════════════════════════════════════════
   CARRUSEL INFINITO DE CLIENTES
   ══════════════════════════════════════════════════ */

/* Contenedor con fade en los bordes */
.logos-carousel-wrap {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 0;
  /* Fade a ambos lados para look premium */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
}

/* Track que se mueve */
.logos-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: logoScroll 68s linear infinite;
}

/* Pausa al hover */
.logos-carousel-wrap:hover .logos-track {
  animation-play-state: paused;
}

@keyframes logoScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Cada slide */
.logo-slide {
  flex-shrink: 0;
  width: 260px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  border-right: 1px solid var(--border-light);
  opacity: 0.75;
  transition: opacity 0.35s ease;
}

.logo-slide:hover {
  opacity: 1;
}

/* Pastilla blanca para que logos con fondo claro luzcan sobre el fondo oscuro */
.logo-slide-inner {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 0;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.35s ease;
}
.logo-slide:hover .logo-slide-inner {
  background: rgba(255, 255, 255, 0.14);
}

.logo-slide img {
  max-width: 170px;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  /* Sin filtros — color original */
  filter: none;
  transition: opacity 0.35s ease;
}



/* ══════════════════════════════════════════════════
   CONTACTO
   ══════════════════════════════════════════════════ */
.contacto {
  background: var(--bg-alt);
}

.contacto-grid {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.required { color: var(--accent-gold); }
.optional  { color: var(--text-subtle); font-weight: 400; text-transform: none; letter-spacing: 0; }

.form-input {
  background: var(--bg-alt);
  border: 1px solid #222222;
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  padding: 14px 16px;
  border-radius: 0;
  outline: none;
  transition: border-color var(--transition);
  width: 100%;
}
.form-input::placeholder { color: #3A3A3A; }
.form-input:focus {
  border-color: rgba(201,169,110,0.27);
}

.form-textarea { resize: vertical; min-height: 140px; }

.form-note {
  font-size: 11px;
  color: var(--text-subtle);
  margin-top: -8px;
}

/* Btn icon */
.btn-icon { font-size: 16px; transition: transform var(--transition); }
.btn:hover .btn-icon { transform: translateX(4px); }

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  width: 100%;
  max-width: 1000px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-mid);
  color: var(--accent-gold);
  font-size: 18px;
  margin-top: 2px;
}

.contact-label {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-subtle);
  margin-bottom: 4px;
}

.contact-value {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-body);
  line-height: 1.5;
}

.contact-link {
  transition: color var(--transition);
}
.contact-link:hover { color: var(--accent-gold); }

.contact-divider {
  height: 1px;
  background: var(--border-light);
}

.contact-hours {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}
.contact-hours strong {
  color: var(--text-body);
  font-weight: 500;
}

/* ══════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════ */
.footer {
  background: #060606;
  border-top: 1px solid #1A1A1A;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 72px 48px 56px;
  display: grid;
  grid-template-columns: 1.2fr 1.5fr 1fr;
  gap: 64px;
}

.footer-logo { margin-bottom: 16px; }
.footer-logo .logo-bs   { color: #3A3A3A; }
.footer-logo .logo-sep  { color: #2A2A2A; }
.footer-logo .logo-name { color: #3A3A3A; }
.footer-logo:hover .logo-bs,
.footer-logo:hover .logo-name { color: #555555; }

.footer-tagline {
  font-size: 12px;
  color: #3A3A3A;
  line-height: 1.6;
  margin-bottom: 24px;
}

.footer-copy {
  font-size: 11px;
  color: #2E2E2E;
  line-height: 1.7;
}

.footer-heading {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #444444;
  margin-bottom: 20px;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-size: 12px;
  color: #3A3A3A;
  transition: color var(--transition);
  line-height: 1.5;
}
.footer-link:hover { color: #666666; }

.footer-bottom {
  border-top: 1px solid #111111;
  padding: 20px 48px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-bottom-text {
  font-size: 10px;
  color: #222222;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ══════════════════════════════════════════════════
   FORM VALIDATION STATES
   ══════════════════════════════════════════════════ */
.form-input.error   { border-color: rgba(180,60,60,0.4); }
.form-input.success { border-color: rgba(201,169,110,0.4); }

/* Success message */
.form-success {
  display: none;
  text-align: center;
  padding: 40px 24px;
  border: 1px solid rgba(201,169,110,0.15);
  background: rgba(201,169,110,0.03);
}
.form-success.show { display: block; }
.form-success-icon { font-size: 40px; color: var(--accent-gold); margin-bottom: 16px; }
.form-success-title {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.form-success-text {
  font-size: 13px;
  color: var(--text-muted);
}

/* ══════════════════════════════════════════════════
   RESPONSIVE — 1200px
   ══════════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .section-inner { padding: 80px 36px; }
  .nav-inner     { padding: 0 36px; }
  .footer-inner  { padding: 64px 36px 48px; gap: 48px; }
  .footer-bottom { padding: 20px 36px; }
}

/* ══════════════════════════════════════════════════
   RESPONSIVE — 968px (tablet landscape)
   ══════════════════════════════════════════════════ */
@media (max-width: 968px) {
  .nosotros-grid  { grid-template-columns: 1fr; gap: 48px; }
  .nosotros-img-container { max-width: 480px; margin: 0 auto; }
  .pilares        { grid-template-columns: 1fr; gap: 32px; margin-top: 16px; padding-top: 24px; }
  .pilar-divider  { display: none; }
  .pilar          { padding: 0; padding-bottom: 32px; border-bottom: 1px solid var(--border-light); }
  .pilar:last-child { border-bottom: none; padding-bottom: 0; }

  .areas-grid     { grid-template-columns: 1fr; }

  .contacto-grid  { grid-template-columns: 1fr; gap: 56px; }

  .footer-inner   { grid-template-columns: 1fr 1fr; }
  .footer-brand   { grid-column: 1 / -1; }
}

/* ══════════════════════════════════════════════════
   RESPONSIVE — 768px (tablet portrait)
   ══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--bg-navbar);
    border-bottom: 1px solid var(--border-mid);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 36px;
    gap: 24px;
  }
  .nav-links.open { display: flex; }
  .nav-burger { display: flex; }
  .nav-cta    { display: none; }
  .nav-inner  { padding: 0 24px; }

  .hero-inner { padding: 0 24px; }
  .hero-title { font-size: clamp(28px, 8vw, 40px); }
  .hero-subtitle { font-size: 14px; }

  .section-inner  { padding: 72px 24px; }
  .section-title  { font-size: 28px; }

  .logos-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-inner { grid-template-columns: 1fr; gap: 40px; padding: 48px 24px 36px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { padding: 16px 24px; }

  /* Desactivar halo en móvil */
  #hero-cursor-halo { display: none; }
}

/* ══════════════════════════════════════════════════
   RESPONSIVE — 480px (mobile)
   ══════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .btn          { width: 100%; justify-content: center; }

  .logos-grid { grid-template-columns: 1fr; }

  .area-card { padding: 36px 24px; }

  .section-title { font-size: 24px; }
}

/* ══════════════════════════════════════════════════
   BOTÓN FLOTANTE WHATSAPP
   ══════════════════════════════════════════════════ */
#whatsapp-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45), 0 2px 8px rgba(0,0,0,0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  text-decoration: none;
  overflow: visible;
}

#whatsapp-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6), 0 4px 12px rgba(0,0,0,0.35);
}

/* SVG icon — siempre visible sobre el anillo */
#whatsapp-fab svg {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

/* Anillo de pulso usando ::after (no tapa el ícono) */
#whatsapp-fab::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.4);
  animation: waPulse 2.2s ease-out infinite;
  z-index: 0;
  pointer-events: none;
}

@keyframes waPulse {
  0%   { transform: scale(1);    opacity: 0.7; }
  70%  { transform: scale(1.6);  opacity: 0; }
  100% { transform: scale(1.6);  opacity: 0; }
}

/* Tooltip */
.whatsapp-fab-tooltip {
  position: absolute;
  right: 70px;
  white-space: nowrap;
  background: #111;
  color: #fff;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.03em;
  padding: 7px 14px;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 3;
}
.whatsapp-fab-tooltip::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-right: none;
  border-left-color: #111;
}

#whatsapp-fab:hover .whatsapp-fab-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* ══════════════════════════════════════════════════
   SELECTOR DE IDIOMA ES / PT
   ══════════════════════════════════════════════════ */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--border-mid);
  padding: 4px 8px;
  border-radius: 2px;
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: #FFFFFF; /* Letras en blanco */
  padding: 2px 4px;
  transition: color var(--transition);
  line-height: 1;
}

.lang-btn:hover {
  color: var(--accent-hover);
}

.lang-btn.active {
  color: var(--accent-gold);
}

.lang-divider {
  font-size: 10px;
  color: var(--border-mid);
  user-select: none;
}

@media (max-width: 768px) {
  .lang-switcher {
    order: -1;
  }
}
