/* ============================================================
   Dechamps Abogados — sistema de diseño 2026
   Stack: estático HTML + Caddy + Cloudflare
   ============================================================ */

:root {
  /* Brand */
  --brand-navy: #254959;
  --brand-navy-dark: #1A343F;
  --brand-navy-light: #355D70;
  --brand-gold: #B69465;       /* accento cálido elegante (lawyerly) */
  --brand-gold-dark: #92744A;

  /* Neutrals */
  --text-primary: #14181F;
  --text-body: #2D3340;
  --text-muted: #5D6577;
  --text-soft: #8993A6;
  --bg-page: #FDFCF8;          /* off-white cálido (clásico despacho) */
  --bg-surface: #FFFFFF;
  --bg-tint: #F5F1E8;          /* tint cálido para hover/secciones */
  --bg-navy-tint: #F4F6FA;     /* tint azul muy claro */
  --border-soft: #E6E2D6;
  --border-strong: #C9C3B0;

  /* Type */
  --font-display: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Sizing */
  --container-max: 1240px;
  --container-narrow: 880px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Effects */
  --shadow-sm: 0 1px 3px rgba(20, 24, 31, 0.06), 0 1px 2px rgba(20, 24, 31, 0.04);
  --shadow-md: 0 4px 12px rgba(20, 24, 31, 0.08), 0 2px 4px rgba(20, 24, 31, 0.04);
  --shadow-lg: 0 12px 32px rgba(20, 24, 31, 0.12), 0 4px 8px rgba(20, 24, 31, 0.06);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --transition: 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   Reset
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-body);
  background: var(--bg-page);
  overflow-x: hidden;
}

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

a {
  color: var(--brand-navy);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: var(--brand-gold); }

a:focus-visible {
  outline: 2px solid var(--brand-gold);
  outline-offset: 3px;
  border-radius: 2px;
}

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

ul, ol {
  list-style: none;
}

::selection {
  background: var(--brand-navy);
  color: #fff;
}

/* ============================================================
   Layout helpers
   ============================================================ */

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

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

.section {
  padding: var(--space-xl) 0;
}

.section-lg { padding: var(--space-2xl) 0; }

.section-tinted {
  background: var(--bg-tint);
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 999;
  padding: 0.75rem 1.5rem;
  background: var(--brand-navy);
  color: #fff;
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  transition: top var(--transition);
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

/* ============================================================
   Typography
   ============================================================ */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

h4 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1.1rem;
  color: var(--text-body);
}

p:last-child { margin-bottom: 0; }

.lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-body);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-gold-dark);
  margin-bottom: 1rem;
}

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

.divider {
  display: block;
  width: 60px;
  height: 2px;
  background: var(--brand-gold);
  margin: 0 0 1.5rem;
  border: none;
}

.divider-center {
  margin-left: auto;
  margin-right: auto;
}

.text-center { text-align: center; }

/* ============================================================
   Nav (fixed top)
   ============================================================ */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(253, 252, 248, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
  transition: box-shadow var(--transition);
}

.site-nav.scrolled {
  box-shadow: var(--shadow-sm);
}

.site-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--brand-navy);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand:hover { color: var(--brand-navy); opacity: 0.85; }

.brand-logo {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

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

.brand-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--brand-navy);
}

.brand-tagline {
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-links a {
  color: var(--text-primary);
  padding: 0.5rem 0;
  position: relative;
}

.nav-links a:hover { color: var(--brand-navy); }

.nav-links a.active::after,
.nav-links a:hover::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand-gold);
}

.nav-areas {
  position: relative;
}

.nav-areas-trigger {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--text-primary);
  font-size: 0.92rem;
  font-weight: 500;
  font-family: inherit;
  padding: 0.5rem 0;
}

.nav-areas-trigger:hover { color: var(--brand-navy); }

.nav-areas:hover .nav-areas-dropdown,
.nav-areas:focus-within .nav-areas-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-areas-dropdown {
  position: absolute;
  top: 100%;
  left: -1rem;
  min-width: 260px;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all var(--transition);
  margin-top: 0.5rem;
}

