/* ==========================================================================
   TÚ CAUSA - ESTUDIO JURÍDICO
   Modern Luxury Legal Architecture & Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Cinzel:wght@600;700;800&display=swap');

:root {
  /* Brand Color Palette */
  --navy-950: #040913;
  --navy-900: #081220;
  --navy-850: #0c1a2c;
  --navy-800: #10243e;
  --navy-700: #173458;
  --navy-600: #204777;

  /* Regal Gold Accents */
  --gold-200: #F3E3BC;
  --gold-300: #E5CE93;
  --gold-400: #D8BA70;
  --gold-500: #C5A880;
  --gold-600: #A88647;
  --gold-700: #85652D;
  --gold-gradient: linear-gradient(135deg, #F3E3BC 0%, #D8BA70 50%, #9B783A 100%);
  --gold-glow: 0 8px 30px rgba(216, 186, 112, 0.28);
  --gold-border: rgba(216, 186, 112, 0.35);

  /* Neutrals & Slate */
  --slate-50: #F8FAFC;
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-300: #CBD5E1;
  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1E293B;
  --slate-900: #0F172A;

  /* Semantic */
  --success: #10B981;
  --danger: #EF4444;
  --warning: #F59E0B;

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-display: 'Cinzel', serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Elevation & Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.14);
  --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.22);
  --shadow-gold: 0 12px 35px rgba(197, 168, 128, 0.22);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);

  /* Container */
  --container-max: 1240px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--slate-50);
  color: var(--slate-800);
  line-height: 1.65;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ==========================================================================
   TOP NOTIFICATION BAR
   ========================================================================== */
.topbar {
  background-color: var(--navy-950);
  border-bottom: 1px solid rgba(216, 186, 112, 0.15);
  font-size: 13px;
  color: var(--slate-300);
  padding: 10px 0;
  position: relative;
  z-index: 101;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.topbar-item i {
  color: var(--gold-400);
  font-size: 14px;
}

.topbar-item a:hover {
  color: var(--gold-300);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 3px 10px;
  border-radius: 100px;
  color: #34D399;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.3px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background-color: #10B981;
  border-radius: 50%;
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  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); }
}

/* ==========================================================================
   NAVIGATION BAR (Glassmorphism Sticky)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: rgba(8, 18, 32, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(216, 186, 112, 0.18);
  transition: var(--transition-normal);
}

.site-header.scrolled {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  background-color: rgba(6, 14, 25, 0.98);
}

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

/* Brand Identity */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.brand-badge {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: radial-gradient(circle, #ffffff 0%, #f1f5f9 100%);
  padding: 3px;
  border: 1.5px solid var(--gold-400);
  box-shadow: 0 4px 14px rgba(216, 186, 112, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: var(--transition-normal);
}

.brand:hover .brand-badge {
  transform: translateY(-2px) scale(1.03);
  box-shadow: var(--gold-glow);
  border-color: var(--gold-300);
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

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

.brand-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

.brand-sub {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--slate-300);
  letter-spacing: 2.2px;
  text-transform: uppercase;
  margin-top: 3px;
}

/* Navigation Links (Desktop 5 Clean Items) */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--slate-200);
  padding: 8px 0;
  position: relative;
  transition: var(--transition-fast);
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gold-gradient);
  transition: var(--transition-normal);
  border-radius: 2px;
}

.nav-link:hover, .nav-link.active {
  color: var(--gold-300);
}

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

