/* =========================================================
   JURÍDICO VIRTUAL — Stylesheet Principal v3.0
   Paleta: Azul profundo #0A1F44, Dorado #C9A84C, Crema #F7F5F0
   Tipografía: Cormorant Garamond (display) + Inter (body)
   ========================================================= */

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

:root {
  --azul:        #0A1F44;
  --azul-med:    #122b5e;
  --azul-light:  #1a3a7a;
  --azul-deep:   #071529;
  --dorado:      #C9A84C;
  --dorado-light:#dfc36f;
  --dorado-dim:  rgba(201,168,76,0.15);
  --crema:       #F7F5F0;
  --blanco:      #FFFFFF;
  --gris:        #6B7280;
  --gris-light:  #e8e6e1;
  --negro:       #0d0d0d;
  --font-display:'Cormorant Garamond', Georgia, serif;
  --font-body:   'Inter', system-ui, sans-serif;
  --radius:      8px;
  --radius-lg:   16px;
  --shadow:      0 4px 24px rgba(10,31,68,0.10);
  --shadow-md:   0 8px 40px rgba(10,31,68,0.16);
  --shadow-lg:   0 20px 60px rgba(10,31,68,0.22);
  --transition:  0.3s cubic-bezier(0.4,0,0.2,1);
  --max-w:       1200px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--blanco);
  color: var(--negro);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.container {
  width: 92%;
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--crema); }
::-webkit-scrollbar-thumb { background: var(--dorado); border-radius: 3px; }

/* ======================================================
   BUTTONS
   ====================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
  border: 2px solid transparent;
  text-align: center;
}
.btn-primary {
  background: var(--dorado);
  color: var(--azul);
  border-color: var(--dorado);
}
.btn-primary:hover {
  background: var(--dorado-light);
  border-color: var(--dorado-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--blanco);
  border-color: rgba(255,255,255,0.55);
}
.btn-outline:hover {
  border-color: var(--dorado);
  color: var(--dorado);
  transform: translateY(-2px);
}
.btn-outline-light {
  background: transparent;
  color: var(--blanco);
  border-color: rgba(255,255,255,0.45);
}
.btn-outline-light:hover {
  border-color: var(--blanco);
  background: rgba(255,255,255,0.08);
}
.btn-wa {
  background: #25D366;
  color: var(--blanco);
  border-color: #25D366;
  font-size: 1rem;
  padding: 16px 36px;
}
.btn-wa:hover {
  background: #1da851;
  border-color: #1da851;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,211,102,0.35);
}
.btn-sm {
  background: var(--azul);
  color: var(--blanco);
  border-color: var(--azul);
  padding: 10px 22px;
  font-size: 0.8rem;
}
.btn-sm:hover { background: var(--azul-light); border-color: var(--azul-light); }

/* ======================================================
   SECTION SHARED
   ====================================================== */
.section { padding: 96px 0; }

.section-header { text-align: center; max-width: 720px; margin: 0 auto 60px; }

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dorado);
  margin-bottom: 12px;
  position: relative;
  padding: 0 28px;
}
.section-eyebrow::before,
.section-eyebrow::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 20px;
  height: 1px;
  background: var(--dorado);
  opacity: 0.55;
}
.section-eyebrow::before { right: 100%; transform: translateX(28px); }
.section-eyebrow::after  { left:  100%; transform: translateX(-28px); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--azul);
  line-height: 1.15;
  margin-bottom: 18px;
}
.section-title em { font-style: italic; color: var(--dorado); font-weight: 600; }
.section-desc { color: var(--gris); font-size: 1rem; line-height: 1.8; }

/* ======================================================
   HEADER / NAV
   ====================================================== */
#main-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}
#main-header.scrolled {
  background: var(--azul);
  box-shadow: 0 2px 24px rgba(10,31,68,0.30);
}

.navbar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 4%;
  max-width: 1440px;
  margin: 0 auto;
}

.logo { flex-shrink: 0; }
.logo img { height: 52px; width: auto; transition: opacity var(--transition); }
.logo img:hover { opacity: 0.85; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.nav-links li a {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  padding: 8px 12px;
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.nav-links li a:hover,
.nav-links li a.active { color: var(--dorado); background: rgba(201,168,76,0.08); }
.nav-links li a.nav-cta {
  background: var(--dorado);
  color: var(--azul);
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--radius);
}
.nav-links li a.nav-cta:hover { background: var(--dorado-light); color: var(--azul); }

.nav-social {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-social a {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  transition: color var(--transition);
}
.nav-social a:hover { color: var(--dorado); }
.nav-wa {
  display: flex !important;
  align-items: center;
  gap: 6px;
  background: rgba(37,211,102,0.12) !important;
  padding: 6px 14px !important;
  border-radius: 20px !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  color: #4ade80 !important;
  border: 1px solid rgba(37,211,102,0.28) !important;
}
.nav-wa:hover { background: rgba(37,211,102,0.22) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
  cursor: pointer;
  z-index: 1002;
  position: relative;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blanco);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ======================================================
   HERO — layout dos columnas (texto izq + imagen der)
   ====================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--azul-deep);
}