.nav-areas-dropdown a {
  display: block;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-primary);
}

.nav-areas-dropdown a:hover {
  background: var(--bg-tint);
  color: var(--brand-navy);
}

.nav-areas-dropdown a::after { display: none; }

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  border-left: 1px solid var(--border-soft);
  padding-left: 1.2rem;
}

.lang-btn {
  padding: 0.3rem 0.55rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: inherit;
  transition: all var(--transition);
}

.lang-btn.active {
  background: var(--brand-navy);
  color: #fff;
}

.lang-btn.disabled {
  cursor: not-allowed;
  opacity: 0.45;
  position: relative;
}

.lang-btn.disabled:hover::before {
  content: 'Próximamente';
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-navy);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  z-index: 10;
}

.nav-toggle {
  display: none;
  width: 28px;
  height: 28px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--brand-navy);
  width: 100%;
  transition: all var(--transition);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 7rem 0 5rem;
  overflow: hidden;
  color: #fff;
  background: var(--brand-navy);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(37, 73, 89, 0.94) 0%,
    rgba(37, 73, 89, 0.80) 50%,
    rgba(37, 73, 89, 0.55) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.hero-content {
  max-width: 740px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: italic;
  color: #E8D9BC;
}

.hero-lead {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.65;
  max-width: 600px;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.hero .eyebrow {
  color: var(--brand-gold);
}

.hero .divider {
  background: var(--brand-gold);
}

/* Hero compacto para subpáginas */
.hero-compact {
  min-height: 48vh;
  padding: 8rem 0 4rem;
}

.hero-compact h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  border: 1.5px solid transparent;
}

.btn-primary {
  background: var(--brand-gold);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-gold-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--brand-navy);
  border-color: var(--brand-navy);
}

.btn-outline:hover {
  background: var(--brand-navy);
  color: #fff;
}

.btn-text {
  background: transparent;
  color: var(--brand-navy);
  padding: 0;
  font-weight: 600;
}

.btn-text::after {
  content: '→';
  margin-left: 0.4rem;
  transition: transform var(--transition);
}

.btn-text:hover { color: var(--brand-gold-dark); }
.btn-text:hover::after { transform: translateX(4px); }

/* ============================================================
   Practice areas grid
   ============================================================ */

.areas-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
@media (min-width: 640px) {
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .areas-grid { grid-template-columns: repeat(3, 1fr); }
}

.area-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.area-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-gold);
  color: inherit;
}

.area-card-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-gold-dark);
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.area-card h3 {
  font-family: var(--font-display);
  color: var(--brand-navy);
  margin-bottom: 0.75rem;
  font-size: 1.4rem;
}

.area-card p {
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1.25rem;
}

.area-card .btn-text {
  font-size: 0.85rem;
  align-self: flex-start;
}

/* ============================================================
   Team
   ============================================================ */

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

@media (min-width: 768px) {
  .team-grid { grid-template-columns: 1fr 1fr; }
  .team-card.featured { grid-column: 1 / -1; }
}

.team-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
}

.team-card.featured {
  border: 2px solid var(--brand-navy);
  position: relative;
}

.team-card.featured::before {
  content: 'Socio Principal';
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--brand-navy);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 2px;
  z-index: 2;
}

.team-card-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.team-card.featured .team-card-inner {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .team-card.featured .team-card-inner {
    grid-template-columns: 360px 1fr;
  }
}

.team-card-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-navy-tint);
}

.team-card.featured .team-card-photo {
  aspect-ratio: auto;
  min-height: 100%;
}

.team-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--transition);
}

.team-card:hover .team-card-photo img {
  transform: scale(1.02);
}

.team-card-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-light) 100%);
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 500;
}

.team-card-body {
  padding: 2rem 1.75rem;
}

.team-card.featured .team-card-body {
  padding: 2.5rem;
}