/* Crucial: Hide mobile CTA drawer from desktop navbar */
.nav-mobile-cta {
  display: none !important;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.nav-actions .btn-sm {
  padding: 10px 22px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  border-radius: 6px;
}

/* Mobile Toggle Button */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(216, 186, 112, 0.1);
  border: 1px solid rgba(216, 186, 112, 0.35);
  color: var(--gold-300);
  font-size: 20px;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.menu-toggle:hover {
  background: rgba(216, 186, 112, 0.22);
  color: #FFFFFF;
}

/* ==========================================================================
   BUTTONS & UI ELEMENTS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 8px;
  letter-spacing: 0.3px;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold-gradient);
  color: var(--navy-950);
  box-shadow: 0 4px 18px rgba(216, 186, 112, 0.35);
  font-weight: 700;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(216, 186, 112, 0.45);
  filter: brightness(1.05);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: transparent;
  color: var(--gold-300);
  border: 1.5px solid var(--gold-400);
}

.btn-secondary:hover {
  background: rgba(216, 186, 112, 0.12);
  color: #FFFFFF;
  border-color: var(--gold-300);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25D366;
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: #20BD5A;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.4);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 13px;
}

.btn-lg {
  padding: 16px 34px;
  font-size: 16px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background-color: var(--navy-950);
  background-image: url('../img/hero_bg.jpg');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  color: #FFFFFF;
  overflow: hidden;
  padding: 90px 0 110px 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(4, 9, 19, 0.94) 0%,
    rgba(8, 18, 32, 0.88) 50%,
    rgba(4, 9, 19, 0.95) 100%
  );
  z-index: 1;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(216, 186, 112, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(216, 186, 112, 0.12);
  border: 1px solid rgba(216, 186, 112, 0.4);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: 24px;
}

.hero-pill i {
  color: var(--gold-400);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(38px, 5.5vw, 62px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 24px;
  color: #FFFFFF;
}

.hero-title span.gold-highlight {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.7;
  color: var(--slate-300);
  margin-bottom: 38px;
  max-width: 720px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 50px;
}

/* Floating Metrics Bar */
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: rgba(12, 26, 44, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(216, 186, 112, 0.25);
  border-radius: 14px;
  padding: 24px 28px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
}

.metric-item {
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding-right: 16px;
}

.metric-item:last-child {
  border-right: none;
  padding-right: 0;
}

.metric-number {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--gold-400);
  line-height: 1;
}

.metric-label {
  font-size: 13px;
  color: var(--slate-300);
  margin-top: 6px;
  line-height: 1.35;
}

/* ==========================================================================
   URGENCY BANNER
   ========================================================================== */
.urgency-banner {
  background: linear-gradient(90deg, #8B1E1E 0%, #B91C1C 50%, #7F1D1D 100%);
  color: #FFFFFF;
  padding: 18px 0;
  box-shadow: 0 4px 15px rgba(185, 28, 28, 0.25);
}

.urgency-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.urgency-text {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  font-weight: 500;
}

.urgency-badge {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   SECTION COMMONS
   ========================================================================== */
.section {
  padding: 95px 0;
  position: relative;
}

.section-dark {
  background-color: var(--navy-900);
  color: #FFFFFF;
}

.section-muted {
  background-color: #F1F5F9;
}

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

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 12px;
}

.section-dark .section-tag {
  color: var(--gold-400);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(30px, 3.5vw, 44px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy-900);
  margin-bottom: 18px;
}

.section-dark .section-title {
  color: #FFFFFF;
}

.section-line {
  width: 60px;
  height: 3px;
  background: var(--gold-gradient);
  margin: 0 auto 18px auto;
  border-radius: 2px;
}

.section-desc {
  font-size: 17px;
  color: var(--slate-600);
  line-height: 1.7;
}

.section-dark .section-desc {
  color: var(--slate-300);
}

/* ==========================================================================
   VALUE PILLARS (POR QUÉ ELEGIRNOS)
   ========================================================================== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.pillar-card {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 38px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--slate-200);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gold-gradient);
  opacity: 0;
  transition: var(--transition-normal);
}

.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-border);
}

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

.pillar-icon-box {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px auto;
  border-radius: 50%;
  background: rgba(197, 168, 128, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-600);
  font-size: 34px;
  transition: var(--transition-normal);
}

.pillar-card:hover .pillar-icon-box {
  background: var(--gold-gradient);
  color: var(--navy-950);
  transform: scale(1.1) rotate(5deg);
}

.pillar-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 14px;
}

.pillar-desc {
  font-size: 15px;
  color: var(--slate-600);
  line-height: 1.65;
}

/* ==========================================================================
   PRACTICE AREAS (ÁREAS DE PRÁCTICA)
   ========================================================================== */
.practice-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 45px;
}

.filter-btn {
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  background: var(--slate-100);
  color: var(--slate-700);
  border: 1px solid var(--slate-200);
  transition: var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--navy-900);
  color: var(--gold-300);
  border-color: var(--navy-900);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.service-card {
  background: #FFFFFF;
  border-radius: 12px;
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
  position: relative;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--gold-border);
}