/* Fondo difuso */
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/hero-bg.jpg');
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.06);
  animation: heroZoom 22s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1.06); }
  to   { transform: scale(1.13); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(7,21,41,0.97) 0%,
    rgba(7,21,41,0.92) 30%,
    rgba(10,31,68,0.50) 58%,
    rgba(7,21,41,0.12) 100%
  );
}

/* Líneas decorativas doradas de fondo */
.hero::before {
  content: '';
  position: absolute;
  top: 15%;
  left: 42%;
  width: 1px;
  height: 60%;
  background: linear-gradient(to bottom, transparent, rgba(201,168,76,0.18), transparent);
  z-index: 1;
}

/* Wrapper interior */
.hero-inner {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 120px 0 80px;
  min-height: 100vh;
  box-sizing: border-box;
}

/* Columna izquierda: texto */
.hero-content { width: 100%; }

.hero-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dorado);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--dorado);
  opacity: 0.6;
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 3.8vw, 4rem);
  font-weight: 700;
  color: var(--blanco);
  line-height: 1.04;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.8s 0.35s forwards;
}
.hero-title em {
  font-style: italic;
  color: var(--dorado);
  display: block;
}

/* Separador dorado decorativo */
.hero-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.7s 0.5s forwards;
}
.hero-divider span {
  width: 48px;
  height: 1px;
  background: var(--dorado);
  opacity: 0.55;
}
.hero-divider i {
  color: var(--dorado);
  font-size: 0.6rem;
  opacity: 0.7;
}

.hero-subtitle {
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  color: rgba(255,255,255,0.78);
  line-height: 1.8;
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeUp 0.8s 0.55s forwards;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 52px;
  opacity: 0;
  animation: fadeUp 0.8s 0.7s forwards;
}

/* Stats bar */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 12px;
  padding: 16px 20px;
  opacity: 0;
  animation: fadeUp 0.8s 0.9s forwards;
  backdrop-filter: blur(6px);
}
.stat { text-align: center; flex: 1; }
.stat-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--dorado);
  line-height: 1;
}
.stat-plus { font-family: var(--font-display); font-size: 1.6rem; color: var(--dorado); font-weight: 700; }
.stat-label { display: block; font-size: 0.72rem; color: rgba(255,255,255,0.6); letter-spacing: 0.04em; margin-top: 5px; line-height: 1.3; }
.stat-divider { width: 1px; height: 40px; background: rgba(201,168,76,0.25); flex-shrink: 0; }

/* Columna derecha: imagen */
.hero-img-col {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  opacity: 0;
  animation: fadeIn 1.1s 0.5s forwards;
  width: 100%;
  min-width: 0;
  overflow: visible;
}
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}

.hero-img-frame {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* Marco decorativo */
.hero-img-frame::before {
  content: '';
  position: absolute;
  top: -12px;
  right: -12px;
  width: 80%;
  height: 80%;
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 20px;
  z-index: 0;
}
.hero-img-frame::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: -12px;
  width: 55%;
  height: 55%;
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 12px;
  z-index: 0;
}

