/* ============================================
   GUEVARA CASTANO ABOGADOS — Unified Stylesheet
   Design: Cormorant Garamond + Lato | Green #1B3D2F
   Performance: Single CSS file, no render-blocking
   ============================================ */

/* --- RESET & VARIABLES --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --green: #1B3D2F;
  --green-mid: #2E6B4F;
  --white: #FFFFFF;
  --offwhite: #F7F7F5;
  --gray-light: #F0EFED;
  --gray-mid: #9E9E9E;
  --dark: #212121;
  --border: rgba(27,61,47,0.15);
  --gold: #C9A96E;
  --gold-light: rgba(201,169,110,0.12);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* --- ELEVATION SHADOWS (Z-DEPTH) --- */
  --shadow-elevation-z0: none;
  --shadow-elevation-z1: 0 2px 4px rgba(0, 0, 0, 0.08);
  --shadow-elevation-z2: 0 4px 8px rgba(0, 0, 0, 0.12);
  --shadow-elevation-z3: 0 8px 16px rgba(0, 0, 0, 0.15);
  --shadow-elevation-z4: 0 12px 24px rgba(0, 0, 0, 0.18);
  --shadow-elevation-z5: 0 16px 32px rgba(0, 0, 0, 0.20);
  --shadow-elevation-z6: 0 20px 40px rgba(0, 0, 0, 0.22);

  /* --- GLASSMORPHISM --- */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-dark-bg: rgba(27, 61, 47, 0.8);
  --glass-dark-border: rgba(255, 255, 255, 0.15);
}

html { scroll-behavior: smooth; }

/* --- ELEVATION SYSTEM: BOX SHADOWS ESCALONADAS --- */
.elevation-z0 { box-shadow: var(--shadow-elevation-z0); }
.elevation-z1 { box-shadow: var(--shadow-elevation-z1); }
.elevation-z2 { box-shadow: var(--shadow-elevation-z2); }
.elevation-z3 { box-shadow: var(--shadow-elevation-z3); }
.elevation-z4 { box-shadow: var(--shadow-elevation-z4); }
.elevation-z5 { box-shadow: var(--shadow-elevation-z5); }
.elevation-z6 { box-shadow: var(--shadow-elevation-z6); }

/* Elevation on hover/interactive */
.elevation-hover:hover {
  box-shadow: var(--shadow-elevation-z4);
  transition: box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  transform: translateY(-2px);
}

.elevation-interactive {
  box-shadow: var(--shadow-elevation-z2);
  transition: box-shadow 0.28s var(--ease-out), transform 0.28s var(--ease-out);
}
.elevation-interactive:hover {
  box-shadow: var(--shadow-elevation-z4);
  transform: translateY(-4px);
}

/* --- GLASSMORPHISM EFFECTS --- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
}

.glass-dark {
  background: var(--glass-dark-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-dark-border);
  border-radius: 12px;
  color: var(--white);
}

.glass-floating {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.glass-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 24px;
}

/* --- BLUR EFFECTS: CONTEXTUALES --- */
.blur-light {
  filter: blur(2px);
  transition: filter 0.3s ease;
}
.blur-light:hover {
  filter: blur(0px);
}

.blur-medium {
  filter: blur(4px);
  transition: filter 0.3s ease;
}
.blur-medium:hover {
  filter: blur(0px);
}

.blur-heavy {
  filter: blur(8px);
  transition: filter 0.3s ease;
}
.blur-heavy:hover {
  filter: blur(0px);
}

/* Blur backdrop - para overlays */
.blur-backdrop {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Image blur overlay */
.image-blur-overlay {
  position: relative;
  overflow: hidden;
}
.image-blur-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: backdrop-filter 0.4s ease, -webkit-backdrop-filter 0.4s ease;
  pointer-events: none;
}
.image-blur-overlay:hover::after {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Text blur effect */
.text-blur {
  color: rgba(33, 33, 33, 0.5);
  transition: all 0.3s ease;
}
.text-blur:hover {
  color: var(--dark);
  filter: blur(0px);
}

/* --- LIGHT OVERLAYS WITH SCROLL --- */
.light-overlay {
  position: relative;
}

.light-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  transition: opacity 0.3s ease;
  opacity: 1;
  z-index: 1;
}

.light-overlay.scroll-hidden::before {
  opacity: 0;
}

/* Light overlay dark mode */
.light-overlay-dark::before {
  background: linear-gradient(180deg, rgba(27, 61, 47, 0.6) 0%, rgba(27, 61, 47, 0) 100%);
}

/* Radial light overlay */
.light-overlay-radial::before {
  background: radial-gradient(circle at center top, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 70%);
}

/* Diagonal light effect */
.light-overlay-diagonal::before {
  background: linear-gradient(135deg, rgba(201, 169, 110, 0.2) 0%, rgba(201, 169, 110, 0) 100%);
}

/* Animated light overlay */
@keyframes lightPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.light-overlay-animated::before {
  animation: lightPulse 4s ease-in-out infinite;
}

body {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
  cursor: default;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- TYPOGRAPHY: VARIABLE FONTS --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* Elegant headlines with Playfair Display */
.heading-elegant {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: none;
}

.heading-light {
  font-weight: 400;
  letter-spacing: 0.02em;
}

.heading-bold {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.heading-black {
  font-weight: 900;
  letter-spacing: -0.04em;
}

/* Dynamic font weights for different contexts */
.text-light { font-weight: 300; }
.text-regular { font-weight: 400; }
.text-medium { font-weight: 500; }
.text-semibold { font-weight: 600; }
.text-bold { font-weight: 700; }
.text-extrabold { font-weight: 800; }
.text-black { font-weight: 900; }

/* Monospace for data and statistics */
.data-mono, .stat-value, .code {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.data-mono-light {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 300;
}

.data-mono-bold {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
}

/* --- CUSTOM CURSORS --- */
a { cursor: pointer; }
button { cursor: pointer; }
.form-input, .form-select { cursor: text; }
.tooltip-trigger { cursor: help; }
.form-submit { cursor: pointer; }
.servicio-card { cursor: pointer; }
.blog-card { cursor: pointer; }

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

/* --- NAVBAR --- */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 200; display: flex; align-items: center; justify-content: space-between; padding: 0 48px; height: 128px; overflow: visible; background: rgba(255,255,255,0.97); border-bottom: 0.5px solid var(--border); backdrop-filter: blur(10px); transition: box-shadow 0.3s; }
nav.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,0.07); }
.nav-brand { display: flex; align-items: center; text-decoration: none; }
.nav-logo { height: 144px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links > li { position: relative; }
.nav-links a, .nav-drop-trigger { font-family: 'Lato', sans-serif; font-size: 12px; font-weight: 400; letter-spacing: 0.07em; text-transform: uppercase; color: var(--dark); text-decoration: none; padding: 8px 14px; display: flex; align-items: center; gap: 5px; cursor: pointer; border: none; background: none; transition: color 0.2s; white-space: nowrap; }
.nav-links a:hover, .nav-drop-trigger:hover, .nav-links a.active { color: var(--green); }
/* Animated underline on nav links */
.nav-links > li > a:not(.nav-cta) { position: relative; }
.nav-links > li > a:not(.nav-cta)::after { content: ''; position: absolute; bottom: 4px; left: 14px; right: 14px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease-out); }
.nav-links > li > a:not(.nav-cta):hover::after,
.nav-links > li > a:not(.nav-cta).active::after { transform: scaleX(1); }
.nav-drop-trigger svg { width: 10px; height: 10px; transition: transform 0.25s; stroke: currentColor; }
.nav-links li:hover .nav-drop-trigger svg { transform: rotate(180deg); }
.nav-dropdown { position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(-6px); min-width: 260px; background: var(--white); border: 0.5px solid var(--border); box-shadow: 0 16px 40px rgba(0,0,0,0.08); opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; padding-top: 8px; }
.nav-links li:hover .nav-dropdown { opacity: 1; pointer-events: all; transform: translateX(-50%) translateY(0); }
.nav-dropdown a { display: flex; align-items: center; gap: 10px; padding: 12px 20px; font-size: 12px; letter-spacing: 0.05em; border-bottom: 0.5px solid rgba(27,61,47,0.06); color: var(--dark); transition: background 0.15s, color 0.15s; text-transform: none; }
.nav-dropdown a:last-child { border-bottom: none; }
.nav-dropdown a:hover { background: var(--offwhite); color: var(--green); }
.nav-dropdown-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--green-mid); opacity: 0.4; flex-shrink: 0; transition: opacity 0.15s; }
.nav-dropdown a:hover .nav-dropdown-dot { opacity: 1; }
.nav-cta { font-family: 'Lato', sans-serif !important; font-size: 11px !important; font-weight: 700 !important; letter-spacing: 0.1em !important; text-transform: uppercase !important; color: var(--white) !important; background: var(--green) !important; padding: 10px 22px !important; text-decoration: none; transition: background 0.2s; margin-left: 8px; }
.nav-cta:hover { background: var(--green-mid) !important; }