.service-header {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}

.service-icon {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(12, 26, 44, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-800);
  font-size: 24px;
  transition: var(--transition-fast);
}

.service-card:hover .service-icon {
  background: var(--navy-900);
  color: var(--gold-400);
}

.service-title {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.3;
}

.service-desc {
  font-size: 14.5px;
  color: var(--slate-600);
  line-height: 1.65;
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-features {
  list-style: none;
  margin-bottom: 24px;
  border-top: 1px dashed var(--slate-200);
  padding-top: 18px;
}

.service-features li {
  font-size: 13.5px;
  color: var(--slate-700);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-features li i {
  color: var(--gold-600);
  font-size: 12px;
}

.service-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 18px;
  background: var(--slate-100);
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy-900);
  transition: var(--transition-fast);
}

.service-card:hover .service-btn {
  background: var(--navy-900);
  color: var(--gold-300);
}

/* ==========================================================================
   LAWYER PROFILE SPOTLIGHT (ABOGADO TITULAR)
   ========================================================================== */
.lawyer-section {
  position: relative;
  background-color: var(--navy-950);
  color: #FFFFFF;
  overflow: hidden;
}

.lawyer-section-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-image: url('../img/justice_bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  pointer-events: none;
}

.lawyer-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: center;
}

.lawyer-media {
  position: relative;
}

.lawyer-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  border: 2px solid var(--gold-400);
}

.lawyer-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.lawyer-frame-glow {
  position: absolute;
  inset: -15px;
  border: 1px dashed rgba(216, 186, 112, 0.4);
  border-radius: 20px;
  z-index: -1;
  pointer-events: none;
}

.lawyer-badge-floating {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(8, 18, 32, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--gold-border);
  padding: 14px 20px;
  border-radius: 10px;
  text-align: center;
}

.lawyer-badge-floating .role {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--gold-300);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.lawyer-badge-floating .notice {
  font-size: 11px;
  color: var(--slate-400);
  margin-top: 4px;
}

.lawyer-info .eyebrow {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold-400);
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lawyer-name {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
  margin-bottom: 10px;
}

.lawyer-title {
  font-size: 18px;
  color: var(--gold-200);
  font-weight: 500;
  margin-bottom: 26px;
}

.lawyer-bio {
  font-size: 16px;
  color: var(--slate-300);
  line-height: 1.8;
  margin-bottom: 30px;
}

.lawyer-credentials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 36px;
}

.credential-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 20px;
  border-radius: 8px;
}

.credential-box .label {
  font-size: 12px;
  color: var(--gold-400);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
}

.credential-box .value {
  font-size: 15px;
  font-weight: 600;
  color: #FFFFFF;
  margin-top: 4px;
}

/* ==========================================================================
   METODOLOGÍA DE TRABAJO (4 PASOS)
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.step-card {
  background: #FFFFFF;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 36px 24px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-border);
}

.step-number {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  color: var(--gold-400);
  line-height: 1;
  margin-bottom: 18px;
}

.step-title {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 12px;
}

.step-desc {
  font-size: 14.5px;
  color: var(--slate-600);
  line-height: 1.6;
}

/* ==========================================================================
   SITIOS DE INTERÉS JURÍDICO (CHILE)
   ========================================================================== */
.portals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.portal-card {
  background: #FFFFFF;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 24px 18px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

.portal-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  border-color: var(--gold-400);
}

.portal-brand-badge {
  width: 100%;
  height: 76px;
  background: #FFFFFF;
  border: 1.5px solid rgba(216, 186, 112, 0.35);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
  overflow: hidden;
}