.hero-img-wrap {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(7,21,41,0.6);
}
/* Placeholder gris hasta que se suba la imagen */
.hero-img-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(201,168,76,0.08) 100%);
  border: 1px dashed rgba(201,168,76,0.3);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(201,168,76,0.6);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 24px;
}
.hero-img-placeholder i { font-size: 2.5rem; opacity: 0.5; }
/*
  ============================================================
  IMAGEN HERO DERECHA
  Una vez tengas tu imagen, reemplaza el bloque
  <div class="hero-img-placeholder">...</div>
  por:
  <img src="img/hero-equipo.jpg" alt="Equipo Jurídico Virtual" />

  Tamaño recomendado: 800×600 px, JPG optimizado
  La imagen debe mostrar: abogados trabajando / reunión /
  tribunal / despacho profesional
  ============================================================
*/
.hero-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Badge flotante */
.hero-badge {
  position: absolute;
  bottom: 20px;
  left: -20px;
  background: var(--azul);
  border: 1px solid rgba(201,168,76,0.35);
  border-radius: 12px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-md);
  z-index: 3;
  backdrop-filter: blur(8px);
  min-width: 190px;
}
.hero-badge i { color: var(--dorado); font-size: 1.4rem; flex-shrink: 0; }
.hero-badge-text strong { display: block; font-size: 0.9rem; color: var(--blanco); font-weight: 700; line-height: 1.2; }
.hero-badge-text span  { font-size: 0.72rem; color: rgba(255,255,255,0.6); }

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  animation: bounce 2.5s ease-in-out infinite;
}
.hero-scroll-hint span {
  display: block;
  width: 22px;
  height: 36px;
  border: 1.5px solid rgba(201,168,76,0.45);
  border-radius: 11px;
  position: relative;
  margin: 0 auto;
}
.hero-scroll-hint span::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 7px;
  background: var(--dorado);
  border-radius: 2px;
  animation: scrollDot 2.5s ease-in-out infinite;
}
@keyframes scrollDot {
  0%   { opacity: 1; top: 5px; }
  100% { opacity: 0; top: 18px; }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(5px); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ======================================================
   NOTICIAS
   ====================================================== */
.noticias-section { background: var(--crema); }

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.news-card {
  background: var(--blanco);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border-top: 3px solid transparent;
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-top-color: var(--dorado);
}
.news-card-img { position: relative; flex-shrink: 0; }
.news-img-placeholder {
  height: 185px;
  background: linear-gradient(135deg, var(--gris-light) 0%, #d0cec9 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.news-img-placeholder::after {
  content: '[ Imagen noticia ]';
  font-size: 0.72rem;
  color: #9ca3af;
  letter-spacing: 0.08em;
}
.news-card-img img { width: 100%; height: 185px; object-fit: cover; }
.news-tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: var(--azul);
  color: var(--dorado);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
}
.news-card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.news-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--azul);
  margin-bottom: 10px;
  line-height: 1.3;
}
.news-card-body p { color: var(--gris); font-size: 0.88rem; line-height: 1.7; margin-bottom: 16px; flex: 1; }
.news-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--dorado);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: gap var(--transition), color var(--transition);
  margin-top: auto;
}
.news-link:hover { gap: 11px; color: var(--azul); }
.news-link i { font-size: 0.72rem; }

.news-fb-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(100deg, #1877f2 0%, #0c5fd4 100%);
  color: var(--blanco);
  padding: 20px 26px;
  border-radius: var(--radius-lg);
  flex-wrap: wrap;
}
.news-fb-cta i { font-size: 1.8rem; flex-shrink: 0; }
.news-fb-cta p { flex: 1; font-size: 0.92rem; min-width: 180px; }
.news-fb-cta .btn-sm {
  background: var(--blanco);
  color: #1877f2;
  border-color: var(--blanco);
  flex-shrink: 0;
  font-weight: 700;
}

/* ======================================================
   SERVICIOS
   ====================================================== */
.servicios-section { background: var(--blanco); }

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 48px;
}

.servicio-card {
  padding: 32px 26px;
  border: 1px solid var(--gris-light);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  background: var(--blanco);
}
.servicio-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--dorado), var(--dorado-light));
  transition: width 0.4s ease;
}
.servicio-card:hover {
  border-color: rgba(201,168,76,0.4);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.servicio-card:hover::before { width: 100%; }

.servicio-icon {
  width: 52px;
  height: 52px;
  background: var(--dorado-dim);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: background var(--transition);
}
.servicio-card:hover .servicio-icon { background: var(--dorado); }
.servicio-icon i { font-size: 1.3rem; color: var(--dorado); transition: color var(--transition); }
.servicio-card:hover .servicio-icon i { color: var(--azul); }
.servicio-card h3 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--azul);
  margin-bottom: 10px;
  line-height: 1.3;
}
.servicio-card p { color: var(--gris); font-size: 0.88rem; line-height: 1.7; margin-bottom: 18px; }
.servicio-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--dorado);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: gap var(--transition);
}
.servicio-link::after { content: '→'; display: inline-block; transition: transform var(--transition); }
.servicio-link:hover { gap: 10px; }
.servicio-link:hover::after { transform: translateX(3px); }
.servicios-cta { text-align: center; }

/* ======================================================
   ABOUT / NOSOTROS
   ====================================================== */
.about-section { background: var(--crema); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.about-lead { font-size: 1.08rem; color: var(--azul); margin-bottom: 14px; }
.about-text p { color: var(--gris); margin-bottom: 24px; }
.about-text .section-title { text-align: left; }
.about-pillars { display: flex; flex-direction: column; gap: 18px; margin-bottom: 34px; }
.pillar { display: flex; align-items: flex-start; gap: 14px; }
.pillar > i {
  width: 38px; height: 38px;
  background: var(--dorado-dim);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--dorado);
  font-size: 0.95rem;
  flex-shrink: 0;
}
.pillar > div { display: flex; flex-direction: column; gap: 3px; }
.pillar strong { font-size: 0.88rem; color: var(--azul); font-weight: 600; }
.pillar span { font-size: 0.83rem; color: var(--gris); line-height: 1.6; }
.about-visual { position: relative; }
.about-img-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.about-img-placeholder {
  height: 460px;
  background: linear-gradient(135deg, #b8b5ae 0%, #8a8782 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-img-placeholder::after {
  content: '[ Foto del despacho / equipo ]';
  font-size: 0.72rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.08em;
}
.about-img-wrap img { width: 100%; height: 460px; object-fit: cover; }
.about-stats-card {
  position: absolute;
  bottom: -24px;
  left: -24px;
  background: var(--azul);
  color: var(--blanco);
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  display: flex;
  gap: 20px;
  align-items: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(201,168,76,0.2);
}
.about-stat { text-align: center; }
.about-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dorado);
  line-height: 1;
}
.about-stat span { font-size: 0.72rem; color: rgba(255,255,255,0.65); margin-top: 4px; display: block; }
.about-stat-sep { width: 1px; height: 36px; background: rgba(201,168,76,0.25); }

