/* ==========================================================================
   ARISA Asesoría y Consulta Jurídica - Minimalist Corporate Light & Sky Aesthetic
   Inspirado en https://www.asesoriayconsulta.com/
   Paleta: Blanco puro (#ffffff), Azul Glaciar / Hielo (#f0f6fc, #eaf2fa), 
   Azul Corporativo Real (#0f4c85, #1976d2, #377dbd), Gris Pizarra (#334155, #64748b)
   y detalles sutiles en Oro Institucional (#b79347, #d4af37)
   ========================================================================== */

:root {
  /* Surface & Background Tones */
  --bg-deep: #f8fafc;
  --bg-primary: #ffffff;
  --bg-secondary: #f0f6fc;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fbff;
  --bg-glass: rgba(255, 255, 255, 0.92);
  --bg-glass-light: rgba(15, 76, 133, 0.04);
  --bg-hero: linear-gradient(180deg, #edf5fc 0%, #ffffff 100%);

  /* Blue Palette (asesoriayconsulta.com inspired) */
  --blue-primary: #0f4c85;
  /* Azul marino institucional */
  --blue-vibrant: #1a73e8;
  /* Azul enlace Google/Wix */
  --blue-sky: #377dbd;
  /* Azul medio despejado */
  --blue-light: #83b7e6;
  /* Azul cielo suave */
  --blue-ice: #eaf4f6;
  /* Azul hielo ultra claro */
  --blue-border: rgba(15, 76, 133, 0.12);
  --blue-border-hover: rgba(26, 115, 232, 0.4);

  /* Gold Accents (Subtle & Elegant) */
  --gold-primary: #b79347;
  --gold-light: #c5a880;
  --gold-vibrant: #d4af37;
  --gold-brillant: #f8bf03;
  --gold-dark: #8c734b;
  --gold-glow: rgba(183, 147, 71, 0.18);
  --gold-border: rgba(183, 147, 71, 0.25);
  --gold-border-hover: rgba(247, 202, 3, 0.6);

  /* Typography Colors (High Contrast & Legible) */
  --text-pure: #0a192f;
  --text-main: #1e293b;
  --text-muted: #475569;
  --text-dim: #64748b;

  /* Status Colors */
  --accent-blue: #1d4ed8;
  --accent-emerald: #059669;
  --accent-amber: #d97706;
  --accent-rose: #e11d48;

  /* Typography */
  --font-serif: 'Cinzel', 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Transitions & Shadows */
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.18s ease-in-out;
  --shadow-subtle: 0 4px 20px rgba(15, 76, 133, 0.06);
  --shadow-card: 0 10px 30px -5px rgba(15, 76, 133, 0.08), 0 4px 12px rgba(0, 0, 0, 0.03);
  --shadow-gold: 0 8px 24px rgba(183, 147, 71, 0.2);
  --shadow-glow: 0 0 25px rgba(26, 115, 232, 0.12);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 9999px;

  --max-width: 1240px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  scrollbar-width: none; /* Firefox: oculta la barra de scroll */
  -ms-overflow-style: none; /* IE y Edge clásico */
}

/* Ocultar barra de scroll derecha en Chromium (Chrome, Edge, Opera) y Safari manteniendo el scroll */
html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;
}

body.menu-open {
  overflow: hidden;
}

/* Ambient Subtle Background - 100% de ancho sin desbordes ni huecos */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 15% 10%, rgba(131, 183, 230, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 85% 60%, rgba(234, 244, 246, 0.8) 0%, transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  z-index: -2;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   Top Announcement & Contact Bar
   ========================================================================== */
.top-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--blue-border);
  font-size: 0.82rem;
  padding: 0.5rem 0;
  color: var(--text-dim);
  position: relative;
  z-index: 110;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.top-bar-left,
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.top-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-dim);
  font-weight: 500;
}

.top-link svg {
  width: 14px;
  height: 14px;
  color: var(--blue-sky);
}

.top-link:hover {
  color: var(--blue-primary);
}

.top-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--blue-ice);
  color: var(--blue-primary);
  border: 1px solid rgba(15, 76, 133, 0.18);
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.top-badge-pulse {
  width: 6px;
  height: 6px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }

  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--blue-border);
  z-index: 100;
  transition: var(--transition-smooth);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(15, 76, 133, 0.08);
  border-bottom-color: rgba(15, 76, 133, 0.18);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-icon-wrapper {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(15, 76, 133, 0.2);
  background: linear-gradient(135deg, var(--blue-ice) 0%, #ffffff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--blue-primary);
  box-shadow: 0 2px 8px rgba(15, 76, 133, 0.08);
  transition: var(--transition-smooth);
}

.brand-logo:hover .brand-icon-wrapper {
  border-color: var(--gold-brillant);
  box-shadow: 0 4px 14px rgba(55, 125, 189, 0.25);
  transform: translateY(-2px);
}

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

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--blue-primary);
  line-height: 1.1;
}

.brand-tagline {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold-primary);
  font-weight: 700;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  padding: 0.4rem 0;
  letter-spacing: 0.02em;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-sky), var(--blue-primary));
  transition: var(--transition-smooth);
}

.nav-link:hover,
.nav-link.active {
  color: var(--blue-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Dropdown */
.nav-item-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-md);
  min-width: 250px;
  padding: 0.6rem 0;
  box-shadow: 0 15px 35px rgba(15, 76, 133, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition-smooth);
  list-style: none;
  z-index: 101;
}

.nav-item-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.dropdown-link:hover {
  background: var(--blue-ice);
  color: var(--blue-primary);
  padding-left: 1.5rem;
}

.nav-mobile-cta {
  display: none;
}

.header-cta-desktop {
  display: inline-flex;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--gold-border);
  color: var(--text-main);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  transition: var(--transition-fast);
}