/* Mobile menu toggle */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--green); margin: 5px 0; transition: all 0.3s; }
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- HERO (index) --- */
.hero { position: relative; height: 100vh; min-height: 620px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--green); }
.hero-bg { position: absolute; top: 0; left: 0; right: 0; height: 120%; background-image: url('../img/edificio-bogota.jpg'); background-size: cover; background-position: center 30%; background-repeat: no-repeat; will-change: transform; }
.hero-bg::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(160deg, rgba(18,46,34,0.84) 0%, rgba(27,61,47,0.70) 50%, rgba(18,46,34,0.88) 100%); }
.hero-content { position: relative; z-index: 2; text-align: center; padding: 0 40px; max-width: 820px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }

/* 3D Card transform animation */
@keyframes card3dReveal {
  from {
    opacity: 0;
    transform: translateY(40px) rotateX(15deg) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0) scale(1);
  }
}

/* Text reveal animation */
@keyframes textReveal {
  from {
    opacity: 0;
    transform: translateY(20px) skewY(2deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) skewY(0);
  }
}

/* Gradient shift animation */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Gradient move animation */
@keyframes gradientMove {
  0% {
    background-position: 200% center;
  }
  100% {
    background-position: -200% center;
  }
}

/* Staggered reveal */
@keyframes staggerReveal {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loading spinner */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

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

/* Success state with particles */
@keyframes successPop {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.5);
  }
}

@keyframes particle {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx), var(--ty)) scale(0);
  }
}

@keyframes checkmark {
  0% {
    stroke-dashoffset: 60;
    transform: scale(0);
  }
  100% {
    stroke-dashoffset: 0;
    transform: scale(1);
  }
}
.hero-eyebrow { font-family: 'Lato', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 28px; animation: fadeUp 0.9s 0.1s ease both; }
.hero-logo { display: block; width: auto; max-width: 200px; height: auto; margin: 0 auto 22px; opacity: 0.55; animation: fadeUp 1.1s 0.2s ease both; }
/* Legacy text-based hero classes (retained for compatibility) */
.hero-gc { font-family: 'Cormorant Garamond', serif; font-size: 80px; font-weight: 600; color: rgba(255,255,255,0.1); letter-spacing: 0.06em; line-height: 1; margin-bottom: 12px; animation: fadeUp 0.9s 0.15s ease both; }
.hero-firm { font-family: 'Cormorant Garamond', serif; font-size: 16px; font-weight: 400; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(255,255,255,0.9); margin-bottom: 4px; animation: fadeUp 0.9s 0.2s ease both; }
.hero-sub-name { font-family: 'Lato', sans-serif; font-size: 10px; font-weight: 300; letter-spacing: 0.32em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 32px; animation: fadeUp 0.9s 0.25s ease both; }
.hero-divider { width: 56px; height: 1px; background: linear-gradient(to right, var(--gold), rgba(201,169,110,0.25)); margin: 0 auto 28px; animation: fadeUp 0.9s 0.3s ease both; }
.hero-desc { font-size: 14px; font-weight: 300; color: rgba(255,255,255,0.6); line-height: 1.85; margin-bottom: 40px; animation: fadeUp 0.9s 0.38s ease both; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; animation: fadeUp 0.9s 0.46s ease both; }
.btn-hero-p { font-family: 'Lato', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); background: var(--white); padding: 14px 32px; text-decoration: none; border: 1.5px solid var(--white); transition: all 0.2s; }
.btn-hero-p:hover { background: transparent; color: var(--white); }
.btn-hero-s { font-family: 'Lato', sans-serif; font-size: 11px; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.75); background: transparent; padding: 14px 32px; text-decoration: none; border: 1px solid rgba(255,255,255,0.28); transition: all 0.2s; }
.btn-hero-s:hover { border-color: rgba(255,255,255,0.65); color: var(--white); }
.hero-scroll { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; animation: fadeUp 0.9s 0.7s ease both; }
.hero-scroll span { font-family: 'Lato', sans-serif; font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.3); }
.scroll-line { width: 1px; height: 36px; background: linear-gradient(to bottom,rgba(255,255,255,0.35),transparent); }
@keyframes scrollPulse { 0%,100% { opacity: 0.4; } 50% { opacity: 1; } }
.scroll-line { animation: scrollPulse 2s ease-in-out infinite; }

/* --- PAGE HERO (subpages) --- */
.page-hero { padding: 172px 60px 72px; background: var(--green); position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(45deg,transparent,transparent 40px,rgba(255,255,255,0.012) 40px,rgba(255,255,255,0.012) 41px); }
.page-hero-label { font-family: 'Lato', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.38); margin-bottom: 14px; position: relative; }
.page-hero h1 { font-size: clamp(36px,5vw,58px); color: var(--white); position: relative; margin-bottom: 14px; }
.page-hero-line { width: 64px; height: 1px; background: linear-gradient(to right, var(--gold), rgba(201,169,110,0.25)); position: relative; margin-bottom: 18px; }
.page-hero-sub { font-size: 14px; font-weight: 300; color: rgba(255,255,255,0.55); line-height: 1.85; max-width: 520px; position: relative; }