/* ======================================================
   CLIENTES
   ====================================================== */
.clientes-section { background: var(--blanco); padding: 60px 0; }
.clientes-title {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gris);
  margin-bottom: 36px;
}
.clientes-track-wrap {
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #fff 12%, #fff 88%, transparent);
  mask: linear-gradient(90deg, transparent, #fff 12%, #fff 88%, transparent);
}
.clientes-track {
  display: flex;
  align-items: center;
  gap: 44px;
  animation: scroll-clients 28s linear infinite;
  width: max-content;
}
.clientes-track:hover { animation-play-state: paused; }
@keyframes scroll-clients {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.cliente-logo { display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo-placeholder {
  width: 110px; height: 52px;
  background: var(--gris-light);
  border-radius: 6px;
}
.cliente-logo img {
  height: 52px; width: auto; object-fit: contain;
  filter: grayscale(1) opacity(0.5);
  transition: filter var(--transition);
}
.cliente-logo img:hover { filter: none; }

/* ======================================================
   CTA SECTION
   ====================================================== */
.cta-section {
  position: relative;
  padding: 88px 0;
  background-image: url('../img/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.cta-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(7,21,41,0.95) 0%, rgba(18,43,94,0.90) 100%);
}
.cta-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
}
.cta-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  font-weight: 700;
  color: var(--blanco);
  max-width: 540px;
  line-height: 1.2;
  margin-bottom: 10px;
}
.cta-text p { color: rgba(255,255,255,0.72); font-size: 0.96rem; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ======================================================
   WHATSAPP FLOTANTE
   ====================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 999;
  background: #25D366;
  color: var(--blanco);
  border-radius: 50px;
  padding: 13px 18px;
  display: flex;
  align-items: center;
  gap: 9px;
  box-shadow: 0 6px 28px rgba(37,211,102,0.45);
  transition: var(--transition);
  font-size: 0.83rem;
  font-weight: 600;
}
.whatsapp-float i { font-size: 1.35rem; flex-shrink: 0; }
.whatsapp-float span {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width 0.4s ease, opacity 0.3s;
  opacity: 0;
}
.whatsapp-float:hover span { max-width: 200px; opacity: 1; }
.whatsapp-float:hover { transform: translateY(-3px); box-shadow: 0 10px 36px rgba(37,211,102,0.55); }

/* ======================================================
   FOOTER
   ====================================================== */
#footer {
  background: var(--azul-deep);
  color: rgba(255,255,255,0.75);
  padding: 72px 0 0;
  border-top: 1px solid rgba(201,168,76,0.12);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
  gap: 44px;
  margin-bottom: 56px;
}
.footer-brand img { margin-bottom: 14px; height: 56px; width: auto; }
.footer-brand p { font-size: 0.86rem; color: rgba(255,255,255,0.55); line-height: 1.7; margin-bottom: 18px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.82rem;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--dorado); border-color: var(--dorado); color: var(--azul); }
#footer h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dorado);
  margin-bottom: 18px;
}
.footer-nav ul { display: flex; flex-direction: column; gap: 9px; }
.footer-nav a {
  font-size: 0.86rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition), padding-left var(--transition);
}
.footer-nav a:hover { color: var(--dorado); padding-left: 5px; }
.oficina { display: flex; gap: 11px; margin-bottom: 16px; }
.oficina i { color: var(--dorado); margin-top: 3px; flex-shrink: 0; font-size: 0.88rem; }
.oficina strong { display: block; font-size: 0.83rem; color: var(--blanco); margin-bottom: 3px; }
.oficina span { font-size: 0.78rem; color: rgba(255,255,255,0.5); line-height: 1.6; }
.footer-contacto ul { display: flex; flex-direction: column; gap: 11px; margin-bottom: 22px; }
.footer-contacto li { display: flex; align-items: center; gap: 9px; font-size: 0.86rem; }
.footer-contacto li i { color: var(--dorado); width: 15px; flex-shrink: 0; }
.footer-contacto a { color: rgba(255,255,255,0.6); transition: color var(--transition); }
.footer-contacto a:hover { color: var(--dorado); }
.footer-horario h5 {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--dorado);
  margin-bottom: 7px;
  display: flex; align-items: center; gap: 7px;
}
.footer-horario p { font-size: 0.83rem; color: rgba(255,255,255,0.55); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 0;
  text-align: center;
}
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.35); }