.mobile-toggle:active {
  transform: scale(0.92);
  background-color: var(--blue-ice);
}

.mobile-toggle svg,
.mobile-toggle line,
.mobile-toggle path {
  pointer-events: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-sky) 100%);
  color: #ffffff;
  border-color: var(--blue-primary);
  box-shadow: 0 4px 14px rgba(15, 76, 133, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0d3e6d 0%, var(--blue-primary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 76, 133, 0.35);
  color: #ffffff;
}

.btn-secondary {
  background: #ffffff;
  color: var(--blue-primary);
  border: 1px solid var(--blue-sky);
  box-shadow: 0 2px 8px rgba(15, 76, 133, 0.06);
}

.btn-secondary:hover {
  background: var(--blue-ice);
  border-color: var(--blue-primary);
  color: var(--blue-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(15, 76, 133, 0.12);
}

.btn-sm {
  padding: 0.55rem 1.15rem;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  padding: 5.5rem 0;
  border-bottom: 1px solid var(--blue-border);
  overflow: hidden;
  background-color: #0f4c85;
}

.hero-bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 76, 133, 0.42) 0%, rgba(240, 246, 252, 0.25) 50%, rgba(255, 255, 255, 0.95) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-glow-element {
  position: absolute;
  top: 15%;
  right: 15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(131, 183, 230, 0.2) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(60px);
  z-index: 1;
}

.hero-container-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 920px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(240, 246, 252, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(55, 125, 189, 0.32);
  border-radius: 20px;
  padding: 3.5rem 3rem 2.75rem;
  box-shadow: 0 20px 50px -10px rgba(15, 76, 133, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.85) inset;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--gold-brillant);
  margin-bottom: 1.5rem;
  background: rgba(34, 96, 153, 0.92);
  padding: 0.5rem 1.35rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(23, 119, 209, 0.2);
  box-shadow: 0 2px 10px rgba(15, 76, 133, 0.06);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.2vw, 3.6rem);
  font-weight: 700;
  line-height: 1.22;
  color: var(--text-pure);
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
  max-width: 860px;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--blue-primary) 20%, var(--blue-sky) 80%, var(--blue-vibrant) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-description {
  font-size: 1.14rem;
  color: #334155;
  line-height: 1.75;
  margin-bottom: 2.5rem;
  max-width: 740px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 2.75rem;
}

.hero-trust-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(15, 76, 133, 0.16);
  width: 100%;
  max-width: 820px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #1e293b;
}

.trust-item svg {
  color: var(--blue-sky);
  width: 17px;
  height: 17px;
}

/* ==========================================================================
   Metrics Strip (Authority Bar)
   ========================================================================== */
.metrics-strip {
  background: #ffffff;
  border-bottom: 1px solid var(--blue-border);
  padding: 3rem 0;
  position: relative;
  z-index: 10;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.metric-card {
  padding: 1rem 1.5rem;
  border-left: 3px solid var(--blue-sky);
  background: linear-gradient(90deg, rgba(234, 244, 246, 0.4) 0%, transparent 100%);
  transition: var(--transition-smooth);
}

.metric-card:hover {
  border-left-color: var(--blue-primary);
  transform: translateX(4px);
}

.metric-number {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--blue-primary);
  line-height: 1;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
}

.metric-number span {
  color: var(--gold-primary);
  font-size: 2rem;
}

.metric-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 0.25rem;
}

.metric-desc {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.45;
}

/* ==========================================================================
   Section Headers (Shared)
   ========================================================================== */
.section {
  padding: 6.5rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 4rem;
}

.section-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
  color: var(--gold-primary);
  margin-bottom: 0.75rem;
  display: inline-block;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  color: var(--text-pure);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1.2rem;
}

/* Stacked Title Structure (e.g. «ARISA» vs «El Abogado Generalista») */
.section-title.title-stacked {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  line-height: 1.2;
}

.section-title .title-top {
  display: block;
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  color: var(--blue-primary);
  letter-spacing: 0.02em;
}

.section-title .title-vs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin: 0.4rem 0;
  position: relative;
  padding: 0 1.2rem;
}

.section-title .title-vs::before,
.section-title .title-vs::after {
  content: '';
  display: inline-block;
  width: 36px;
  height: 1px;
  background: var(--gold-border);
  vertical-align: middle;
}

.section-title .title-vs::before {
  margin-right: 0.8rem;
}

.section-title .title-vs::after {
  margin-left: 0.8rem;
}

.section-title .title-bottom {
  display: block;
  font-size: clamp(1.6rem, 2.7vw, 2.3rem);
  color: var(--accent-rose);
  font-weight: 600;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   Practice Areas (Especialidades)
   ========================================================================== */
.practice-section {
  background: #f8fafc;
  border-bottom: 1px solid var(--blue-border);
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  justify-content: center;
}

@media (min-width: 1024px) {
  .practice-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .practice-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .practice-grid {
    grid-template-columns: 1fr;
  }
}

.practice-card {
  background: #ffffff;
  border: 1px solid rgba(15, 76, 133, 0.12);
  border-radius: var(--radius-md);
  padding: 2.25rem 2rem;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(15, 76, 133, 0.04);
}

.practice-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-sky), var(--blue-primary));
  opacity: 0;
  transition: var(--transition-smooth);
}

.practice-card:hover {
  transform: translateY(-6px);
  border-color: rgba(26, 115, 232, 0.3);
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(15, 76, 133, 0.1);
}

.practice-card:hover::before {
  opacity: 1;
}

.practice-icon {
  width: 52px;
  height: 52px;
  background: var(--blue-ice);
  border: 1px solid rgba(15, 76, 133, 0.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-primary);
  margin-bottom: 1.5rem;
  transition: var(--transition-smooth);
}