.portal-logo-img {
  max-width: 100%;
  max-height: 56px;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.portal-card:hover .portal-brand-badge {
  border-color: var(--gold-400);
  box-shadow: 0 6px 18px rgba(216, 186, 112, 0.28);
  transform: translateY(-2px);
}

.portal-card:hover .portal-logo-img {
  transform: scale(1.04);
}

.portal-name {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 8px;
}

.portal-desc {
  font-size: 12.5px;
  color: var(--slate-500);
  line-height: 1.5;
  margin-bottom: 14px;
}

.portal-link {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gold-600);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.portal-card:hover .portal-link {
  color: var(--navy-900);
}

/* ==========================================================================
   CONSULTATION FORM ("CONSULTE SU CASO")
   ========================================================================== */
.contact-section {
  background: var(--navy-950);
  color: #FFFFFF;
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 50px;
  align-items: flex-start;
}

.contact-info-card {
  background: rgba(12, 26, 44, 0.85);
  border: 1px solid var(--gold-border);
  border-radius: 14px;
  padding: 40px 34px;
  box-shadow: var(--shadow-xl);
}

.contact-title {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 14px;
}

.contact-desc {
  font-size: 15px;
  color: var(--slate-300);
  margin-bottom: 30px;
  line-height: 1.65;
}

.contact-detail-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 34px;
}

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

.contact-detail-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(216, 186, 112, 0.15);
  color: var(--gold-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-detail-text h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold-300);
  margin-bottom: 4px;
}

.contact-detail-text p, .contact-detail-text a {
  font-size: 15px;
  color: #FFFFFF;
}

.contact-form-card {
  background: #FFFFFF;
  color: var(--slate-800);
  border-radius: 14px;
  padding: 44px 38px;
  box-shadow: var(--shadow-xl);
}

.form-header {
  margin-bottom: 28px;
}

.form-title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 8px;
}

.form-subtitle {
  font-size: 14px;
  color: var(--slate-500);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--slate-200);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  color: var(--slate-900);
  background-color: var(--slate-50);
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--gold-500);
  background-color: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(197, 168, 128, 0.18);
}

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

.form-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--slate-700);
  cursor: pointer;
  margin-bottom: 24px;
}

.form-checkbox-label input {
  width: 17px;
  height: 17px;
  accent-color: var(--gold-600);
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */
.faq-accordion {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  background: #FFFFFF;
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  margin-bottom: 14px;
  overflow: hidden;
  transition: var(--transition-fast);
}

.faq-header {
  width: 100%;
  padding: 20px 24px;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy-900);
  background: transparent;
  gap: 16px;
}

.faq-header i {
  color: var(--gold-600);
  font-size: 16px;
  transition: transform var(--transition-normal);
}

.faq-item.active .faq-header i {
  transform: rotate(180deg);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
  padding: 0 24px;
  font-size: 15px;
  color: var(--slate-600);
  line-height: 1.7;
}

.faq-item.active .faq-body {
  padding-bottom: 22px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--navy-950);
  color: var(--slate-300);
  padding: 80px 0 30px 0;
  border-top: 1px solid rgba(216, 186, 112, 0.2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col-about p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--slate-400);
  margin: 18px 0 24px 0;
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--gold-300);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--gold-gradient);
}

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

.footer-links a {
  font-size: 14px;
  color: var(--slate-400);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--gold-300);
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  padding-bottom: 50px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
  color: var(--slate-500);
}

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
}

.footer-bottom-subrow {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 12px;
}

.footer-copyright {
  color: var(--slate-400);
  font-size: 13px;
}

.footer-lawyer-tag {
  color: var(--slate-400);
  font-size: 12.5px;
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.2px;
}

.footer-credit {
  color: var(--slate-400);
  font-size: 13px;
  font-weight: 500;
  text-align: right;
  margin-left: auto;
}

.footer-credit .compugraf-brand {
  color: var(--gold-400) !important;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-decoration: none;
  transition: var(--transition-fast);
  padding: 2px 4px;
}

.footer-credit .compugraf-brand:hover {
  color: #FFFFFF !important;
  text-decoration: underline;
  text-shadow: 0 0 10px rgba(216, 186, 112, 0.6);
}

.footer-bottom a {
  color: var(--slate-400);
}

.footer-bottom a:hover {
  color: var(--gold-300);
}

/* ==========================================================================
   FLOATING ACTION BUTTONS
   ========================================================================== */
.floating-whatsapp {
  position: fixed;
  bottom: 105px;
  right: 28px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.45);
  z-index: 99;
  transition: var(--transition-normal);
  animation: pulse-wa 3s infinite;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
}