/* ======================================================
   ANIMATIONS — IntersectionObserver AOS
   ====================================================== */
[data-aos] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-aos].aos-visible { opacity: 1; transform: translateY(0); }
[data-aos][data-aos-delay="80"]  { transition-delay: 0.08s; }
[data-aos][data-aos-delay="100"] { transition-delay: 0.1s; }
[data-aos][data-aos-delay="160"] { transition-delay: 0.16s; }
[data-aos][data-aos-delay="200"] { transition-delay: 0.2s; }
[data-aos][data-aos-delay="240"] { transition-delay: 0.24s; }
[data-aos][data-aos-delay="320"] { transition-delay: 0.32s; }
[data-aos][data-aos-delay="400"] { transition-delay: 0.4s; }
[data-aos="fade-right"] { transform: translateX(-28px); }
[data-aos="fade-left"]  { transform: translateX(28px); }
[data-aos="fade-right"].aos-visible,
[data-aos="fade-left"].aos-visible { transform: translateX(0); }

/* ======================================================
   PAGE HERO (páginas internas)
   ====================================================== */
.page-hero {
  background: var(--azul-deep);
  padding: 152px 0 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/hero-bg.jpg') center/cover no-repeat;
  opacity: 0.08;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--dorado), transparent);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  color: var(--blanco);
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.page-hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  max-width: 520px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ======================================================
   CONTACT PAGE
   ====================================================== */