/* --- BREADCRUMB --- */
.breadcrumb { padding: 14px 60px; background: var(--offwhite); border-bottom: 0.5px solid var(--border); display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--gray-mid); }
.breadcrumb a { color: var(--gray-mid); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb-sep { opacity: 0.4; }
.breadcrumb-current { color: var(--green); }

/* --- SECTIONS --- */
section { padding: 90px 60px; }
.section-label { font-family: 'Lato', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--green-mid); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.section-label::before { content: ''; display: inline-block; width: 22px; height: 1px; background: var(--gold); flex-shrink: 0; }
.section-title {
  font-size: clamp(28px,3.5vw,44px);
  color: var(--green);
  margin-bottom: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Section title variations */
.section-title.elegant {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.section-title.light {
  font-weight: 500;
  letter-spacing: 0;
}

.section-title.black {
  font-weight: 900;
  letter-spacing: -0.04em;
}
.section-line { width: 48px; height: 1px; background: linear-gradient(to right, var(--gold), rgba(201,169,110,0.25)); margin-bottom: 40px; opacity: 1; }
.section-header-centered { text-align: center; }
.section-header-centered .section-line { margin-left: auto; margin-right: auto; }

/* --- BUTTONS --- */
.btn-primary {
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background: linear-gradient(135deg, var(--green), var(--green-mid));
  background-size: 200% 200%;
  padding: 14px 32px;
  text-decoration: none;
  display: inline-block;
  border: 1.5px solid var(--green);
  transition: all 0.28s var(--ease-out);
}
.btn-primary:hover {
  animation: gradientMove 0.6s ease;
  border-color: var(--green-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27,61,47,0.3);
}
.btn-white {
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--white);
  padding: 14px 36px;
  text-decoration: none;
  display: inline-block;
  border: 1.5px solid var(--white);
  transition: all 0.28s var(--ease-out);
}
.btn-white:hover {
  background: transparent;
  color: var(--white);
  transform: translateY(-1px);
}

/* --- SERVICIOS (index) --- */
.servicios { background: var(--offwhite); perspective: 1000px; }
.servicios-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--border); max-width: 1100px; margin: 0 auto; border: 1px solid var(--border); }
.servicio-card {
  background: var(--white);
  position: relative;
  transition: background 0.35s var(--ease-out), transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-style: preserve-3d;
}
.servicio-card.animate-on-scroll {
  animation: card3dReveal 0.8s var(--ease-out) forwards;
  opacity: 0;
}
.servicio-card.animate-visible {
  animation: none;
  opacity: 1;
}
.servicio-card:hover {
  background: var(--green);
  transform: translateY(-8px) rotateX(-8deg);
  box-shadow: 0 24px 48px rgba(27,61,47,0.2);
}
/* Gold bottom accent line on hover */
.servicio-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: linear-gradient(to right, var(--gold), rgba(201,169,110,0.5)); transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease-out); z-index: 1; }
.servicio-card:hover::after { transform: scaleX(1); }
.servicio-img { height: 170px; background: var(--gray-light) center/cover no-repeat; position: relative; flex-shrink: 0; overflow: hidden; transition: transform 0.45s ease; }
.servicio-card:hover .servicio-img { transform: scale(1.05); }
.servicio-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(27,61,47,0.05) 0%, rgba(27,61,47,0.32) 100%); transition: opacity 0.28s; }
.servicio-card:hover .servicio-img::after { background: linear-gradient(to bottom, rgba(27,61,47,0.25) 0%, rgba(27,61,47,0.65) 100%); }
.servicio-img-placeholder { background-color: var(--gray-light); background-image: repeating-linear-gradient(-45deg,transparent,transparent 20px,rgba(27,61,47,0.045) 20px,rgba(27,61,47,0.045) 21px); }
.servicio-body { padding: 24px 26px 40px; position: relative; flex: 1; }
.servicio-num { font-family: 'Cormorant Garamond', serif; font-size: 11px; letter-spacing: 0.12em; color: var(--gray-mid); margin-bottom: 10px; transition: color 0.25s; }
.servicio-card:hover .servicio-num { color: rgba(255,255,255,0.35); }
.servicio-title { font-family: 'Cormorant Garamond', serif; font-size: 19px; font-weight: 500; color: var(--green); margin-bottom: 10px; transition: color 0.25s; line-height: 1.2; }
.servicio-card:hover .servicio-title { color: var(--white); }
.servicio-desc { font-size: 12px; font-weight: 300; color: var(--gray-mid); line-height: 1.7; transition: color 0.25s; }
.servicio-card:hover .servicio-desc { color: rgba(255,255,255,0.6); }
.servicio-arrow { position: absolute; bottom: 22px; right: 22px; font-size: 16px; color: var(--border); transition: all 0.25s; }
.servicio-card:hover .servicio-arrow { color: rgba(255,255,255,0.45); transform: translate(3px,-3px); }
.servicio-card.span2 { grid-column: span 2; }
.servicios-footer { text-align: center; margin-top: 36px; }

/* --- FAQ (index) --- */
.faq-section { background: var(--white); padding: 90px 60px; }
.faq-inner { max-width: 780px; margin: 0 auto; }
.faq-list { margin-top: 48px; border-top: 0.5px solid var(--border); }
.faq-item { border-bottom: 0.5px solid var(--border); }
.faq-question { width: 100%; background: none; border: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 22px 0; text-align: left; font-family: 'Cormorant Garamond', serif; font-size: 21px; font-weight: 500; color: var(--green); transition: color 0.25s; gap: 16px; }
.faq-question:hover { color: var(--gold); }
.faq-item.open .faq-question { color: var(--green); }
.faq-question svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; transition: transform 0.38s var(--ease-out), color 0.25s; }
.faq-item.open .faq-question svg { transform: rotate(180deg); color: var(--gold); }
/* Smooth max-height animation */
.faq-answer { font-size: 14px; font-weight: 300; color: #555; line-height: 1.85; max-width: 660px; display: block; max-height: 0; overflow: hidden; transition: max-height 0.5s var(--ease-out), padding-bottom 0.4s ease, opacity 0.4s ease; padding-bottom: 0; opacity: 0; }
.faq-item.open .faq-answer { max-height: 600px; padding-bottom: 28px; opacity: 1; }
/* Gold left border on open item */
.faq-item { border-bottom: 0.5px solid var(--border); padding-left: 0; transition: padding-left 0.35s var(--ease-out); }
.faq-item.open { padding-left: 12px; border-left: 2px solid var(--gold); }

/* --- NOSOTROS (index) --- */
.nosotros { background: var(--white); }
.nosotros-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; max-width: 1100px; margin: 0 auto; }
.nosotros-img { position: relative; height: 460px; }
.nosotros-img-box { width: 100%; height: 100%; background: var(--gray-light); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.nosotros-img-box::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg,transparent,transparent 20px,rgba(27,61,47,0.04) 20px,rgba(27,61,47,0.04) 21px); }
.nosotros-img-label { font-family: 'Cormorant Garamond', serif; font-size: 15px; color: var(--gray-mid); position: relative; z-index: 1; }
.nosotros-accent { position: absolute; bottom: -14px; right: -14px; width: 100px; height: 100px; border: 1px solid var(--green); opacity: 0.15; pointer-events: none; }
.nosotros-body { font-size: 14px; font-weight: 300; line-height: 1.85; color: #444; margin-bottom: 36px; }
.nosotros-metrics { display: grid; grid-template-columns: repeat(3,1fr); border-top: 0.5px solid var(--border); border-left: 0.5px solid var(--border); margin-bottom: 32px; }
.metric { padding: 20px 16px; border-right: 0.5px solid var(--border); border-bottom: 0.5px solid var(--border); }
.metric-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 32px;
  font-weight: 600;
  color: var(--green);
  line-height: 1;
  margin-bottom: 5px;
  letter-spacing: 0.02em;
}
.metric-label {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-mid);
}

/* --- BLOG CARDS (index + blog page) --- */
.blog-section-index { background: var(--offwhite); }
.blog-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 48px; max-width: 1060px; margin-left: auto; margin-right: auto; }
.blog-link-all { font-family: 'Lato', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); text-decoration: none; border-bottom: 1px solid var(--green); padding-bottom: 2px; }
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; max-width: 1060px; margin: 0 auto; }
.blog-card { background: var(--white); border: 0.5px solid var(--border); overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; cursor: pointer; text-decoration: none; display: block; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(27,61,47,0.08); }
.blog-img { height: 200px; background: var(--gray-light); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.blog-img::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg,transparent,transparent 16px,rgba(27,61,47,0.04) 16px,rgba(27,61,47,0.04) 17px); }
.blog-img-label { font-family: 'Cormorant Garamond', serif; font-size: 13px; color: var(--gray-mid); position: relative; z-index: 1; }
.blog-body { padding: 24px 24px 28px; }
.blog-tag { font-family: 'Lato', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green-mid); margin-bottom: 10px; }
.blog-title { font-family: 'Cormorant Garamond', serif; font-size: 19px; font-weight: 500; color: var(--dark); line-height: 1.3; margin-bottom: 10px; }
.blog-excerpt { font-size: 12px; font-weight: 300; color: var(--gray-mid); line-height: 1.7; margin-bottom: 16px; }
.blog-meta { display: flex; align-items: center; justify-content: space-between; }
.blog-date { font-size: 11px; color: var(--gray-mid); opacity: 0.6; }
.blog-read { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); border-bottom: 1px solid var(--border); padding-bottom: 2px; transition: border-color 0.2s; }
.blog-card:hover .blog-read { border-color: var(--green); }