.practice-card:hover .practice-icon {
  background: var(--blue-primary);
  color: #ffffff;
  border-color: var(--blue-primary);
  transform: scale(1.06);
}

.practice-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--text-pure);
  margin-bottom: 0.85rem;
  line-height: 1.3;
}

.practice-quote {
  font-size: 0.88rem;
  font-style: italic;
  color: var(--blue-sky);
  margin-bottom: 1.25rem;
  padding-left: 0.75rem;
  border-left: 2px solid var(--gold-primary);
}

.practice-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.practice-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
  border-top: 1px solid rgba(15, 76, 133, 0.08);
  padding-top: 1.2rem;
}

.practice-bullet {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-main);
  font-weight: 500;
}

.practice-bullet svg {
  color: var(--blue-sky);
  min-width: 14px;
}

.practice-link-btn {
  background: none;
  border: none;
  color: var(--blue-primary);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0;
  transition: var(--transition-fast);
}

.practice-link-btn:hover {
  color: var(--blue-vibrant);
  transform: translateX(4px);
}

/* ==========================================================================
   The ARISA Difference (Generalist vs. Colegiado)
   ========================================================================== */
.difference-section {
  background: #ffffff;
  border-bottom: 1px solid var(--blue-border);
}

.comparison-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.comparison-card {
  border-radius: var(--radius-lg);
  padding: 2.75rem 2.25rem;
  position: relative;
}

.comparison-card.bad {
  background: #f8fafc;
  border: 1px solid rgba(225, 29, 72, 0.25);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

.comparison-card.bad::before {
  content: 'ENFOQUE TRADICIONAL OBSOLETO';
  position: absolute;
  top: -12px;
  left: 2rem;
  background: #fff1f2;
  color: var(--accent-rose);
  border: 1px solid rgba(225, 29, 72, 0.3);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
}

.comparison-card.good {
  background: #ffffff;
  border: 2px solid var(--blue-primary);
  box-shadow: 0 12px 32px rgba(15, 76, 133, 0.1);
}

.comparison-card.good::before {
  content: 'METODOLOGÍA COLEGIADA ARISA';
  position: absolute;
  top: -12px;
  left: 2rem;
  background: linear-gradient(90deg, var(--blue-primary), var(--blue-sky));
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-pill);
}

.comparison-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--text-pure);
  margin-bottom: 0.75rem;
}

.comparison-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.comparison-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.comparison-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.92rem;
}

.comparison-item.bad-item {
  color: var(--text-muted);
}

.comparison-item.bad-item svg {
  color: var(--accent-rose);
  min-width: 20px;
  margin-top: 3px;
}

.comparison-item.good-item {
  color: var(--text-pure);
  font-weight: 500;
}

.comparison-item.good-item svg {
  color: var(--blue-primary);
  min-width: 20px;
  margin-top: 3px;
}

/* ==========================================================================
   Interactive Legal Risk Self-Diagnostic Tool
   ========================================================================== */
.diagnostic-section {
  background: var(--bg-deep);
  border-bottom: 1px solid var(--blue-border);
  position: relative;
}

.diagnostic-card {
  max-width: 960px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: 0 10px 35px rgba(15, 76, 133, 0.08);
}

.diag-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.diag-column-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--blue-primary);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.diag-options {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.diag-option-label {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  background: #f8fafc;
  border: 1px solid rgba(15, 76, 133, 0.12);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: 0.92rem;
  color: var(--text-muted);
}

.diag-option-label:hover {
  border-color: var(--blue-sky);
  background: var(--blue-ice);
  color: var(--blue-primary);
}

.diag-option-label input[type="radio"] {
  margin-right: 0.85rem;
  accent-color: var(--blue-primary);
}

.diag-option-label.active {
  border-color: var(--blue-primary);
  background: var(--blue-ice);
  color: var(--blue-primary);
  font-weight: 600;
}

.diag-result-box {
  margin-top: 2.5rem;
  padding: 2rem;
  background: #ffffff;
  border: 2px solid var(--blue-sky);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  box-shadow: 0 6px 20px rgba(15, 76, 133, 0.08);
}

.diag-result-info h4 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--blue-primary);
  margin-bottom: 0.4rem;
}

.diag-result-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 540px;
}

/* ==========================================================================
   About & Heritage Section
   ========================================================================== */
/* ==========================================================================
   About & Heritage Section
   ========================================================================== */
.about-section {
  background: #ffffff;
  border-bottom: 1px solid var(--blue-border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
}

.about-main-img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--blue-border);
  box-shadow: 0 12px 35px rgba(15, 76, 133, 0.12);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.about-floating-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: #ffffff;
  border: 2px solid var(--blue-sky);
  padding: 1.4rem 1.6rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(15, 76, 133, 0.15);
  text-align: center;
}

.about-badge-num {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--blue-primary);
  line-height: 1;
}

.about-badge-text {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-top: 0.35rem;
  font-weight: 600;
}

.about-text-content h2 {
  font-family: var(--font-serif);
  font-size: 2.3rem;
  color: var(--text-pure);
  margin-bottom: 1.5rem;
  line-height: 1.25;
}

.about-lead {
  font-size: 1.08rem;
  color: var(--blue-sky);
  font-weight: 500;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.about-body {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.about-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.about-pillar-item h5 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--blue-primary);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.about-pillar-item h5 svg {
  color: var(--blue-sky);
}

.about-pillar-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   Sectors & Social Proof
   ========================================================================== */
.sectors-section {
  background: var(--bg-deep);
  border-bottom: 1px solid var(--blue-border);
}

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

.sector-card {
  background: #ffffff;
  border: 1px solid rgba(15, 76, 133, 0.12);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.25rem;
  text-align: center;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 14px rgba(15, 76, 133, 0.03);
}

.sector-card:hover {
  background: #ffffff;
  border-color: var(--blue-sky);
  box-shadow: 0 12px 28px rgba(15, 76, 133, 0.1);
  transform: translateY(-4px);
}

.sector-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 1rem;
  color: var(--blue-primary);
}