.contact-section { background: var(--crema); padding: 88px 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 56px;
  align-items: start;
}
.contact-info h2 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--azul);
  margin-bottom: 14px;
  font-weight: 700;
  line-height: 1.2;
}
.contact-info > p { color: var(--gris); margin-bottom: 32px; line-height: 1.8; }
.contact-details { display: flex; flex-direction: column; gap: 18px; margin-bottom: 32px; }
.contact-detail { display: flex; gap: 13px; align-items: flex-start; }
.contact-detail-icon {
  width: 42px; height: 42px;
  background: var(--dorado-dim);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--dorado);
  font-size: 0.95rem;
  flex-shrink: 0;
}
.contact-detail-text strong {
  display: block; font-size: 0.75rem; color: var(--azul);
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 3px;
}
.contact-detail-text span,
.contact-detail-text a { font-size: 0.88rem; color: var(--gris); }
.contact-detail-text a:hover { color: var(--dorado); }
.wa-btn-lg {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: #25D366;
  color: var(--blanco);
  padding: 15px 26px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.96rem;
  transition: var(--transition);
  margin-bottom: 40px;
  width: 100%;
  justify-content: center;
}
.wa-btn-lg i { font-size: 1.25rem; }
.wa-btn-lg:hover { background: #1da851; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,211,102,0.3); }
.contact-maps { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.map-wrap h4 {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--azul); margin-bottom: 7px;
}
.map-wrap iframe { width: 100%; border-radius: var(--radius); border: none; }

/* Formulario */
.contact-form-wrap {
  background: var(--blanco);
  padding: 44px 38px;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--dorado);
}
.contact-form-wrap h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--azul);
  margin-bottom: 5px;
}
.contact-form-wrap > p { font-size: 0.88rem; color: var(--gris); margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.form-group label {
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--azul);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 13px 14px;
  border: 1.5px solid var(--gris-light);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.93rem;
  color: var(--negro);
  background: var(--crema);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--dorado);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.14);
  background: var(--blanco);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
}
.form-submit .btn-primary { width: 100%; justify-content: center; padding: 15px; font-size: 0.96rem; }
.form-success {
  display: none;
  text-align: center;
  padding: 22px;
  background: rgba(37,211,102,0.07);
  border-radius: var(--radius);
  border: 1px solid rgba(37,211,102,0.28);
  margin-top: 14px;
  color: #166534;
}
.form-success i { font-size: 2.2rem; color: #25D366; margin-bottom: 8px; display: block; }

/* ======================================================
   RESPONSIVE — DESKTOP GRANDE (≥1400px)
   ====================================================== */
@media (min-width: 1400px) {
  .hero-inner { max-width: 1320px; gap: 80px; padding: 130px 0 90px; }
  .hero-title { font-size: 4.4rem; }
}

/* ======================================================
   RESPONSIVE — TABLET GRANDE (≤1200px)
   ====================================================== */
@media (max-width: 1200px) {
  .hero-inner { gap: 36px; padding: 115px 0 80px; }
  .hero-title { font-size: clamp(2.2rem, 3.2vw, 3.4rem); }
  .navbar { gap: 10px; }
  .nav-links li a { font-size: 0.76rem; padding: 7px 8px; }
  .servicios-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-visual { max-width: 480px; margin: 0 auto 30px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ======================================================
   RESPONSIVE — TABLET / MÓVIL GRANDE (≤900px)
   ====================================================== */
@media (max-width: 900px) {
  /* Nav hamburguesa desde 900px */
  .nav-social { display: none; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(7,21,41,0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 998;
    padding: 100px 20px 120px;
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links li a {
    font-size: 1.1rem;
    display: block;
    padding: 13px 20px;
    border-radius: var(--radius);
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nav-links li a.nav-cta {
    margin-top: 8px;
    width: 100%;
    display: block;
    text-align: center;
  }
  .logo img { height: 44px; }

  /* Hero en columna única */
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 110px 0 64px;
    min-height: auto;
    gap: 36px;
    text-align: center;
    width: 90%;
  }
  .hero-content { width: 100%; max-width: 560px; margin: 0 auto; }
  .hero-eyebrow { justify-content: center; }
  .hero-divider { justify-content: center; }
  .hero-actions { justify-content: center; flex-wrap: wrap; }
  .hero-img-col {
    order: -1;
    max-width: 440px;
    margin: 0 auto;
    width: 100%;
  }
  .hero-img-frame::before,
  .hero-img-frame::after { display: none; }
  .hero-badge { left: 8px; bottom: 8px; min-width: 150px; padding: 10px 12px; }
  .hero::before { display: none; }
  .hero-scroll-hint { display: none; }
}

/* ======================================================
   RESPONSIVE — MÓVIL (≤768px)
   ====================================================== */
@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .section-header { margin-bottom: 36px; }

  .nav-social {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--azul-deep);
    border-top: 1px solid rgba(201,168,76,0.15);
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 14px 20px;
    z-index: 999;
  }
  .nav-social.open { display: flex; }
  .logo { z-index: 1002; position: relative; }
  .logo img { height: 40px; }

  /* Hero móvil */
  .hero-inner {
    padding: 96px 0 56px;
    gap: 28px;
  }
  .hero-title { font-size: clamp(2rem, 7vw, 2.6rem); }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-stats {
    flex-direction: row;
    justify-content: center;
    gap: 0;
    padding: 14px 10px;
  }
  .hero-stats .stat { flex: 1; }
  .stat-number { font-size: 1.6rem; }
  .stat-label { font-size: 0.63rem; }
  .hero-badge { left: 6px; bottom: 6px; min-width: 140px; padding: 9px 11px; }
  .hero-badge i { font-size: 1rem; }
  .hero-badge-text strong { font-size: 0.78rem; }
  .hero-badge-text span { font-size: 0.62rem; }

  /* Noticias */
  .news-grid { grid-template-columns: 1fr; gap: 16px; }
  .news-fb-cta {
    flex-direction: column;
    text-align: center;
    gap: 14px;
    padding: 18px 18px;
  }
  .news-fb-cta .btn-sm { width: 100%; justify-content: center; }

  /* Servicios */
  .servicios-grid { grid-template-columns: 1fr; gap: 14px; }
  .servicios-cta .btn { width: 100%; justify-content: center; }

  /* About */
  .about-stats-card {
    position: static;
    margin-top: 0;
    border-radius: var(--radius-lg);
    width: 100%;
  }

  /* Clientes */
  .clientes-section { padding: 40px 0; }

  /* CTA */
  .cta-content { flex-direction: column; text-align: center; gap: 24px; }
  .cta-actions { flex-direction: column; width: 100%; gap: 12px; }
  .cta-actions .btn { width: 100%; justify-content: center; }
  .cta-section { background-attachment: scroll; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  #footer { padding-top: 48px; }

  /* Contacto */
  .form-row { grid-template-columns: 1fr; }
  .contact-maps { grid-template-columns: 1fr; gap: 14px; }
  .contact-form-wrap { padding: 26px 18px; }
  .wa-btn-lg { font-size: 0.9rem; padding: 14px 18px; }

  /* Page hero */
  .page-hero { padding: 128px 0 52px; }

  /* WhatsApp float */
  .whatsapp-float { bottom: 14px; right: 14px; padding: 10px 14px; }
  .whatsapp-float i { font-size: 1.2rem; }

  /* Servicios page inline grids */
  div[style*="grid-template-columns: 1fr 1fr"] {
    display: block !important;
  }
  div[style*="grid-template-columns: 1fr 1fr"] > * {
    margin-bottom: 20px;
  }
}

/* ======================================================
   RESPONSIVE — MÓVIL PEQUEÑO (≤480px)
   ====================================================== */
@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .hero-inner { width: 92%; }
  .hero-stats { gap: 0; }
  .stat-number { font-size: 1.4rem; }
  .stat-divider { margin: 0 4px; }
  .stat-plus { font-size: 1.2rem; }
  .btn { padding: 12px 20px; font-size: 0.82rem; }
  .news-card-body h3 { font-size: 1.05rem; }
  .servicio-card { padding: 24px 18px; }
  .contact-form-wrap { padding: 20px 14px; }
  .hero-badge { display: none; }
  .container { width: 94%; }
  .section-title { font-size: 1.7rem; }
  .footer-grid { gap: 20px; }
  .about-stats-card { flex-direction: column; gap: 12px; text-align: center; }
  .about-stat-sep { width: 36px; height: 1px; }
  .logo img { height: 36px; }
}

/* ======================================================
   REDUCE MOTION
   ====================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    animation-delay: 0.01ms !important;
  }
  .hero-bg { animation: none; transform: scale(1.06); }
  [data-aos] { opacity: 1; transform: none; }
}


/* =========================================================
   JURÍDICO VIRTUAL — Corrección de encuadre y responsive v4.2
   ========================================================= */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body {
  min-width: 320px;
}

.container,
.hero-inner,
.navbar,
.footer-grid,
.contact-grid,
.about-grid,
.news-grid,
.servicios-grid,
.cta-content {
  min-width: 0;
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
li,
a,
span,
strong {
  overflow-wrap: break-word;
}

/* Header más estable: evita que el menú empuje el layout fuera de pantalla */
#main-header {
  width: 100%;
}

.navbar {
  width: min(94vw, 1320px);
  max-width: 1320px;
  padding: 14px 0;
  justify-content: space-between;
}

.logo img {
  width: auto;
  max-width: 174px;
  height: 50px;
  object-fit: contain;
}

.nav-links {
  min-width: 0;
  flex-wrap: nowrap;
}

.nav-links li a {
  line-height: 1.2;
}

/* Hero corregido: texto dentro del lienzo, fondo armonizado y composición real */
.hero {
  min-height: clamp(720px, 100vh, 920px);
  isolation: isolate;
}

.hero-bg {
  background-color: var(--azul-deep);
  background-image:
    radial-gradient(circle at 80% 25%, rgba(201,168,76,0.22), transparent 24%),
    radial-gradient(circle at 72% 72%, rgba(255,255,255,0.08), transparent 30%),
    linear-gradient(105deg, rgba(7,21,41,0.98) 0%, rgba(10,31,68,0.96) 45%, rgba(18,43,94,0.72) 72%, rgba(7,21,41,0.92) 100%),
    url('../img/hero-bg.jpg');
  background-size: cover;
  background-position: center right;
  filter: saturate(0.98) contrast(1.03);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(7,21,41,0.98) 0%, rgba(7,21,41,0.94) 34%, rgba(10,31,68,0.66) 62%, rgba(7,21,41,0.42) 100%),
    linear-gradient(0deg, rgba(7,21,41,0.45), transparent 36%);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7,21,41,0.78) 0%, transparent 38%),
    radial-gradient(circle at 68% 48%, transparent 0 24%, rgba(201,168,76,0.10) 25%, transparent 26% 100%);
}