/* Blog featured */
.blog-featured { max-width: 1100px; margin: 0 auto 40px; display: grid; grid-template-columns: 1.5fr 1fr; gap: 0; border: 0.5px solid var(--border); text-decoration: none; transition: box-shadow 0.3s; }
.blog-featured:hover { box-shadow: 0 12px 40px rgba(27,61,47,0.1); }
.blog-featured-img { background: var(--gray-light); min-height: 320px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.blog-featured-img::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg,transparent,transparent 20px,rgba(27,61,47,0.04) 20px,rgba(27,61,47,0.04) 21px); }
.blog-featured-img-label { font-family: 'Cormorant Garamond', serif; font-size: 14px; color: var(--gray-mid); position: relative; z-index: 1; }
.blog-featured-body { padding: 40px; background: var(--white); display: flex; flex-direction: column; justify-content: center; }
.blog-featured-tag { font-family: 'Lato', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-mid); margin-bottom: 14px; }
.blog-featured-label { font-family: 'Lato', sans-serif; font-size: 9px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gray-mid); opacity: 0.6; margin-bottom: 8px; }
.blog-featured-title { font-family: 'Cormorant Garamond', serif; font-size: 28px; font-weight: 500; color: var(--dark); line-height: 1.25; margin-bottom: 14px; }
.blog-featured-excerpt { font-size: 13px; font-weight: 300; color: var(--gray-mid); line-height: 1.75; margin-bottom: 20px; }
.blog-read-featured { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); border-bottom: 1px solid var(--border); padding-bottom: 2px; display: inline-block; }
.blog-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 48px; max-width: 1100px; margin-left: auto; margin-right: auto; }
.filter-btn { font-family: 'Lato', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray-mid); background: transparent; border: 0.5px solid var(--border); padding: 8px 16px; cursor: pointer; transition: all 0.2s; }
.filter-btn:hover, .filter-btn.active { background: var(--green); color: var(--white); border-color: var(--green); }
.blog-page-section { padding: 80px 60px; background: var(--white); }
.blog-page-section .blog-grid { max-width: 1100px; gap: 24px; }

/* --- CONTACTO (index) --- */
.contacto-index { background: var(--green); padding: 90px 60px; }
.contacto-index-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; max-width: 1060px; margin: 0 auto; align-items: start; }
.contacto-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(30px,4vw,48px); font-weight: 500; color: var(--white); line-height: 1.15; margin-bottom: 16px; }
.contacto-line { width: 40px; height: 1px; background: rgba(255,255,255,0.2); margin-bottom: 24px; }
.contacto-desc { font-size: 13px; font-weight: 300; color: rgba(255,255,255,0.55); line-height: 1.85; margin-bottom: 36px; }
.contacto-info { display: flex; flex-direction: column; gap: 12px; }
.contacto-info-item { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 300; color: rgba(255,255,255,0.55); }
.c-dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,0.3); flex-shrink: 0; }
.contacto-form-dark { display: flex; flex-direction: column; gap: 14px; }
.contacto-form-dark .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contacto-form-dark .form-input { font-family: 'Lato', sans-serif; font-size: 13px; font-weight: 300; color: var(--white); background: rgba(255,255,255,0.07); border: 0.5px solid rgba(255,255,255,0.18); padding: 13px 16px; outline: none; transition: border-color 0.2s; width: 100%; }
.contacto-form-dark .form-input::placeholder { color: rgba(255,255,255,0.3); }
.contacto-form-dark .form-input:focus { border-color: rgba(255,255,255,0.45); }
.contacto-form-dark textarea.form-input { resize: none; height: 110px; }
.contacto-form-dark .form-submit { font-family: 'Lato', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); background: var(--white); border: none; padding: 14px 32px; cursor: pointer; align-self: flex-start; transition: all 0.2s; }
.contacto-form-dark .form-submit:hover { background: var(--offwhite); }

/* --- CONTACTO PAGE --- */
.contacto-section { padding: 80px 60px; background: var(--white); }
.contacto-page-inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 72px; max-width: 1100px; margin: 0 auto; align-items: start; }
.contacto-page-desc { font-size: 14px; font-weight: 300; color: #555; line-height: 1.85; margin-bottom: 40px; }
.oficinas { display: flex; flex-direction: column; gap: 24px; }
.oficina-card { padding: 24px; border: 0.5px solid var(--border); background: var(--offwhite); }
.oficina-ciudad { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 500; color: var(--green); margin-bottom: 12px; }
.oficina-info { display: flex; flex-direction: column; gap: 6px; }
.oficina-row { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; font-weight: 300; color: #555; line-height: 1.5; }
.oficina-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--green-mid); opacity: 0.5; flex-shrink: 0; margin-top: 6px; }
.form-card { background: var(--offwhite); border: 0.5px solid var(--border); padding: 48px; }
.form-title { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 500; color: var(--green); margin-bottom: 8px; }
.form-sub { font-size: 13px; font-weight: 300; color: var(--gray-mid); margin-bottom: 32px; line-height: 1.6; }
.contacto-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-label { font-family: 'Lato', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); margin-bottom: 6px; display: block; }
.form-field { display: flex; flex-direction: column; }
.form-input {
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: var(--dark);
  background: var(--white);
  border: 0.5px solid var(--border);
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
  width: 100%;
  position: relative;
}
.form-input::placeholder { color: rgba(33,33,33,0.3); }
.form-input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(27,61,47,0.1); }

/* Real-time validation states */
.form-input.valid {
  border-color: #28a745;
  background-color: rgba(40,167,69,0.02);
}
.form-input.invalid {
  border-color: #dc3545;
  background-color: rgba(220,53,69,0.02);
}
.form-input.validating {
  border-color: #ffc107;
  animation: pulse 1.5s ease-in-out infinite;
}
textarea.form-input { resize: none; height: 120px; }
.form-select { font-family: 'Lato', sans-serif; font-size: 13px; font-weight: 300; color: var(--dark); background: var(--white); border: 0.5px solid var(--border); padding: 13px 16px; outline: none; width: 100%; appearance: none; cursor: pointer; }
.form-submit {
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--green);
  border: none;
  padding: 16px 36px;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.28s, transform 0.28s var(--ease-out), box-shadow 0.28s;
  margin-top: 4px;
  position: relative;
  overflow: hidden;
}
.form-submit:hover { background: var(--green-mid); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(27,61,47,0.22); }
.form-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.form-submit.loading {
  pointer-events: none;
}
.form-submit.success {
  background: #28a745;
  animation: none;
}
.form-note { font-size: 11px; font-weight: 300; color: var(--gray-mid); margin-top: 4px; }

/* --- TOOLTIPS --- */
.tooltip-trigger {
  position: relative;
  cursor: help;
  border-bottom: 1px dotted var(--green);
}
.tooltip-content {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  z-index: 1000;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--dark);
  color: var(--white);
  text-align: center;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
  animation: tooltipFade 0.3s ease;
}
@keyframes tooltipFade {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(0);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(-10px);
  }
}
.tooltip-trigger:hover .tooltip-content {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(-10px);
}
.tooltip-content::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--dark);
}

/* --- LOADING STATES --- */
.loader {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(27,61,47,0.2);
  border-radius: 50%;
  border-top-color: var(--green);
  animation: spin 0.8s linear infinite;
}
.form-submit .loader {
  display: none;
  margin-right: 8px;
}
.form-submit.loading .loader {
  display: inline-block;
}
.form-submit.loading::after {
  content: 'Enviando...';
  margin-left: 8px;
}

/* --- SUCCESS STATES --- */
.success-icon {
  display: none;
  position: relative;
  width: 24px;
  height: 24px;
  margin-right: 8px;
}
.form-submit.success .success-icon {
  display: inline-block;
}
.success-checkmark {
  width: 24px;
  height: 24px;
  border: 2px solid #28a745;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: successPop 0.6s ease;
}
.success-checkmark::after {
  content: '✓';
  color: #28a745;
  font-weight: bold;
  font-size: 16px;
  animation: checkmark 0.5s ease 0.2s forwards;
}

.form-result {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 4px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
  display: none;
}
.form-result.visible {
  display: block;
  opacity: 1;
  transform: translateY(0);
}
.form-result.success {
  background: rgba(40,167,69,0.1);
  border-left: 3px solid #28a745;
  color: #155724;
}
.form-result.error {
  background: rgba(220,53,69,0.1);
  border-left: 3px solid #dc3545;
  color: #721c24;
}