.sector-name {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  color: var(--text-pure);
  margin-bottom: 0.5rem;
}

.sector-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Testimonial Quote Banner */
.testimonial-banner {
  margin-top: 4rem;
  background: linear-gradient(135deg, var(--blue-ice) 0%, #ffffff 100%);
  border: 1px solid rgba(15, 76, 133, 0.2);
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
  position: relative;
  box-shadow: 0 8px 30px rgba(15, 76, 133, 0.06);
}

.testimonial-quote {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--blue-primary);
  max-width: 850px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.testimonial-author {
  font-size: 0.88rem;
  color: var(--gold-primary);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ==========================================================================
   Contact & Location Section
   ========================================================================== */
.contact-section {
  background: var(--blue-ice);
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
}

.contact-info-card {
  background: #ffffff;
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-lg);
  padding: 2.75rem 2.25rem;
  box-shadow: 0 10px 30px rgba(15, 76, 133, 0.06);
}

.contact-info-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--text-pure);
  margin-bottom: 1rem;
}

.contact-info-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.65;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.2rem;
}

.channel-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.channel-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  background: var(--blue-ice);
  border: 1px solid rgba(15, 76, 133, 0.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-primary);
}

.channel-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue-sky);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.channel-value {
  font-size: 1rem;
  color: var(--text-pure);
  font-weight: 600;
  transition: var(--transition-fast);
}

.channel-value:hover {
  color: var(--blue-vibrant);
}

/* Contact Section Social Media Area */
.contact-social-wrapper {
  margin: 1.85rem 0 1.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--blue-border);
}

.contact-social-header {
  margin-bottom: 0.95rem;
}

.contact-social-kicker {
  display: block;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-vibrant);
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.contact-social-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--text-pure);
  margin: 0;
}

.contact-social-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.contact-social-card {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.85rem;
  background: var(--bg-deep);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.contact-social-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: var(--blue-primary);
  box-shadow: 0 2px 6px rgba(15, 76, 133, 0.08);
  transition: var(--transition-fast);
}

.contact-social-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.contact-social-name {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-pure);
  line-height: 1.25;
  transition: var(--transition-fast);
}

.contact-social-handle {
  font-size: 0.74rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.contact-social-arrow {
  font-size: 0.95rem;
  color: var(--text-dim);
  transition: var(--transition-fast);
  opacity: 0.5;
}

/* Hover effects */
.contact-social-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 76, 133, 0.1);
}

.contact-social-card:hover .contact-social-arrow {
  opacity: 1;
  transform: translateX(3px);
}

/* Facebook hover */
.social-fb:hover {
  border-color: #1877f2;
  background: rgba(24, 119, 242, 0.04);
}
.social-fb:hover .contact-social-icon {
  background: #1877f2;
  color: #ffffff;
}
.social-fb:hover .contact-social-name {
  color: #1877f2;
}

/* Instagram hover */
.social-ig:hover {
  border-color: #e1306c;
  background: rgba(225, 48, 108, 0.04);
}
.social-ig:hover .contact-social-icon {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #ffffff;
}
.social-ig:hover .contact-social-name {
  color: #e1306c;
}

/* LinkedIn hover */
.social-in:hover {
  border-color: #0a66c2;
  background: rgba(10, 102, 194, 0.04);
}
.social-in:hover .contact-social-icon {
  background: #0a66c2;
  color: #ffffff;
}
.social-in:hover .contact-social-name {
  color: #0a66c2;
}

/* WhatsApp Business hover */
.social-wa:hover {
  border-color: #25d366;
  background: rgba(37, 211, 102, 0.06);
}
.social-wa:hover .contact-social-icon {
  background: #25d366;
  color: #ffffff;
}
.social-wa:hover .contact-social-name {
  color: #128c7e;
}

.map-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--blue-border);
  height: 200px;
  margin-top: 1.5rem;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: none;
}

/* Contact Form */
.contact-form-card {
  background: #ffffff;
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-lg);
  padding: 2.75rem;
  box-shadow: 0 12px 35px rgba(15, 76, 133, 0.08);
}

.form-header {
  margin-bottom: 2rem;
}

.form-header h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--text-pure);
  margin-bottom: 0.5rem;
}

.form-header p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue-primary);
  margin-bottom: 0.45rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: #ffffff;
  border: 1px solid rgba(15, 76, 133, 0.2);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
  color: var(--text-main);
  transition: var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--blue-sky);
  box-shadow: 0 0 12px rgba(55, 125, 189, 0.2);
  background: #ffffff;
}

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

.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
  margin-bottom: 1.5rem;
}

.form-checkbox-label input {
  margin-top: 3px;
  accent-color: var(--blue-primary);
}

.form-checkbox-label a {
  color: var(--blue-primary);
  text-decoration: underline;
}

.form-feedback {
  margin-top: 1rem;
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  display: none;
}

.form-feedback.success {
  background: rgba(5, 150, 105, 0.1);
  border: 1px solid rgba(5, 150, 105, 0.35);
  color: #059669;
  display: block;
}