.hero::before {
  left: 50%;
  opacity: 0.75;
}

.hero-inner {
  width: min(92vw, 1220px);
  max-width: 1220px;
  grid-template-columns: minmax(0, 0.98fr) minmax(320px, 0.82fr);
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(118px, 13vh, 150px) 0 clamp(72px, 9vh, 104px);
  min-height: inherit;
}

.hero-content {
  width: 100%;
  max-width: 630px;
  justify-self: start;
}

.hero-title {
  font-size: clamp(3rem, 5.2vw, 5rem);
  max-width: 760px;
  letter-spacing: -0.025em;
}

.hero-subtitle {
  max-width: 590px;
  font-size: clamp(1rem, 1.18vw, 1.16rem);
}

.hero-actions,
.hero-stats {
  max-width: 570px;
}

.hero-stats {
  width: 100%;
}

.hero-img-col {
  justify-self: stretch;
}

.hero-img-frame {
  max-width: 500px;
  margin-left: auto;
}

.hero-img-wrap {
  min-height: 360px;
  background: linear-gradient(145deg, rgba(255,255,255,0.10), rgba(201,168,76,0.07));
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(3px);
}

.hero-img-placeholder {
  min-height: 360px;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(201,168,76,0.24);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(7,21,41,0.08), rgba(10,31,68,0.64)),
    radial-gradient(circle at 70% 30%, rgba(201,168,76,0.18), transparent 28%),
    linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  box-shadow: inset 0 0 60px rgba(201,168,76,0.08);
}

.hero-img-placeholder::before {
  content: 'Asesoría legal integral';
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.1vw, 2rem);
  color: rgba(255,255,255,0.86);
  line-height: 1.12;
  max-width: 250px;
}

.hero-img-placeholder i,
.hero-img-placeholder span {
  display: none !important;
}

.hero-badge {
  max-width: calc(100% - 32px);
}

/* Páginas internas: evita textos cortados por encabezados y mejora lectura */
.page-hero {
  padding: clamp(124px, 15vw, 156px) 0 clamp(54px, 7vw, 78px) !important;
}