/* Success particles animation */
.success-particle {
  position: fixed;
  pointer-events: none;
  --tx: 0px;
  --ty: 0px;
}
.success-particle.animate {
  animation: particle 1s ease-out forwards;
}
.mapa-section { padding: 0 60px 80px; background: var(--white); }
.mapa-container { max-width: 1100px; margin: 0 auto; height: 300px; border: 0.5px solid var(--border); overflow: hidden; }
.mapa-container iframe { width: 100%; height: 100%; border: 0; }

/* --- NOSOTROS PAGE --- */
.intro { background: var(--white); }
.intro-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; max-width: 1100px; margin: 0 auto; }
.intro-img { position: relative; height: 500px; }
.intro-img-box { width: 100%; height: 100%; background: var(--gray-light); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.intro-img-box::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg,transparent,transparent 20px,rgba(27,61,47,0.04) 20px,rgba(27,61,47,0.04) 21px); }
.intro-img-label { font-family: 'Cormorant Garamond', serif; font-size: 15px; color: var(--gray-mid); position: relative; z-index: 1; }
.intro-accent { position: absolute; bottom: -14px; right: -14px; width: 100px; height: 100px; border: 1px solid var(--green); opacity: 0.15; }
.intro-body { font-size: 14px; font-weight: 300; line-height: 1.9; color: #444; }
.intro-body p { margin-bottom: 20px; }
.metrics { background: var(--offwhite); padding: 64px 60px; }
.metrics-inner { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; border: 0.5px solid var(--border); max-width: 900px; margin: 0 auto; }
.metric-box { padding: 40px 36px; border-right: 0.5px solid var(--border); text-align: center; }
.metric-box:last-child { border-right: none; }
.metric-box .metric-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 48px;
  font-weight: 600;
  color: var(--green);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.metric-box .metric-label {
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-mid);
}
.equipo { background: var(--white); }
.equipo-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; max-width: 1100px; margin: 0 auto; }
.equipo-card { border: 0.5px solid var(--border); overflow: hidden; }
.equipo-photo { height: 260px; background: var(--gray-light); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.equipo-photo::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg,transparent,transparent 16px,rgba(27,61,47,0.04) 16px,rgba(27,61,47,0.04) 17px); }
.equipo-photo-label { font-family: 'Cormorant Garamond', serif; font-size: 13px; color: var(--gray-mid); position: relative; z-index: 1; }
.equipo-info { padding: 20px; }
.equipo-name { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 500; color: var(--green); margin-bottom: 4px; }
.equipo-role { font-family: 'Lato', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-mid); opacity: 0.7; margin-bottom: 10px; }
.equipo-bio { font-size: 12px; font-weight: 300; color: var(--gray-mid); line-height: 1.7; }
.diferenciadores { background: var(--offwhite); }
.dif-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); max-width: 1100px; margin: 0 auto; }
.dif-card { background: var(--white); padding: 40px 36px; }
.dif-num { font-family: 'Cormorant Garamond', serif; font-size: 40px; font-weight: 400; color: var(--green); opacity: 0.15; line-height: 1; margin-bottom: 12px; }
.dif-title { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 500; color: var(--green); margin-bottom: 12px; }
.dif-desc { font-size: 13px; font-weight: 300; color: var(--gray-mid); line-height: 1.75; }
.cta-band { background: var(--green); padding: 72px 60px; text-align: center; }
.cta-band h2 { font-size: clamp(28px,3.5vw,44px); color: var(--white); margin-bottom: 16px; }
.cta-band p { font-size: 14px; font-weight: 300; color: rgba(255,255,255,0.55); margin-bottom: 32px; }

/* --- AREA PAGES --- */
.content-inner { display: grid; grid-template-columns: 2fr 1fr; gap: 64px; max-width: 1100px; margin: 0 auto; }
.content-body { font-size: 14px; font-weight: 300; line-height: 1.9; color: #444; }
.content-body p { margin-bottom: 20px; text-align: justify; }
.content-body em { font-style: italic; color: var(--green); font-weight: 400; }
/* Large ornamental first letter (inline, one-line only) */
.content-body > p:first-of-type::first-letter,
.content-body > .content-lead:first-child::first-letter {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2em;
  font-weight: 600;
  color: var(--green);
  line-height: 0.9;
  margin-right: 2px;
  vertical-align: -3px;
}

/* --- DROP CAPS: ADVANCED STYLES --- */
.drop-cap {
  float: left;
  font-family: 'Playfair Display', serif;
  font-size: 3.5em;
  font-weight: 700;
  line-height: 0.8;
  margin: 0.1em 0.1em 0 0;
  padding: 0;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: -0.05em;
}

.drop-cap-elegant {
  font-family: 'Cormorant Garamond', serif;
  font-size: 4em;
  font-weight: 700;
  color: var(--gold);
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.drop-cap-serif {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.2em;
  font-weight: 600;
}

.drop-cap-sans {
  font-family: 'Lato', sans-serif;
  font-size: 3.2em;
  font-weight: 700;
}

.drop-cap-display {
  font-family: 'Playfair Display', serif;
  font-size: 4.2em;
  font-weight: 900;
  letter-spacing: -0.08em;
}

/* Paragraph with drop cap styling */
.text-with-dropcap {
  position: relative;
}

.text-with-dropcap::first-letter {
  float: left;
  font-family: 'Playfair Display', serif;
  font-size: 3.5em;
  font-weight: 700;
  line-height: 0.8;
  margin: 0.1em 0.1em 0 0;
  color: var(--green);
}
/* Lead paragraph — editorial feel for intro */
.content-lead { font-family: 'Cormorant Garamond', serif; font-size: 18px; font-weight: 400; line-height: 1.65; color: #2a2a2a; margin-bottom: 40px !important; padding-bottom: 32px; border-bottom: 0.5px solid var(--border); position: relative; }
.content-lead::first-letter { font-size: 2.4em !important; }
/* H2 subsection heading within content */
.content-h2 { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 500; color: var(--green); margin: 44px 0 14px; padding-left: 18px; position: relative; line-height: 1.25; letter-spacing: 0.005em; }
.content-h2::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; background: linear-gradient(to bottom, var(--gold) 0%, rgba(201,169,110,0.3) 100%); }
.content-h2:first-of-type { margin-top: 24px; }
.sidebar-card { background: var(--offwhite); border: 0.5px solid var(--border); border-top: 2px solid var(--gold); padding: 32px; }
.sidebar-title { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 500; color: var(--green); margin-bottom: 20px; }
.sidebar-list { list-style: none; }
.sidebar-list li { padding: 10px 0; border-bottom: 0.5px solid var(--border); font-size: 13px; font-weight: 300; color: var(--dark); display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; }
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list li::before { content: '—'; font-size: 11px; color: var(--gold); flex-shrink: 0; margin-top: 1px; line-height: 1.5; }
.sidebar-cta { margin-top: 24px; background: var(--green); padding: 28px; text-align: center; position: relative; overflow: hidden; }
.sidebar-cta::before { content: ''; position: absolute; top: -30px; right: -30px; width: 80px; height: 80px; border: 1px solid rgba(201,169,110,0.2); border-radius: 50%; }
.sidebar-cta p { font-size: 13px; font-weight: 300; color: rgba(255,255,255,0.6); margin-bottom: 16px; line-height: 1.7; position: relative; }
.sidebar-cta .btn-white { font-size: 11px; padding: 12px 24px; position: relative; }
.areas-nav { background: var(--offwhite); padding: 48px 60px; border-top: 0.5px solid var(--border); }
.areas-nav h3 { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 500; color: var(--green); margin-bottom: 24px; }
.areas-nav-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; max-width: 1100px; }
.area-pill { display: block; padding: 12px 16px; background: var(--white); border: 0.5px solid var(--border); border-left: 2px solid transparent; font-size: 12px; font-weight: 400; color: var(--dark); text-decoration: none; transition: all 0.28s var(--ease-out); letter-spacing: 0.03em; }
.area-pill:hover { background: var(--offwhite); color: var(--green); border-left-color: var(--gold); transform: translateX(2px); }
.area-pill.current { background: var(--green); color: var(--white); border-color: var(--green); border-left-color: var(--gold); }

/* --- FOOTER --- */
footer { background: #111; padding: 48px 60px 28px; }
.footer-top { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 48px; padding-bottom: 36px; border-bottom: 0.5px solid rgba(255,255,255,0.06); margin-bottom: 24px; }
.footer-gc { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 600; color: rgba(255,255,255,0.65); letter-spacing: 0.04em; margin-bottom: 6px; }
.footer-fn { font-family: 'Lato', sans-serif; font-size: 9px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.2); margin-bottom: 14px; }
.footer-tl { font-size: 12px; font-weight: 300; color: rgba(255,255,255,0.28); line-height: 1.7; margin-bottom: 16px; }
.footer-addresses { display: flex; flex-direction: column; gap: 8px; }
.footer-address-item { display: flex; flex-direction: column; gap: 2px; }
.footer-address-city { font-family: 'Lato', sans-serif; font-size: 9px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.2); }
.footer-address-street { font-size: 11px; font-weight: 300; color: rgba(255,255,255,0.28); line-height: 1.65; }
.footer-address-city strong { color: rgba(255,255,255,0.45); font-weight: 700; }
.footer-col-title { font-family: 'Lato', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.22); margin-bottom: 18px; }
.footer-ul { list-style: none; }
.footer-ul li { margin-bottom: 9px; }
.footer-ul a { font-size: 12px; font-weight: 300; color: rgba(255,255,255,0.38); text-decoration: none; transition: color 0.2s; }
.footer-ul a:hover { color: rgba(255,255,255,0.75); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; }
.footer-copy { font-size: 11px; color: rgba(255,255,255,0.16); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 11px; color: rgba(255,255,255,0.16); text-decoration: none; transition: color 0.2s; }
.footer-legal a:hover { color: rgba(255,255,255,0.45); }