@keyframes pulse-wa {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.scroll-top-btn {
  position: fixed;
  bottom: 105px;
  left: 28px;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(8, 18, 32, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--gold-border);
  color: var(--gold-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
  z-index: 90;
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top-btn:hover {
  background: var(--gold-gradient);
  color: var(--navy-950);
  transform: translateY(-3px);
}

/* ==========================================================================
   MODAL DIALOG (Consulte su caso & Detalle de servicio)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 9, 19, 0.82);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

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

.modal-card {
  background: #FFFFFF;
  border-radius: 16px;
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gold-border);
  position: relative;
  transform: scale(0.95) translateY(20px);
  transition: var(--transition-normal);
  padding: 38px 32px;
}

.modal-card-lg {
  max-width: 1040px;
  width: 94vw;
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
}

.modal-header-banner {
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-850) 100%);
  color: #FFFFFF;
  padding: 32px 36px 26px;
  border-bottom: 2px solid var(--gold-400);
  position: relative;
}

.modal-header-content {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-right: 50px;
}

.modal-header-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(216, 186, 112, 0.18);
  border: 1px solid var(--gold-400);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-300);
  font-size: 24px;
  flex-shrink: 0;
}

.modal-header-text-block {
  flex: 1;
  min-width: 0;
}

.modal-header-text-block .badge-titular {
  margin-bottom: 4px;
}

.modal-header-title {
  font-family: var(--font-serif);
  font-size: 23px;
  color: #FFFFFF;
  margin: 4px 0 0 0;
  line-height: 1.25;
}

.modal-header-subtitle {
  color: var(--slate-300);
  font-size: 13.5px;
  margin: 4px 0 0 0;
  line-height: 1.4;
}

.modal-header-profile {
  display: flex;
  align-items: center;
  gap: 24px;
}

.modal-avatar-thumb {
  width: 90px;
  height: 90px;
  border-radius: 14px;
  object-fit: cover;
  border: 2px solid var(--gold-400);
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  flex-shrink: 0;
}

.modal-header-text h3 {
  font-family: var(--font-serif);
  font-size: 26px;
  color: #FFFFFF;
  line-height: 1.2;
  margin-bottom: 6px;
}

.modal-header-text .badge-titular {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(216, 186, 112, 0.15);
  border: 1px solid var(--gold-400);
  color: var(--gold-300);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.modal-body-scroll {
  padding: 32px 36px;
  max-height: calc(88vh - 170px);
  overflow-y: auto;
}

.modal-close-round {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: var(--transition-fast);
  z-index: 10;
}

.modal-close-round:hover {
  background: var(--gold-gradient);
  color: var(--navy-950);
}

/* CV Detail Sections */
.cv-block {
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--slate-200);
}

.cv-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.cv-block-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 14px;
}

.cv-block-title i {
  color: var(--gold-600);
}

.cv-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cv-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  color: var(--slate-700);
  line-height: 1.6;
}

.cv-list li i {
  color: #10B981;
  font-size: 14px;
  margin-top: 4px;
  flex-shrink: 0;
}

/* Service Detail Modal Content */
.service-detail-box {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.service-detail-box h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-detail-box h4 i {
  color: var(--gold-600);
}

.phases-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.phase-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--slate-700);
}

.phase-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--gold-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Service Card Action Buttons */
.service-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.service-detail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 8px 14px;
  background: transparent;
  color: var(--slate-600);
  border: 1px solid var(--slate-300);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition-fast);
}

.service-detail-btn:hover {
  background: var(--slate-100);
  color: var(--navy-900);
  border-color: var(--navy-800);
}

.modal-overlay.open .modal-card {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--slate-100);
  color: var(--slate-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition-fast);
}

.modal-close:hover {
  background: var(--navy-900);
  color: #FFFFFF;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .lawyer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .lawyer-media {
    max-width: 440px;
    margin: 0 auto;
  }
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }

  /* Switch header to clean mobile drawer at 1024px so it never crowds */
  .nav-actions .btn {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .nav-menu {
    position: fixed;
    top: 76px;
    left: 0;
    width: 100%;
    height: calc(100vh - 76px);
    max-height: calc(100vh - 76px);
    overflow-y: auto;
    background-color: #060e19;
    flex-direction: column;
    align-items: stretch;
    padding: 24px 20px 40px;
    gap: 0;
    border-bottom: 2px solid var(--gold-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
    z-index: 99;
  }
  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-menu li {
    width: 100%;
  }
  .nav-menu .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 15px 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--slate-100);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav-menu .nav-link::after {
    display: none;
  }
  .nav-menu .nav-link:hover, .nav-menu .nav-link.active {
    color: var(--gold-300);
    background: rgba(216, 186, 112, 0.08);
    border-radius: 6px;
  }
  .nav-mobile-cta {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px dashed rgba(216, 186, 112, 0.25);
  }
}