.page-hero h1 {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-hero p {
  width: min(92vw, 620px);
}

/* Tarjetas y placeholders menos secos, porque hasta el vacío merece dignidad visual */
.news-img-placeholder,
.about-img-placeholder,
.sitio-img-icon {
  background:
    radial-gradient(circle at 70% 25%, rgba(201,168,76,0.22), transparent 26%),
    linear-gradient(135deg, #0A1F44 0%, #122b5e 58%, #071529 100%);
}

.news-img-placeholder::after {
  content: 'Actualidad legal';
  color: rgba(255,255,255,0.72);
}

.about-img-placeholder::after {
  content: 'Equipo jurídico especializado';
  color: rgba(255,255,255,0.78);
}

/* Contacto */
.contact-grid {
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.2fr);
}

.contact-form-wrap,
.login-card,
.news-card,
.servicio-card,
.sitio-card {
  max-width: 100%;
}

.form-group input,
.form-group select,
.form-group textarea,
.login-form input[type="email"],
.login-form input[type="password"] {
  min-width: 0;
}

/* Desktop medio: menú hamburguesa antes de que el nav empiece a hacer malabares */
@media (max-width: 1100px) {
  .navbar {
    width: min(92vw, 980px);
    padding: 12px 0;
  }

  .nav-toggle { display: flex; }
  .nav-social { display: none; }

  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(7,21,41,0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 998;
    padding: 100px 20px 120px;
    overflow-y: auto;
    margin-left: 0;
  }

  .nav-links.open { display: flex; }
  .nav-links li { width: min(100%, 360px); text-align: center; }
  .nav-links li a {
    display: block;
    width: 100%;
    font-size: 1.04rem;
    padding: 13px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .nav-links li a.nav-cta {
    display: block;
    text-align: center;
    margin-top: 8px;
  }
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
  }

  .hero-bg {
    background-position: center;
  }

  .hero-overlay,
  .hero::after {
    background: linear-gradient(180deg, rgba(7,21,41,0.96) 0%, rgba(7,21,41,0.90) 100%);
  }

  .hero-inner {
    grid-template-columns: 1fr;
    width: min(90vw, 720px);
    text-align: center;
    min-height: auto;
    padding: 118px 0 68px;
  }

  .hero-content {
    justify-self: center;
    margin: 0 auto;
    max-width: 680px;
  }

  .hero-eyebrow,
  .hero-divider,
  .hero-actions {
    justify-content: center;
  }

  .hero-subtitle,
  .hero-actions,
  .hero-stats {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-img-col {
    display: none;
  }

  .hero-title {
    font-size: clamp(2.55rem, 8vw, 4.25rem);
  }

  .contact-grid,
  .about-grid {
    grid-template-columns: 1fr !important;
  }

  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  [style*="order:2"],
  [style*="order: 2"],
  [style*="order:1"],
  [style*="order: 1"] {
    order: initial !important;
  }
}

@media (max-width: 768px) {
  .container {
    width: min(92vw, 640px);
  }

  .section {
    padding: 62px 0;
  }

  .hero-inner {
    width: min(91vw, 620px);
    padding: 104px 0 58px;
  }

  .hero-eyebrow {
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    line-height: 1.4;
    flex-wrap: wrap;
  }

  .hero-title {
    font-size: clamp(2.35rem, 12vw, 3.35rem);
  }

  .hero-subtitle {
    font-size: 0.98rem;
    line-height: 1.72;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 14px 10px;
  }

  .stat-divider {
    display: none;
  }

  .stat-number { font-size: clamp(1.35rem, 7vw, 1.75rem); }
  .stat-plus { font-size: 1.1rem; }
  .stat-label { font-size: 0.62rem; }

  .page-hero h1 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .contact-section {
    padding: 62px 0;
  }

  .contact-form-wrap {
    padding: 28px 20px;
    border-radius: 16px;
  }

  .contact-maps iframe {
    height: 180px;
  }

  .footer-brand img {
    max-width: 170px;
  }

  .sitios-hero-sub p,
  .section-desc,
  .page-hero p {
    font-size: 0.95rem;
  }
}

@media (max-width: 520px) {
  .navbar {
    width: min(91vw, 440px);
  }

  .logo img { height: 38px; max-width: 146px; }

  .btn {
    width: 100%;
    justify-content: center;
    white-space: normal;
    line-height: 1.25;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px 14px;
  }

  .stat {
    padding: 4px 0;
  }

  .section-title {
    font-size: clamp(1.75rem, 9vw, 2.2rem);
  }

  .news-card-body,
  .servicio-card,
  .sitio-body {
    padding: 20px 16px;
  }

  [style*="padding:40px"],
  [style*="padding: 40px"] {
    padding: 24px !important;
  }

  [style*="font-size:2rem"],
  [style*="font-size: 2rem"] {
    font-size: 1.55rem !important;
  }

  .whatsapp-float span {
    display: none;
  }
}