.team-card h3 {
  font-family: var(--font-display);
  color: var(--brand-navy);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.team-card.featured h3 {
  font-size: clamp(1.6rem, 2.5vw, 2rem);
}

.team-card-role {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-gold-dark);
  margin-bottom: 1.25rem;
  display: block;
}

.team-card-bio {
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.team-card-meta {
  margin-top: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-soft);
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.team-card-meta strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ============================================================
   Article (subpage body)
   ============================================================ */

.prose {
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.prose h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--brand-navy);
  font-size: 1.8rem;
}

.prose h2:first-child { margin-top: 0; }

.prose h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  font-size: 1.3rem;
}

.prose p {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text-body);
  margin-bottom: 1.2rem;
}

.prose ul, .prose ol {
  margin-bottom: 1.25rem;
  padding-left: 0;
}

.prose ul li, .prose ol li {
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  background: var(--brand-gold);
  border-radius: 50%;
}

.prose ol { counter-reset: prose-counter; }
.prose ol li { counter-increment: prose-counter; }
.prose ol li::before {
  content: counter(prose-counter) ".";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand-gold-dark);
  font-weight: 600;
  font-family: var(--font-display);
}

.prose strong { color: var(--text-primary); font-weight: 600; }

.prose blockquote {
  border-left: 3px solid var(--brand-gold);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 2rem 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text-primary);
}

/* CTA block */

.cta-block {
  background: var(--brand-navy);
  color: #fff;
  padding: 3.5rem 2rem;
  border-radius: var(--radius-md);
  text-align: center;
  margin: 3rem 0;
}

.cta-block h3 {
  color: #fff;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 1rem;
}

.cta-block p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 540px;
  margin: 0 auto 1.75rem;
}

/* Contact form */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: 2.5rem;
}

@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1.1fr 1fr; }
}

.contact-info {
  background: var(--bg-tint);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  border-left: 3px solid var(--brand-gold);
}

.contact-info h3 {
  color: var(--brand-navy);
  margin-bottom: 1.5rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-info-item:last-child { margin-bottom: 0; }

.contact-info-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--brand-gold-dark);
  margin-top: 2px;
}

.contact-info-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  display: block;
}

.contact-info-value {
  font-size: 1.02rem;
  color: var(--text-primary);
  line-height: 1.5;
}

.contact-info-value a { color: var(--brand-navy); }
.contact-info-value a:hover { color: var(--brand-gold-dark); }

.contact-form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 2.5rem;
}

.contact-form-card h3 {
  font-family: var(--font-display);
  color: var(--brand-navy);
  margin-bottom: 0.5rem;
}

.contact-form-card .lead {
  font-size: 0.98rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

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

.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--bg-page);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--brand-navy);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 73, 89, 0.12);
}

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

/* ============================================================
   Pull (image + text side by side)
   ============================================================ */

.pull-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .pull-section { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .pull-section.reverse > :first-child { order: 2; }
}

.pull-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
}

.pull-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background: var(--brand-navy-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

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

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
  }
}

.footer-brand-block {
  max-width: 320px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
  color: #fff;
}

.footer-brand-logo {
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 50%;
  padding: 6px;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
}

.footer-brand-tagline {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-gold);
  margin-top: 2px;
  font-family: var(--font-body);
}

.footer-desc {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.65;
  margin-top: 0.75rem;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-gold);
  margin-bottom: 1.25rem;
}

.footer-col ul li {
  margin-bottom: 0.65rem;
}

.footer-col a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
}

.footer-col a:hover { color: #fff; }

.footer-contact {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.95);
  border-bottom: 1px dotted rgba(255, 255, 255, 0.3);
}
.footer-contact a:hover { color: var(--brand-gold); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.78rem;
}