@media (max-width: 768px) {
  /* Ultra-clean single line slim topbar on mobile */
  .topbar {
    padding: 6px 0;
    font-size: 11.5px;
  }
  .topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
  }
  .topbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    overflow: hidden;
    white-space: nowrap;
  }
  .topbar-hours {
    display: none;
  }
  .topbar-loc span {
    max-width: 175px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
  }
  .topbar-email {
    display: none;
  }
  .topbar-wa a {
    color: #25D366;
    font-weight: 700;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }
  .metric-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 14px;
    padding-right: 0;
  }
  .metric-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .contact-form-card {
    padding: 30px 20px;
  }
  .lawyer-credentials {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .lawyer-grid {
    gap: 24px;
  }
  .lawyer-media {
    max-width: 290px;
    margin: 0 auto;
  }
  .lawyer-photo {
    aspect-ratio: 4/5;
    max-height: 360px;
    border-radius: 14px;
  }
  .lawyer-frame {
    border-radius: 14px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
  }
  .lawyer-frame-glow {
    inset: -6px;
  }
  .lawyer-badge-floating {
    bottom: 10px;
    left: 10px;
    right: 10px;
    padding: 8px 12px;
    border-radius: 8px;
  }
  .lawyer-badge-floating .role {
    font-size: 11px;
    letter-spacing: 1px;
  }
  .lawyer-badge-floating .notice {
    font-size: 9.5px;
    margin-top: 2px;
  }
  .lawyer-name {
    font-size: 26px;
  }
  .lawyer-title {
    font-size: 13.5px;
  }
  .lawyer-bio {
    font-size: 14px;
    line-height: 1.65;
  }
  .modal-overlay {
    padding: 12px;
  }
  .modal-card {
    padding: 24px 16px;
    border-radius: 16px;
    max-height: 94vh;
  }
  .modal-card-lg {
    max-width: 100%;
    width: 100%;
    border-radius: 16px;
    padding: 0;
  }
  .modal-header-banner {
    padding: 20px 54px 16px 16px;
  }
  .modal-header-content {
    gap: 12px;
    padding-right: 0;
  }
  .modal-header-icon {
    width: 42px;
    height: 42px;
    font-size: 19px;
    border-radius: 10px;
  }
  .modal-header-title {
    font-size: 18px;
    margin-top: 2px;
  }
  .modal-header-subtitle {
    font-size: 12px;
  }
  .modal-close-round {
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    font-size: 16px;
  }
  .modal-body-scroll {
    padding: 18px 16px;
    max-height: calc(92vh - 110px);
  }
  .cv-block {
    margin-bottom: 20px;
    padding-bottom: 16px;
  }
  .cv-block-title {
    font-size: 16px;
    gap: 8px;
    margin-bottom: 10px;
  }
  .modal-header-profile {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    text-align: left;
    padding-right: 44px;
  }
  .modal-avatar-thumb {
    width: 64px;
    height: 64px;
    border-radius: 12px;
  }
  .floating-whatsapp {
    bottom: 125px;
    right: 18px;
    width: 56px;
    height: 56px;
    font-size: 28px;
  }
  .scroll-top-btn {
    bottom: 125px;
    left: 18px;
    width: 42px;
    height: 42px;
  }
  .footer-bottom {
    padding-bottom: 55px;
  }
  .footer-bottom-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .footer-legal-links {
    justify-content: flex-start;
  }
  .footer-bottom-subrow {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 10px;
  }
  .footer-credit {
    margin-left: auto;
    text-align: right;
  }
}

@media (max-width: 520px) {
  .footer-bottom-subrow {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .footer-lawyer-tag {
    padding-left: 54px;
  }
  .footer-credit {
    margin-left: 0;
    align-self: flex-end;
  }
}

/* ==========================================================================
   GEO-REFERENCING (WAZE, GOOGLE MAPS, APPLE MAPS)
   ========================================================================== */
.geo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.geo-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(216, 186, 112, 0.35);
  color: #FFFFFF;
  transition: var(--transition-normal);
}