.form-feedback.error {
  background: rgba(225, 29, 72, 0.1);
  border: 1px solid rgba(225, 29, 72, 0.35);
  color: #e11d48;
  display: block;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #0f4c85;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 4.5rem 0 2rem;
  position: relative;
  color: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand p {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.65;
  margin-top: 1rem;
  max-width: 320px;
}

.footer-brand .brand-icon-wrapper {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.footer-brand .brand-name {
  color: #ffffff;
}

.footer-brand .brand-tagline {
  color: var(--gold-light);
}

.footer-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: #ffffff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-link {
  font-size: 0.88rem;
  color: #94a3b8;
  transition: var(--transition-fast);
}

.footer-link:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-social-list {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-btn {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  transition: var(--transition-smooth);
}

.social-btn:hover {
  background: #ffffff;
  color: var(--blue-primary);
  border-color: #ffffff;
  transform: translateY(-2px);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: #94a3b8;
}

/* ==========================================================================
   Modals
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: var(--blue-ice);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #ffffff;
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 20px 60px rgba(15, 76, 133, 0.2);
  transform: scale(0.95) translateY(15px);
  transition: var(--transition-smooth);
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--blue-ice);
  color: var(--blue-primary);
}

/* ==========================================================================
   Floating WhatsApp Button - Asesoria y Consulta Exact Aesthetic
   ========================================================================== */
.whatsapp-floating-btn,
.whatsapp-tooltip {
  display: none !important;
}

.whatsapp-floating-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  min-width: 60px;
  min-height: 60px;
  width: 60px;
  height: 60px;
  border-radius: 40px;
  background-color: rgb(36, 172, 50);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgb(255, 255, 255);
  text-decoration: none;
  z-index: 999;
  cursor: pointer;
  box-sizing: border-box;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28), 0 0 10px rgba(36, 172, 50, 0.35);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  isolation: isolate;
}

/* Rotating Illuminated Border Effect (Exact asesoriayconsulta.com engine) */
.whatsapp-floating-btn .animated-border-glow {
  position: absolute;
  inset: -3px;
  border-radius: 43px;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  mask-image: radial-gradient(white, black);
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.whatsapp-floating-btn .animated-border-glow::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 250%;
  height: 250%;
  margin-top: -125%;
  margin-left: -125%;
  background-image: conic-gradient(transparent 0%,
      rgba(255, 255, 255, 0.95) 8%,
      #4ade80 20%,
      #22c55e 35%,
      transparent 45%);
  animation: waBorderRotate 2.2s linear infinite;
  -webkit-animation: waBorderRotate 2.2s linear infinite;
  will-change: transform;
  transform-origin: center center;
  -webkit-transform-origin: center center;
}

/* Inner masking core that preserves clean button background */
.whatsapp-floating-btn .animated-border-glow::after {
  content: '';
  position: absolute;
  inset: 2.5px;
  background-color: rgb(36, 172, 50);
  border-radius: 40px;
  z-index: -1;
}

@keyframes waBorderRotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@-webkit-keyframes waBorderRotate {
  0% {
    -webkit-transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
  }
}

.whatsapp-floating-btn svg {
  width: 32px;
  height: 32px;
  fill: #ffffff;
  color: #ffffff;
  margin: auto;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
  transition: transform 0.25s ease;
}

.whatsapp-floating-btn:hover {
  transform: scale(1.06) translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 16px rgba(34, 197, 94, 0.55);
}

.whatsapp-floating-btn:hover svg {
  transform: scale(1.05);
}

.whatsapp-floating-btn:hover .animated-border-glow::before {
  animation-duration: 1.4s;
}

.whatsapp-tooltip {
  position: absolute;
  right: 74px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #111827;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 20px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  pointer-events: none;
}