/* --- WHATSAPP BUTTON --- */
.whatsapp-btn { position: fixed; bottom: 28px; right: 28px; z-index: 300; width: 56px; height: 56px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(0,0,0,0.18); transition: transform 0.2s, box-shadow 0.2s; text-decoration: none; }
.whatsapp-btn:hover { transform: scale(1.08); box-shadow: 0 6px 24px rgba(0,0,0,0.25); }
.whatsapp-btn svg { width: 28px; height: 28px; fill: var(--white); }

/* --- BACK TO TOP --- */
.back-to-top { position: fixed; bottom: 96px; right: 32px; z-index: 300; width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: var(--white); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.2s; box-shadow: 0 2px 12px rgba(0,0,0,0.12); }
.back-to-top.visible { opacity: 1; pointer-events: all; }
.back-to-top:hover { transform: scale(1.1); }
.back-to-top svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* --- CONTEXTUAL TYPOGRAPHY STYLES --- */

/* Hero/Landing typography */
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--dark);
}

.hero-subtitle {
  font-family: 'Lato', sans-serif;
  font-size: clamp(16px, 2vw, 24px);
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--gray-mid);
}

/* Article/Content typography */
.article-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.article-lead {
  font-family: 'Lato', sans-serif;
  font-size: clamp(14px, 1.5vw, 18px);
  font-weight: 400;
  line-height: 1.8;
  color: var(--gray-mid);
  margin-bottom: 32px;
}

/* Case/Testimonial typography */
.quote-primary {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(20px, 2.5vw, 32px);
  font-weight: 600;
  font-style: italic;
  line-height: 1.6;
  color: var(--green);
  letter-spacing: -0.01em;
}

.quote-attribution {
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-mid);
  margin-top: 12px;
}

/* Statistics/Data typography */
.stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-mid);
}

.stat-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(24px, 3vw, 48px);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--green);
  line-height: 1;
}

.stat-unit {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-mid);
}

/* Navigation typography */
.nav-item-primary {
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-item-secondary {
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.05em;
}

/* Button typography */
.button-text-primary {
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.button-text-secondary {
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* Badge/Label typography */
.badge-text {
  font-family: 'Lato', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-mid);
}

/* ============================================
   RESPONSIVE — Mobile-first breakpoints
   (Web Performance: avoid render-blocking)
   ============================================ */

@media (max-width: 1024px) {
  .servicios-grid { grid-template-columns: repeat(2,1fr); }
  .servicio-card.span2 { grid-column: auto; }
  .nosotros-inner, .intro-inner, .contacto-index-inner, .contacto-page-inner { grid-template-columns: 1fr; gap: 40px; }
  .nosotros-img, .intro-img { height: 320px; }
  .equipo-grid { grid-template-columns: repeat(2,1fr); }
  .dif-grid { grid-template-columns: 1fr; }
  .content-inner { grid-template-columns: 1fr; gap: 40px; }
  .areas-nav-grid { grid-template-columns: repeat(2,1fr); }
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured-img { min-height: 220px; }
  .blog-grid { grid-template-columns: repeat(2,1fr); }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  nav { padding: 0 24px; }
  nav { height: 80px; padding: 0 24px; }
  .nav-logo { height: 60px; }
  .nav-links { position: fixed; top: 80px; left: 0; right: 0; bottom: 0; background: var(--white); flex-direction: column; align-items: flex-start; padding: 24px; gap: 0; display: none; overflow-y: auto; border-top: 0.5px solid var(--border); }
  .nav-links.open { display: flex; }
  .nav-links > li { width: 100%; }
  .nav-links a, .nav-drop-trigger { padding: 14px 0; width: 100%; font-size: 13px; }
  .nav-dropdown { position: static; transform: none; min-width: auto; box-shadow: none; border: none; opacity: 1; pointer-events: all; padding-left: 16px; display: none; }
  .nav-links li.dropdown-open .nav-dropdown { display: block; }
  .nav-cta { margin-left: 0 !important; margin-top: 16px; text-align: center; justify-content: center; }
  .nav-toggle { display: block; }

  section { padding: 60px 24px; }
  .page-hero { padding: 110px 24px 56px; }
  .servicios-img { height: 140px; }
  .breadcrumb { padding: 12px 24px; }
  .hero-gc { font-size: 52px; }
  .hero-logo { max-width: 150px; margin-bottom: 16px; }
  .hero-content { padding: 0 20px; }
  .hero { min-height: 540px; }
  .hero-actions { flex-direction: column; align-items: center; }

  .servicios-grid { grid-template-columns: 1fr; }
  .servicio-img { height: 140px; }
  .blog-grid { grid-template-columns: 1fr; }
  .equipo-grid { grid-template-columns: 1fr; }
  .metrics-inner { grid-template-columns: 1fr; }
  .metric-box { border-right: none; border-bottom: 0.5px solid var(--border); }
  .metric-box:last-child { border-bottom: none; }
  .nosotros-metrics { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contacto-form-dark .form-row { grid-template-columns: 1fr; }
  .areas-nav { padding: 40px 24px; }
  .areas-nav-grid { grid-template-columns: 1fr; }
  .metrics { padding: 48px 24px; }
  .faq-section { padding: 60px 24px; }
  .faq-question { font-size: 17px; }
  .mapa-section { padding: 0 24px 60px; }
  .cta-band { padding: 56px 24px; }
  footer { padding: 40px 24px 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .form-card { padding: 32px 24px; }
  .blog-header { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (max-width: 480px) {
  .hero-gc { font-size: 40px; }
  .hero-logo { max-width: 130px; }
  .page-hero h1 { font-size: 32px; }
}

/* --- SCROLL REVEAL ANIMATIONS --- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}
.animate-on-scroll.animate-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered reveal for multiple elements */
.animate-on-scroll[data-stagger] {
  animation: staggerReveal 0.8s var(--ease-out) forwards;
  opacity: 0;
}
.animate-on-scroll[data-stagger].animate-visible {
  animation: none;
  opacity: 1;
}

/* Text reveal on scroll */
.animate-text-reveal {
  animation: textReveal 0.8s var(--ease-out) forwards;
  opacity: 0;
}
.animate-text-reveal.animate-visible {
  animation: none;
  opacity: 1;
}
/* Stagger delays for grid children */
.animate-on-scroll:nth-child(2) { transition-delay: 0.08s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.16s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.24s; }
.animate-on-scroll:nth-child(5) { transition-delay: 0.32s; }
.animate-on-scroll:nth-child(6) { transition-delay: 0.40s; }

/* --- METRIC BOX REFINEMENT --- */
.metric-box { transition: background 0.25s; }
.metric-box:hover { background: var(--gold-light); }
.metric-box .metric-value { background: linear-gradient(135deg, var(--green) 0%, var(--green-mid) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* --- BLOG CARD REFINEMENT --- */
.blog-card { border-top: 2px solid transparent; transition: transform 0.3s var(--ease-out), box-shadow 0.3s, border-top-color 0.3s; }
.blog-card:hover { border-top-color: var(--gold); transform: translateY(-5px); box-shadow: 0 16px 40px rgba(27,61,47,0.1); }

/* --- DOSSIER / DIFERENCIADORES --- */
.dif-card { transition: background 0.28s; border-left: 2px solid transparent; transition: all 0.28s var(--ease-out); }
.dif-card:hover { background: var(--gold-light); border-left-color: var(--gold); }
.dif-num { color: var(--gold); opacity: 0.6; }

/* --- OFICINA CARD --- */
.oficina-card { border-top: 2px solid var(--gold); transition: box-shadow 0.28s; }
.oficina-card:hover { box-shadow: 0 8px 28px rgba(27,61,47,0.08); }

/* ============================================
   ENRICHED AREA SUBPAGE — Editorial Legal Dossier
   ============================================ */

/* Enhanced page-hero with decorative monogram */
.page-hero-rich { padding: 172px 60px 80px; position: relative; }

/* Optional background image overlay for page-hero */
.page-hero-image { isolation: isolate; }
.page-hero-image .page-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; background-repeat: no-repeat; opacity: 0.42; filter: grayscale(0.2) contrast(1.05); z-index: 0; pointer-events: none; }
.page-hero-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27,61,47,0.55) 0%, rgba(27,61,47,0.72) 55%, rgba(27,61,47,0.88) 100%); z-index: 1; pointer-events: none; }
.page-hero-image .page-hero-monogram { z-index: 2; }
.page-hero-image .page-hero-inner { z-index: 3; }
.page-hero-rich .page-hero-inner { position: relative; z-index: 2; max-width: 1100px; margin: 0 auto; }
.page-hero-monogram { position: absolute; right: 6%; top: 50%; transform: translateY(-45%); font-family: 'Cormorant Garamond', serif; font-size: clamp(200px, 28vw, 380px); font-weight: 600; color: rgba(255,255,255,0.04); line-height: 0.85; letter-spacing: 0.02em; pointer-events: none; user-select: none; z-index: 1; }
.page-hero-rich h1 { font-size: clamp(42px, 6vw, 72px); font-weight: 500; line-height: 1.02; margin-bottom: 20px; }
.page-hero-rich .hero-accent { font-style: italic; color: var(--gold); font-weight: 400; position: relative; }
.page-hero-rich .page-hero-sub { font-size: 15px; max-width: 600px; margin-bottom: 40px; color: rgba(255,255,255,0.65); }
.page-hero-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: 760px; padding-top: 32px; border-top: 0.5px solid rgba(255,255,255,0.12); }
.phm-item { display: flex; flex-direction: column; gap: 4px; }
.phm-k { font-family: 'Lato', sans-serif; font-size: 9px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.35); }
.phm-v { font-family: 'Cormorant Garamond', serif; font-size: 18px; font-weight: 500; color: var(--white); letter-spacing: 0.02em; }

/* Content table of contents — horizontal anchor bar */
.content-toc { background: var(--white); border-bottom: 0.5px solid var(--border); position: sticky; top: 128px; z-index: 50; backdrop-filter: blur(10px); background: rgba(255,255,255,0.95); }
.content-toc-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 0; padding: 0 60px; overflow-x: auto; scrollbar-width: none; }
.content-toc-inner::-webkit-scrollbar { display: none; }
.content-toc-label { font-family: 'Lato', sans-serif; font-size: 9px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); padding: 18px 28px 18px 0; border-right: 0.5px solid var(--border); flex-shrink: 0; }
.toc-link { display: flex; align-items: center; gap: 10px; padding: 18px 24px; font-family: 'Lato', sans-serif; font-size: 12px; font-weight: 400; color: var(--gray-mid); text-decoration: none; letter-spacing: 0.02em; white-space: nowrap; border-bottom: 2px solid transparent; transition: color 0.25s, border-color 0.25s; flex-shrink: 0; }
.toc-link:hover, .toc-link.is-active { color: var(--green); border-bottom-color: var(--gold); }
.toc-num { font-family: 'Cormorant Garamond', serif; font-size: 13px; font-style: italic; color: var(--gold); font-weight: 500; }