.geo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  border-color: var(--gold-400);
}

.geo-btn.geo-gmaps:hover {
  background: rgba(66, 133, 244, 0.18);
  border-color: #4285f4;
  color: #93c5fd;
}

.geo-btn.geo-waze:hover {
  background: rgba(51, 204, 255, 0.18);
  border-color: #33ccff;
  color: #33ccff;
}

.geo-btn.geo-apple:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #FFFFFF;
  color: #FFFFFF;
}

.geo-badge-sm {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 5px;
  background: rgba(216, 186, 112, 0.1);
  border: 1px solid rgba(216, 186, 112, 0.3);
  color: var(--gold-300);
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-fast);
}

.geo-badge-sm:hover {
  background: rgba(216, 186, 112, 0.22);
  color: #FFFFFF;
  border-color: var(--gold-300);
}

/* Unified Aligned Form Checkboxes & Legal Consent */
.form-checkbox-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: var(--transition-fast);
  box-sizing: border-box;
  width: 100%;
}

.form-checkbox-card:hover {
  background: #f1f5f9;
  border-color: var(--gold-400);
}

.form-checkbox-card.urgent-card {
  border-left: 3px solid var(--gold-500);
}

.form-checkbox-card.legal-card {
  border-left: 3px solid #0284c7;
  margin-bottom: 22px;
}

.form-checkbox-card input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 2px 0 0 0;
  padding: 0;
  accent-color: var(--gold-600);
  cursor: pointer;
  flex-shrink: 0;
}

.form-checkbox-card .checkbox-text {
  font-size: 13px;
  line-height: 1.55;
  color: var(--slate-700);
  margin: 0;
}

.form-checkbox-card .checkbox-text strong {
  color: var(--navy-900);
}

.form-checkbox-card a {
  color: var(--gold-600);
  font-weight: 700;
  text-decoration: underline;
}

.form-checkbox-card a:hover {
  color: var(--navy-900);
}

/* Backwards compatibility */
.legal-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 12px 0 20px 0;
  cursor: pointer;
  transition: var(--transition-fast);
}

.legal-consent-label:hover {
  background: #f1f5f9;
  border-color: var(--gold-400);
}

.legal-consent-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 2px 0 0 0;
  accent-color: var(--gold-500);
  cursor: pointer;
  flex-shrink: 0;
}

.legal-consent-label span {
  font-size: 13px;
  line-height: 1.55;
  color: var(--slate-700);
}

.legal-consent-label a {
  color: var(--gold-600);
  font-weight: 700;
  text-decoration: underline;
}

.legal-consent-label a:hover {
  color: var(--navy-900);
}

.form-security-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.03);
  border: 1px dashed rgba(216, 186, 112, 0.4);
  border-radius: 6px;
  padding: 10px 14px;
  margin-top: 14px;
  font-size: 11.5px;
  color: var(--slate-600);
  line-height: 1.45;
}

/* Footer Legal Links & Compugraf Branding */
.footer-legal-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--slate-400);
  margin: 0;
}

.footer-legal-links a {
  color: var(--slate-300);
  transition: var(--transition-fast);
}

.footer-legal-links a:hover {
  color: var(--gold-300);
}

.compugraf-brand {
  color: var(--gold-400) !important;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.compugraf-brand:hover {
  color: #FFFFFF !important;
  text-decoration: underline;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 900px;
  margin: 0 auto;
  background: rgba(8, 18, 32, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(216, 186, 112, 0.4);
  border-radius: 12px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  z-index: 999;
  transform: translateY(150%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-banner-text {
  font-size: 13px;
  color: var(--slate-300);
  line-height: 1.55;
  margin: 0;
}

.cookie-banner-text strong {
  color: var(--gold-300);
}

.cookie-banner-text a {
  color: var(--gold-400);
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    bottom: 16px;
    left: 16px;
    right: 16px;
    padding: 16px;
  }
  .cookie-banner-actions {
    flex-direction: column;
    width: 100%;
  }
  .cookie-banner-actions .btn {
    width: 100%;
  }
}

/* ==========================================================================
   LEGAL & COOKIE TRANSPARENCY TABLES (ESTÁNDAR ANCI & LEY N° 21.663)
   ========================================================================== */
.table-responsive {
  width: 100%;
  margin: 18px 0;
  border-radius: 12px;
  border: 1px solid var(--slate-200);
  background: #FFFFFF;
  overflow: hidden;
}

.cookie-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
  background: #FFFFFF;
}

.cookie-table th {
  background: var(--navy-900);
  color: #FFFFFF;
  padding: 12px 10px;
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  border-bottom: 2px solid var(--gold-400);
  white-space: normal;
  word-break: break-word;
}

.cookie-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--slate-200);
  color: var(--slate-700);
  vertical-align: top;
  word-break: break-word;
}