.whatsapp-floating-btn:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* --- Tablet / Medium Screens (<= 1024px) --- */
@media (max-width: 1024px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

  .sectors-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- Mobile Landscape & Tablets (<= 768px) --- */
@media (max-width: 768px) {

  /* Layout Spacing */
  .section {
    padding: 3.75rem 0;
  }

  .section-header {
    margin: 0 auto 2.5rem;
  }

  .section-title {
    font-size: clamp(1.65rem, 5vw, 2.2rem);
    margin-bottom: 0.85rem;
  }

  /* Responsive Stacked Titles */
  .section-title.title-stacked {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.25rem;
    text-align: center;
  }

  .section-title .title-top {
    font-size: clamp(1.6rem, 5.5vw, 2.1rem);
    line-height: 1.2;
    display: block;
  }

  .section-title .title-vs {
    font-size: 0.82rem;
    letter-spacing: 0.2em;
    margin: 0.25rem 0;
    padding: 0 0.8rem;
    display: inline-flex;
  }

  .section-title .title-vs::before,
  .section-title .title-vs::after {
    width: 24px;
  }

  .section-title .title-bottom {
    font-size: clamp(1.35rem, 4.5vw, 1.75rem);
    line-height: 1.25;
    display: block;
  }

  .section-subtitle {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  /* Top Announcement Bar */
  .top-bar {
    display: none;
  }

  /* Header & Mobile Toggle */
  .header-container {
    height: 72px;
  }

  .brand-icon-wrapper {
    width: 38px;
    height: 38px;
  }

  .brand-name {
    font-size: 1.15rem;
  }

  .brand-tagline {
    font-size: 0.58rem;
    letter-spacing: 0.12em;
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
  }

  /* Mobile Drawer Menu */
  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    height: calc(100vh - 72px);
    background: #ffffff;
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem 1.25rem 2.5rem;
    gap: 0.5rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-top: 1px solid var(--blue-border);
    box-shadow: 0 10px 30px rgba(15, 76, 133, 0.12);
    z-index: 102;
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-menu>li {
    width: 100%;
    border-bottom: 1px solid rgba(15, 76, 133, 0.08);
    padding-bottom: 0.5rem;
  }

  .nav-menu>li:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 0.65rem 0;
    color: var(--text-pure);
  }

  .dropdown-chevron {
    transition: transform 0.25s ease;
    font-size: 0.85rem;
    color: var(--blue-sky);
  }

  .nav-item-dropdown.dropdown-open .dropdown-chevron {
    transform: rotate(180deg);
  }

  /* Dropdown Accordion in Mobile */
  .dropdown-menu {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: var(--blue-ice);
    border: 1px solid rgba(15, 76, 133, 0.12);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0;
    margin: 0.35rem 0 0.65rem;
    box-shadow: none;
    min-width: 100%;
  }

  .nav-item-dropdown.dropdown-open .dropdown-menu {
    display: flex;
    flex-direction: column;
  }

  .dropdown-link {
    font-size: 0.9rem;
    padding: 0.65rem 1rem;
    color: var(--text-main);
  }

  .dropdown-link:hover,
  .dropdown-link:active {
    background: rgba(15, 76, 133, 0.08);
    color: var(--blue-primary);
    padding-left: 1.25rem;
  }

  /* Hero Section */
  .hero-section {
    padding: 3.25rem 0 2.25rem;
    min-height: auto;
  }

  .hero-content {
    padding: 2.25rem 1.35rem 1.85rem;
    border-radius: 16px;
  }

  .hero-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    padding: 0.35rem 0.9rem;
    line-height: 1.4;
    text-align: center;
    white-space: normal;
    margin-bottom: 1.15rem;
  }

  .hero-title {
    font-size: clamp(1.65rem, 5.2vw, 2.25rem);
    line-height: 1.26;
    margin-bottom: 1.1rem;
  }

  .hero-description {
    font-size: 0.96rem;
    line-height: 1.65;
    margin-bottom: 1.75rem;
  }

  .hero-cta-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.85rem;
    margin-bottom: 1.85rem;
  }

  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1.25rem;
  }

  .hero-trust-badges {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    padding-top: 1.25rem;
  }

  .trust-item {
    font-size: 0.84rem;
  }

  /* Metrics Strip */
  .metrics-strip {
    padding: 2rem 0;
  }

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

  .metric-card {
    padding: 0.85rem 1rem;
  }

  .metric-number {
    font-size: 2.3rem;
  }

  .metric-label {
    font-size: 0.88rem;
  }

  .metric-desc {
    font-size: 0.78rem;
  }

  /* Comparison (ARISA Method vs Traditional) */
  .comparison-wrapper {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .comparison-card {
    padding: 2.25rem 1.35rem 1.65rem;
  }

  .comparison-card.bad::before,
  .comparison-card.good::before {
    left: 1.25rem;
    font-size: 0.65rem;
    padding: 0.2rem 0.65rem;
    letter-spacing: 0.08em;
  }

  .comparison-title {
    font-size: 1.3rem;
  }

  .comparison-desc {
    font-size: 0.88rem;
    margin-bottom: 1.4rem;
  }

  .comparison-list {
    gap: 1rem;
  }

  .comparison-item {
    font-size: 0.88rem;
    gap: 0.65rem;
  }

  /* Diagnostic Tool */
  .diagnostic-card {
    padding: 1.75rem 1.25rem;
    border-radius: var(--radius-md);
  }

  .diag-steps {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .diag-column-title {
    font-size: 1.05rem;
    margin-bottom: 0.85rem;
  }

  .diag-options {
    gap: 0.65rem;
  }

  .diag-option-label {
    padding: 0.85rem 1rem;
    font-size: 0.88rem;
  }

  .diag-result-box {
    margin-top: 1.75rem;
    padding: 1.35rem 1.15rem;
    gap: 1.25rem;
  }

  .diag-result-info h4 {
    font-size: 1.05rem;
  }

  .diag-result-info p {
    font-size: 0.85rem;
    line-height: 1.55;
  }

  #diagResultCta {
    width: 100%;
    justify-content: center;
    text-align: center;
    font-size: 0.88rem;
    padding: 0.85rem 1rem;
  }

  /* About / Trayectoria */
  .about-floating-badge {
    right: 12px;
    bottom: -15px;
    padding: 0.85rem 1.1rem;
    box-shadow: 0 8px 24px rgba(15, 76, 133, 0.15);
  }

  .about-badge-num {
    font-size: 1.75rem;
  }

  .about-badge-text {
    font-size: 0.65rem;
  }

  .about-text-content h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }

  .about-lead {
    font-size: 0.98rem;
    margin-bottom: 1rem;
  }

  .about-body {
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 1.5rem;
  }

  .about-pillars {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  /* Sectors */
  .sectors-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .sector-card {
    padding: 1.35rem 1rem;
  }

  .testimonial-banner {
    margin-top: 2.5rem;
    padding: 2rem 1.25rem;
  }

  .testimonial-quote {
    font-size: 1.08rem;
    line-height: 1.55;
    margin-bottom: 1.15rem;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-info-card {
    padding: 2rem 1.25rem;
  }

  .contact-info-title {
    font-size: 1.45rem;
  }

  .contact-info-desc {
    font-size: 0.88rem;
    margin-bottom: 1.4rem;
  }

  .contact-channels {
    gap: 1.15rem;
    margin-bottom: 1.5rem;
  }

  .channel-item {
    gap: 0.75rem;
  }

  .channel-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
  }

  .channel-value {
    font-size: 0.92rem;
    word-break: break-word;
  }

  .contact-social-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .contact-social-card {
    padding: 0.8rem 1rem;
  }

  .map-container {
    height: 180px;
    margin-top: 1.25rem;
  }

  .contact-form-card {
    padding: 2rem 1.25rem;
  }

  .form-header {
    margin-bottom: 1.5rem;
  }

  .form-header h3 {
    font-size: 1.45rem;
  }

  .form-header p {
    font-size: 0.86rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
  }

  .form-group {
    margin-bottom: 1rem;
  }

  .form-input,
  .form-select,
  .form-textarea {
    font-size: 16px;
    /* Prevents unwanted iOS auto-zoom on input focus */
    padding: 0.75rem 0.85rem;
  }

  .form-checkbox-label {
    font-size: 0.78rem;
    margin-bottom: 1.25rem;
  }

  /* Footer */
  .site-footer {
    padding: 3rem 0 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.85rem;
    padding-top: 1.5rem;
  }

  .footer-bottom div:last-child {
    justify-content: center;
  }

  /* Modals */
  .modal-overlay {
    padding: 1rem;
  }

  .modal-content {
    padding: 2rem 1.25rem 1.5rem;
    max-height: 92vh;
    border-radius: var(--radius-md);
  }

  .modal-close-btn {
    top: 0.75rem;
    right: 0.75rem;
  }

  /* Floating WhatsApp */
  .whatsapp-floating-btn {
    bottom: 1rem;
    right: 1rem;
    width: 54px;
    height: 54px;
    min-width: 54px;
    min-height: 54px;
    border-radius: 36px;
  }

  .whatsapp-floating-btn .animated-border-glow {
    border-radius: 39px;
  }

  .whatsapp-floating-btn .animated-border-glow::after {
    border-radius: 36px;
  }

  .whatsapp-floating-btn svg {
    width: 28px;
    height: 28px;
  }

  .whatsapp-tooltip {
    display: none !important;
  }
}