/* Area section container */
.area-section { padding: 100px 60px; position: relative; }
.area-section::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 48px; height: 1px; background: var(--gold); opacity: 0.4; }
.content-main { position: relative; }

/* Content H2 with roman numeral */
.content-body .content-h2 { font-family: 'Cormorant Garamond', serif; font-size: 30px; font-weight: 500; color: var(--green); line-height: 1.2; margin: 56px 0 18px; padding-left: 0; display: flex; align-items: baseline; gap: 16px; letter-spacing: 0.005em; scroll-margin-top: 200px; }
.content-body .content-h2::before { content: none; }
.content-h2 .ch2-num { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 500; color: var(--gold); font-size: 20px; min-width: 38px; padding-right: 14px; border-right: 1px solid rgba(201,169,110,0.4); line-height: 1; flex-shrink: 0; letter-spacing: 0.05em; }
.content-h2 .ch2-text { line-height: 1.2; }
.content-h2:first-of-type { margin-top: 32px; }

/* Pull-quote */
.content-pullquote { margin: 56px -20px; padding: 44px 56px; background: linear-gradient(135deg, rgba(201,169,110,0.06) 0%, rgba(27,61,47,0.03) 100%); border-left: 2px solid var(--gold); position: relative; font-family: 'Cormorant Garamond', serif; }
.content-pullquote .pq-mark { position: absolute; top: 22px; left: 20px; width: 26px; height: 20px; color: var(--gold); opacity: 0.35; }
.content-pullquote blockquote { font-size: 22px; font-style: italic; font-weight: 400; line-height: 1.5; color: var(--green); margin: 0 0 14px; letter-spacing: 0.005em; }
.content-pullquote figcaption { font-family: 'Lato', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--green-mid); opacity: 0.65; }

/* End mark — elegant article closure */
.content-endmark { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 64px 0 0; padding-top: 8px; }
.endmark-line { display: block; width: 80px; height: 1px; background: linear-gradient(to right, transparent, var(--gold), transparent); }
.endmark-sym { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-style: italic; color: var(--gold); font-weight: 500; }

/* In-flow section divider between H2 blocks */
.content-divider { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 56px 0 40px; opacity: 0.9; }
.content-divider .cd-line { display: block; width: 60px; height: 1px; background: linear-gradient(to right, transparent, rgba(201,169,110,0.55), transparent); }
.content-divider .cd-sym { font-family: 'Cormorant Garamond', serif; font-size: 18px; font-style: italic; color: var(--gold); font-weight: 500; letter-spacing: 0.05em; }

/* Sticky sidebar */
.content-aside { position: relative; }
.sidebar-sticky { position: sticky; top: 210px; display: flex; flex-direction: column; gap: 24px; }

/* Refined sidebar card */
.sidebar-eyebrow { font-family: 'Lato', sans-serif; font-size: 9px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.sidebar-cta-eyebrow { font-family: 'Lato', sans-serif; font-size: 9px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(201,169,110,0.9); margin-bottom: 12px; }

/* Area-section tweak so its section-label feels intentional */
.area-section .section-label { font-size: 10px; margin-bottom: 18px; }
.area-section .section-line { margin-bottom: 36px; }

/* Content sections with alternating image layout */
.content-section { margin: 56px 0; position: relative; }
.content-section-inner { display: grid; grid-template-columns: 1fr 280px; gap: 48px; align-items: stretch; }
.content-section[data-section="defensa"] .content-section-inner,
.content-section[data-section="victimas"] .content-section-inner,
.content-section[data-section="extradicion"] .content-section-inner { grid-template-columns: 280px 1fr; }
.content-section[data-section="victimas"] .content-section-inner { direction: rtl; }
.content-section[data-section="victimas"] .content-section-inner > * { direction: ltr; }
.content-section-image { position: relative; height: auto; min-height: 280px; background-size: cover; background-position: center; border-radius: 2px; overflow: hidden; opacity: 0.75; transition: opacity 0.35s ease; }
.content-section-image::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(27,61,47,0.18) 0%, rgba(201,169,110,0.12) 100%); z-index: 1; }
.content-section-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(45deg, transparent 0%, rgba(201,169,110,0.08) 100%); z-index: 2; }
.content-section:hover .content-section-image { opacity: 0.88; }
.content-section-text { position: relative; }
.content-section-text p { margin-bottom: 18px; text-align: justify; }
.content-section-text p:last-child { margin-bottom: 0; }