.cookie-table tr:last-child td {
  border-bottom: none;
}

.cookie-table tr:hover td {
  background: rgba(248, 250, 252, 0.85);
}

.badge-cookie-tech {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(32, 71, 119, 0.1);
  color: var(--navy-700);
  font-weight: 700;
  font-size: 11px;
  border: 1px solid rgba(32, 71, 119, 0.25);
  white-space: normal;
  line-height: 1.3;
}

.badge-cookie-sec {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(216, 186, 112, 0.18);
  color: var(--gold-700);
  font-weight: 700;
  font-size: 11px;
  border: 1px solid var(--gold-400);
  white-space: normal;
  line-height: 1.3;
}

.badge-cookie-pref {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.12);
  color: #065f46;
  font-weight: 700;
  font-size: 11px;
  border: 1px solid rgba(16, 185, 129, 0.35);
  white-space: normal;
  line-height: 1.3;
}

.code-pill {
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 12px;
  background: var(--slate-100);
  color: var(--navy-900);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid var(--slate-300);
  font-weight: 600;
  display: inline-block;
  word-break: break-all;
}

/* Mobile Cookie Cards Layout (Exclusivo pantallas <= 768px) */
.cookie-cards-mobile {
  display: none;
}

@media (max-width: 768px) {
  .table-responsive.desktop-only {
    display: none !important;
  }
  .cookie-cards-mobile {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 16px 0;
  }
}

.cookie-card-item {
  background: #FFFFFF;
  border: 1px solid var(--slate-200);
  border-left: 4px solid var(--gold-400);
  border-radius: 10px;
  padding: 16px 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.cookie-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--slate-100);
}

.cookie-card-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.badge-cookie-dur {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--slate-100);
  color: var(--slate-700);
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--slate-300);
}

.cookie-card-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cookie-card-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  line-height: 1.5;
}

.cookie-card-field .label {
  font-weight: 700;
  color: var(--navy-900);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cookie-card-field .val {
  color: var(--slate-700);
}

/* ==========================================================================
   GUÍA CONSULTA "MI CAUSA" & PORTALES JUDICIALES
   ========================================================================== */
.causa-guide-card {
  background: linear-gradient(145deg, #081220 0%, #0e1e33 100%);
  border: 1px solid rgba(216, 186, 112, 0.35);
  border-radius: 16px;
  padding: 36px 32px;
  margin-bottom: 40px;
  color: #FFFFFF;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.causa-guide-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(216, 186, 112, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.causa-guide-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(216, 186, 112, 0.15);
  border: 1px solid rgba(216, 186, 112, 0.35);
  color: var(--gold-300);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.causa-guide-title {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.4vw, 28px);
  color: #FFFFFF;
  line-height: 1.3;
  margin-bottom: 10px;
}

.causa-guide-lead {
  font-size: 15px;
  color: var(--slate-300);
  line-height: 1.6;
  max-width: 900px;
  margin-bottom: 28px;
}

.causa-guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.causa-step-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 22px 18px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: var(--transition-fast);
}

.causa-step-item:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(216, 186, 112, 0.4);
  transform: translateY(-2px);
}

.causa-step-num {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: var(--navy-950);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.causa-step-content h4 {
  font-size: 15.5px;
  color: var(--gold-200);
  margin-bottom: 6px;
  font-weight: 700;
}

.causa-step-content p {
  font-size: 13.5px;
  color: var(--slate-300);
  line-height: 1.55;
  margin: 0;
}

.causa-step-content a {
  color: var(--gold-400);
  text-decoration: underline;
}

.causa-guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 22px;
}