/* --- Mobile Header Action Breakpoint (<= 600px) --- */
@media (max-width: 600px) {
  .header-cta-desktop {
    display: none;
  }

  .nav-mobile-cta {
    display: block;
    width: 100%;
    margin-top: 1rem;
    padding-top: 0.5rem;
  }

  .nav-mobile-cta .btn {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1rem;
  }
}

/* --- Small Mobile Phones (<= 480px) --- */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .hero-content {
    padding: 1.85rem 1rem 1.5rem;
  }

  .hero-title {
    font-size: 1.65rem;
  }

  .hero-description {
    font-size: 0.92rem;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

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

  .practice-card {
    padding: 1.5rem 1.15rem;
  }

  .about-floating-badge {
    right: 6px;
    bottom: -10px;
    padding: 0.65rem 0.9rem;
  }

  .about-badge-num {
    font-size: 1.5rem;
  }
}

/* ==========================================================================
   Legal Pages & Documentation (Términos Legales y Políticas)
   ========================================================================== */
.legal-page-header {
  background: linear-gradient(180deg, #edf5fc 0%, #ffffff 100%);
  border-bottom: 1px solid var(--blue-border);
  padding: 3.5rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}

.legal-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 1.25rem;
}

.legal-breadcrumb a {
  color: var(--blue-primary);
  font-weight: 500;
}

.legal-breadcrumb a:hover {
  color: var(--blue-sky);
  text-decoration: underline;
}

.legal-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: var(--blue-ice);
  border: 1px solid rgba(15, 76, 133, 0.2);
  border-radius: var(--radius-pill);
  color: var(--blue-primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.legal-page-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  color: var(--text-pure);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.legal-page-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 840px;
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.legal-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(15, 76, 133, 0.1);
  font-size: 0.85rem;
  color: var(--text-dim);
}

.legal-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.legal-meta-item strong {
  color: var(--text-main);
}

.legal-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 2.5rem 0 3.5rem;
}

.legal-summary-card {
  background: #ffffff;
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
}

.legal-summary-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: var(--gold-border-hover);
}

.legal-summary-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--blue-ice);
  color: var(--blue-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  font-size: 1.25rem;
}

.legal-summary-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 0.4rem;
}

.legal-summary-text {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.55;
  text-align: justify;
}

.legal-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3rem;
  align-items: start;
  padding: 3rem 0 5rem;
}

.legal-sidebar {
  position: sticky;
  top: 95px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.legal-toc-card {
  background: #ffffff;
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-subtle);
}

.legal-toc-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--text-pure);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--blue-border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legal-toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: calc(100vh - 360px);
  overflow-y: auto;
  padding-right: 0.35rem;
}

.legal-toc-link {
  display: block;
  padding: 0.45rem 0.65rem;
  font-size: 0.84rem;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  line-height: 1.4;
  border-left: 2px solid transparent;
}

.legal-toc-link:hover,
.legal-toc-link.active {
  color: var(--blue-primary);
  background: var(--blue-ice);
  border-left-color: var(--gold-vibrant);
  font-weight: 600;
  padding-left: 0.85rem;
}

.legal-help-box {
  background: linear-gradient(145deg, #0f4c85 0%, #173860 100%);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

.legal-help-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.legal-help-desc {
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.55;
  margin-bottom: 1rem;
}

.legal-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  min-width: 0;
  max-width: 100%;
}

.legal-section-card {
  background: #ffffff;
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  box-shadow: var(--shadow-subtle);
  scroll-margin-top: 100px;
  transition: var(--transition-smooth);
}

.legal-section-card:hover {
  border-color: rgba(15, 76, 133, 0.25);
}

.legal-section-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(15, 76, 133, 0.08);
}

.legal-clause-badge {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-vibrant);
  background: rgba(183, 147, 71, 0.1);
  border: 1px solid var(--gold-border);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.legal-section-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--text-pure);
  line-height: 1.3;
}

.legal-body-text {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.15rem;
  text-align: justify;
}

.legal-body-text:last-child {
  margin-bottom: 0;
}

.legal-body-text strong {
  color: var(--text-pure);
}