.footer-bottom-links a:hover { color: #fff; }

/* ============================================================
   Responsive: mobile menu
   ============================================================ */

@media (max-width: 1180px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg-page);
    flex-direction: column;
    gap: 0;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-soft);
    box-shadow: var(--shadow-md);
    transform: translateY(-110%);
    transition: transform var(--transition);
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }

  .nav-links.open { transform: translateY(0); }

  .nav-links a,
  .nav-areas-trigger {
    width: 100%;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border-soft);
    font-size: 1rem;
  }

  .nav-areas-trigger { justify-content: space-between; }

  .nav-areas-dropdown {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
    border-radius: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin: 0;
    background: transparent;
    display: none;
  }

  .nav-areas.open .nav-areas-dropdown { display: block; }

  .nav-areas-dropdown a {
    border-bottom: 1px dashed var(--border-soft);
  }

  .lang-switcher {
    border-left: none;
    border-top: 1px solid var(--border-soft);
    padding: 1rem 0 0;
    margin-top: 0.5rem;
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .section { padding: 3rem 0; }
  .section-lg { padding: 4rem 0; }
  .hero { padding: 6rem 0 4rem; min-height: 80vh; }
  .hero-compact { padding: 6rem 0 3rem; min-height: auto; }
  .contact-info, .contact-form-card { padding: 1.75rem; }
  .cta-block { padding: 2.5rem 1.5rem; }
  .team-card-body { padding: 1.75rem; }
}

/* ============================================================
   Client logo tiles (grayscale)
   ============================================================ */

.client-tile {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: all var(--transition);
}

.client-tile:hover {
  border-color: var(--brand-gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.client-tile-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0 0 0.4rem;
  letter-spacing: 0.01em;
  filter: grayscale(100%);
  transition: color var(--transition);
}

.client-tile:hover .client-tile-name {
  color: var(--brand-navy);
}

.client-tile-meta {
  font-size: 0.78rem;
  color: var(--text-soft);
  margin: 0;
  line-height: 1.5;
}

/* ============================================================
   Area card icon
   ============================================================ */

.area-card-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 1rem;
  color: var(--brand-gold-dark);
  transition: color var(--transition);
}

.area-card:hover .area-card-icon {
  color: var(--brand-navy);
}

/* ============================================================
   Para quien / casos / como trabajamos
   ============================================================ */

.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.audience-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-top: 3px solid var(--brand-gold);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.25rem;
}

.audience-card h4 {
  font-family: var(--font-display);
  color: var(--brand-navy);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.audience-card p {
  font-size: 0.92rem;
  color: var(--text-body);
  margin: 0;
  line-height: 1.6;
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 920px;
  margin: 2rem auto 0;
}

@media (min-width: 700px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

.process-step h4 {
  font-family: var(--font-display);
  color: var(--brand-navy);
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  line-height: 1.25;
}

.process-step-num {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--brand-navy);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.process-step p {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.65;
  margin: 0;
}

.case-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--brand-navy);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 700px) {
  .case-card { grid-template-columns: 200px 1fr; gap: 2rem; }
}

.case-card-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-gold-dark);
  margin-bottom: 0.25rem;
}

.case-card-meta {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.case-card-body p {
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
  line-height: 1.65;
}

.case-card-body p:last-child { margin-bottom: 0; }

.case-card-body strong { color: var(--brand-navy); font-weight: 600; }

/* ============================================================
   Print
   ============================================================ */

@media print {
  .site-nav, .site-footer, .skip-link, .nav-toggle, .lang-switcher,
  .hero-cta, .cta-block { display: none !important; }
  .hero { background: none; color: #000; padding: 1rem 0; min-height: auto; }
  .hero-bg, .hero-bg::after { display: none; }
  .hero h1, .hero-lead { color: #000; }
  body { background: #fff; }
  a { color: #000; text-decoration: underline; }
}

/* ============================================================
   Reduced motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* v2 (2026-10-01): selector de idioma con nombres completos */
.lang-btn { white-space: nowrap; letter-spacing: 0.02em; }
.client-tile-name { overflow-wrap: anywhere; }
@media (min-width: 1181px) and (max-width: 1380px) {
  .nav-links { gap: 1.15rem; font-size: 0.86rem; }
  .lang-switcher { padding-left: 0.8rem; gap: 0.1rem; }
  .lang-btn { padding: 0.25rem 0.4rem; font-size: 0.7rem; }
}