/* Mobile adjustments */
@media (max-width: 1024px) {
  .content-inner { grid-template-columns: 1fr; }
  .sidebar-sticky { position: relative; top: 0; }
  .page-hero-meta { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .content-toc { top: 128px; }
  .content-section-inner { grid-template-columns: 1fr; gap: 32px; }
  .content-section[data-section="victimas"] .content-section-inner,
  .content-section[data-section="extradicion"] .content-section-inner { grid-template-columns: 1fr; direction: ltr; }
  .content-section[data-section="victimas"] .content-section-inner > * { direction: ltr; }
  .content-section-image { height: 240px; }
}
@media (max-width: 768px) {
  .page-hero-rich { padding: 110px 24px 56px; }
  .page-hero-monogram { font-size: 190px; right: -20px; }
  .page-hero-meta { grid-template-columns: repeat(2, 1fr); gap: 14px; padding-top: 24px; }
  .phm-v { font-size: 15px; }
  .content-toc { top: 80px; }
  .content-toc-inner { padding: 0 24px; gap: 0; }
  .content-toc-label { padding: 14px 18px 14px 0; }
  .toc-link { padding: 14px 16px; font-size: 11px; }
  .area-section { padding: 60px 24px; }
  .content-body .content-h2 { font-size: 24px; gap: 12px; }
  .content-h2 .ch2-num { font-size: 16px; min-width: 28px; padding-right: 10px; }
  .content-pullquote { margin: 40px 0; padding: 32px 28px 32px 36px; }
  .content-pullquote blockquote { font-size: 18px; }
  .content-pullquote .pq-mark { left: 14px; width: 20px; height: 16px; }
  .content-section-inner { gap: 24px; }
  .content-section-image { height: 200px; }
}

/* ============================================
   HOMEPAGE EDITORIAL ENHANCEMENTS
   ============================================ */

/* Hero: subtle GC monogram behind the logo */
.hero-monogram {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -52%);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(320px, 46vw, 640px);
  color: rgba(255,255,255,0.035);
  line-height: 0.85;
  letter-spacing: 0.04em;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  animation: fadeUp 1.8s 0.1s ease both;
}

/* Section chapter markers — Roman numeral + eyebrow */
.section-chapter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 10px;
}
.section-chapter .sc-num {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 18px;
  color: var(--gold);
  letter-spacing: 0.04em;
}
.section-chapter .sc-rule {
  width: 28px;
  height: 1px;
  background: var(--gold);
  opacity: 0.45;
}
.section-chapter.chapter-left {
  justify-content: flex-start;
}

/* Manifesto section — between hero and servicios */
.index-manifesto {
  padding: 120px 60px;
  background: var(--offwhite);
  position: relative;
  overflow: hidden;
}
.index-manifesto::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, transparent, var(--gold));
}
.manifesto-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.manifesto-quote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.45;
  color: var(--green);
  margin: 24px auto 28px;
  max-width: 760px;
  position: relative;
  letter-spacing: 0.003em;
}
.manifesto-quote::before,
.manifesto-quote::after {
  font-family: 'Cormorant Garamond', serif;
  color: var(--gold);
  opacity: 0.45;
  font-size: 1.2em;
  line-height: 1;
  font-style: normal;
}
.manifesto-quote::before { content: '\201C'; margin-right: 6px; vertical-align: -0.1em; }
.manifesto-quote::after { content: '\201D'; margin-left: 6px; vertical-align: -0.1em; }
.manifesto-attr {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: 'Lato', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green-mid);
  opacity: 0.7;
}
.manifesto-attr::before,
.manifesto-attr::after {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

/* Index end-mark — before contacto */
.index-endmark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 64px 40px 48px;
  background: var(--white);
}
.index-endmark .endmark-line {
  display: block;
  width: 120px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}
.index-endmark .endmark-sym {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
}

/* Responsive homepage tweaks */
@media (max-width: 768px) {
  .hero-monogram { font-size: 280px; }
  .index-manifesto { padding: 72px 24px; }
  .manifesto-quote { font-size: 22px; }
  .index-endmark { padding: 48px 24px 32px; }
}

/* ============================================
   ALTERNATING BLOCK LAYOUT (Z-Pattern)
   Para áreas de práctica con múltiples subsecciones
   ============================================ */

.content-blocks {
  margin: 80px 0;
  display: flex;
  flex-direction: column;
  gap: 120px;
}

.content-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  animation: fadeUp 0.8s ease-out;
}

.content-block.reverse {
  direction: rtl;
}
.content-block.reverse > * {
  direction: ltr;
}

.content-block-text {
  padding: 40px 0;
}

.content-block-text h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 500;
  color: var(--green);
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: 0.005em;
}

.content-block-text p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--dark);
  margin-bottom: 16px;
}

.content-block-text p:last-child {
  margin-bottom: 0;
}

.content-block-visual {
  position: relative;
  min-height: 400px;
  background: linear-gradient(135deg, rgba(201,169,110,0.08) 0%, rgba(27,61,47,0.04) 100%);
  border-left: 3px solid var(--gold);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--gray-mid);
  text-align: center;
}

.content-block.reverse .content-block-visual {
  border-left: none;
  border-right: 3px solid var(--gold);
}

/* Decorative accent line */
.content-block::before {
  content: '';
  position: absolute;
  width: 64px;
  height: 1px;
  background: var(--gold);
  opacity: 0.4;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
}

.content-block:first-child::before {
  display: none;
}

/* Mobile: stack vertically */
@media (max-width: 1024px) {
  .content-block {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .content-block.reverse {
    direction: ltr;
  }

  .content-block-visual {
    border-left: 3px solid var(--gold) !important;
    border-right: none;
    min-height: 300px;
  }
}

/* ============================================
   COOKIE CONSENT BANNER
   ============================================ */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--green);
  padding: 24px 60px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  animation: slideUp 0.5s ease-out;
  backdrop-filter: blur(10px);
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.cookie-banner.hidden { display: none; }
.cookie-text {
  flex: 1;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
}
.cookie-text a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s;
}
.cookie-text a:hover { color: rgba(201,169,110,0.8); text-decoration: underline; }
.cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.cookie-btn {
  padding: 10px 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.cookie-btn.accept {
  background: var(--gold);
  color: var(--green);
}
.cookie-btn.accept:hover { background: rgba(201,169,110,0.9); }
.cookie-btn.decline {
  background: transparent;
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.3);
}
.cookie-btn.decline:hover { border-color: rgba(255,255,255,0.6); }

@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 20px 24px;
    gap: 16px;
  }
  .cookie-actions { justify-content: space-between; }
  .cookie-btn { flex: 1; }
}

/* --- FORM RESULT MESSAGES --- */
.form-result { display: none; padding: 14px 18px; font-size: 13px; font-weight: 400; margin-top: 8px; border-left: 3px solid; }
.form-result.success { background: rgba(27,61,47,0.06); border-color: var(--green); color: var(--green); }
.form-result.error { background: rgba(192,57,43,0.06); border-color: #c0392b; color: #c0392b; }
.form-result.visible { display: block; }
.footer-email { display: block; font-size: 11px; font-weight: 300; color: rgba(255,255,255,0.38); text-decoration: none; margin-top: 6px; transition: color 0.2s; }
.footer-email:hover { color: rgba(255,255,255,0.75); }