.legal-list {
  padding-left: 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.legal-list li strong {
  color: var(--text-pure);
}

.legal-callout {
  background: var(--blue-ice);
  border-left: 4px solid var(--gold-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.15rem 1.35rem;
  margin: 1.25rem 0;
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.65;
}

.legal-callout-warning {
  background: #fffbeb;
  border-left-color: var(--accent-amber);
}

.legal-callout-title {
  font-weight: 700;
  color: var(--blue-primary);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.legal-company-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.88rem;
}

.legal-company-table th,
.legal-company-table td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--blue-border);
  text-align: left;
}

.legal-company-table th {
  background: var(--blue-ice);
  color: var(--blue-primary);
  font-weight: 600;
  width: 32%;
}

.legal-company-table td {
  color: var(--text-main);
}

.legal-actions-bar {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--blue-border);
}

/* Responsive adjustments for legal layout */
.header-back-btn {
  margin-right: 0.25rem;
  white-space: nowrap;
}

@media (max-width: 992px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 0 3.5rem;
  }

  .legal-sidebar {
    position: static;
    width: 100%;
  }

  .legal-toc-list {
    max-height: 220px;
  }

  .legal-section-card {
    padding: 1.75rem 1.25rem;
  }
}

@media (max-width: 768px) {
  .header-actions {
    gap: 0.5rem;
  }

  .legal-page-header {
    padding: 2.25rem 0 1.75rem;
  }

  .legal-page-title {
    font-size: clamp(1.6rem, 5.5vw, 2.2rem);
    line-height: 1.25;
    margin-bottom: 0.85rem;
    word-break: break-word;
  }

  .legal-page-subtitle {
    font-size: 0.94rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
  }

  .legal-breadcrumb {
    font-size: 0.8rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
  }

  .legal-badge-tag {
    font-size: 0.72rem;
    padding: 0.3rem 0.7rem;
    white-space: normal;
    line-height: 1.35;
  }

  .legal-meta-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    padding-top: 1rem;
    font-size: 0.8rem;
  }

  .legal-meta-item {
    width: 100%;
    word-break: break-word;
  }

  .legal-summary-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    margin: 1.5rem 0 2rem;
  }

  .legal-summary-card {
    padding: 1.15rem;
  }

  .legal-summary-text {
    text-align: left !important;
    font-size: 0.84rem;
    line-height: 1.6;
  }

  .legal-layout {
    gap: 1.75rem;
    padding: 1.5rem 0 3rem;
  }

  .legal-toc-card {
    padding: 1.25rem 1rem;
  }

  .legal-toc-title {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
  }

  .legal-toc-list {
    max-height: 180px;
  }

  .legal-toc-link {
    font-size: 0.82rem;
    padding: 0.4rem 0.55rem;
  }

  .legal-help-box {
    padding: 1.25rem 1rem;
  }

  .legal-help-title {
    font-size: 1rem;
  }

  .legal-help-desc {
    font-size: 0.82rem;
  }

  .legal-content {
    gap: 1.5rem;
  }

  .legal-section-card {
    padding: 1.35rem 1rem;
    scroll-margin-top: 80px;
  }

  .legal-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
  }

  .legal-clause-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.55rem;
  }

  .legal-section-title {
    font-size: 1.18rem;
    line-height: 1.35;
    word-break: break-word;
  }

  .legal-body-text {
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 1rem;
    text-align: left !important;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .legal-list {
    padding-left: 1.15rem;
    font-size: 0.88rem;
    line-height: 1.6;
    gap: 0.55rem;
    margin-bottom: 1rem;
  }

  .legal-callout {
    padding: 0.9rem 1rem;
    margin: 1rem 0;
    font-size: 0.86rem;
    line-height: 1.6;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .legal-callout-title {
    font-size: 0.92rem;
    flex-wrap: wrap;
  }

  /* Responsive transformation for company data table */
  .legal-company-table {
    display: block;
    width: 100% !important;
    border: none;
    margin-top: 1rem;
  }

  .legal-company-table tbody {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }

  .legal-company-table tr {
    display: flex;
    flex-direction: column;
    width: 100%;
    border: 1px solid var(--blue-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #ffffff;
  }

  .legal-company-table th {
    display: block;
    width: 100% !important;
    background: var(--blue-ice);
    color: var(--blue-primary);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.5rem 0.75rem;
    border: none;
    border-bottom: 1px solid var(--blue-border);
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }

  .legal-company-table td {
    display: block;
    width: 100% !important;
    padding: 0.65rem 0.75rem;
    border: none;
    font-size: 0.86rem;
    line-height: 1.55;
    word-break: break-word;
    overflow-wrap: break-word;
  }
}

@media (max-width: 600px) {
  .header-back-btn {
    padding: 0.45rem 0.75rem;
    font-size: 0.78rem;
    margin-right: 0;
  }

  .legal-actions-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
  }

  .legal-actions-bar .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .brand-logo {
    gap: 0.5rem;
  }

  .brand-tagline {
    display: none;
  }

  .header-back-btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.72rem;
  }

  .legal-page-title {
    font-size: 1.45rem;
  }

  .legal-section-title {
    font-size: 1.08rem;
  }

  .legal-section-card {
    padding: 1.15rem 0.85rem;
  }

  .legal-callout {
    padding: 0.75rem 0.85rem;
  }
}

@media print {
  .top-bar,
  .site-header,
  .legal-sidebar,
  .legal-actions-bar,
  .whatsapp-floating-btn,
  .site-footer,
  .legal-summary-grid {
    display: none !important;
  }

  body {
    background: #ffffff !important;
    color: #000000 !important;
  }

  .legal-page-header {
    background: none !important;
    border: none !important;
    padding: 1rem 0 !important;
  }

  .legal-layout {
    display: block !important;
    padding: 0 !important;
  }

  .legal-section-card {
    border: none !important;
    box-shadow: none !important;
    padding: 1rem 0 !important;
    page-break-inside: avoid;
  }
}