/* ============================================================
   Lauter Abogados — styles.css  v20260612
   Light theme · Inter · Navy + Wine Red
   ============================================================ */

/* === VARIABLES === */
:root {
  --bg:          #ffffff;
  --bg-2:        #f5f7fa;
  --bg-3:        #eef1f6;
  --ink:         #1C2B52;
  --ink-2:       #374151;
  --ink-3:       #6b7280;
  --accent:      #8B2635;
  --accent-h:    #a02c3e;
  --accent-soft: rgba(139, 38, 53, 0.08);
  --navy:        #2C3E7A;
  --navy-soft:   rgba(44, 62, 122, 0.08);
  --line:        #e5e7eb;
  --line-2:      #d1d5db;
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg:   0 10px 40px rgba(0,0,0,0.1), 0 4px 8px rgba(0,0,0,0.06);
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h:       126px;
  --container:   1180px;
  --radius:      12px;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: 'Inter', sans-serif; font-size: 1rem; line-height: 1.65; background: var(--bg); color: var(--ink-2); overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
address { font-style: normal; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* Defensive: .reveal + data-split must never be invisible */
.reveal[data-split] { opacity: 1; transform: none; }

/* === CONTAINER === */
.container { width: min(var(--container), 100% - 3rem); margin-inline: auto; }

/* === SECTION SHARED === */
.section-header { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-header--center { text-align: center; margin-inline: auto; max-width: 720px; }

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.875rem;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8125rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 50px;
  transition: background 0.22s var(--ease-out), color 0.22s, transform 0.18s var(--ease-out), box-shadow 0.22s;
  white-space: nowrap;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 12px rgba(139,38,53,0.25);
}
.btn-primary:hover {
  background: var(--accent-h);
  box-shadow: 0 4px 20px rgba(139,38,53,0.35);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.25);
  border-color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  padding: 0.6875rem 1.5rem;
  font-size: 0.875rem;
}
.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

/* === SPLASH === */
.splash {
  position: fixed; inset: 0; z-index: 9999;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s var(--ease-out), visibility 0.5s;
  animation: splashSafety 0.01s 4.5s forwards;
}
@keyframes splashSafety { to { opacity: 0; pointer-events: none; visibility: hidden; } }
.splash.is-out { opacity: 0; pointer-events: none; visibility: hidden; }

.splash-inner { display: flex; flex-direction: column; align-items: center; }
.splash-logo {
  height: 80px; width: auto;
  object-fit: contain;
  animation: splashPop 0.7s var(--ease-out) 0.15s both;
}
@keyframes splashPop { from { opacity: 0; transform: scale(0.7); } to { opacity: 1; transform: scale(1); } }

/* === NAV === */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: clamp(2rem, 5vw, 4rem);
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.nav.is-scrolled {
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.nav-brand { display: flex; align-items: center; gap: 0.35rem; flex-shrink: 0; margin-left: -0.5rem; }
.nav-logo-svg { height: 48px; width: auto; flex-shrink: 0; object-fit: contain; }
/* Logo nav: PNG 1920x1920 con margen — zoom centrado en el contenido */
.nav-logo-icon {
  height: 70px;
  width: auto;
  flex-shrink: 0;
}
.nav-logo-img {
  height: 85px;
  width: auto;
  flex-shrink: 0;
  margin-top: 8px;
}
.nav-logo-full { height: 100px; width: auto; flex-shrink: 0; }

.nav-links { display: flex; align-items: center; gap: clamp(1.25rem, 2.5vw, 2rem); }

/* ── Dropdown ── */
.nav-dropdown { position: relative; }
.nav-dropdown-btn {
  display: flex; align-items: center; gap: 0.3rem;
  background: none; border: none; cursor: pointer;
  font-size: 0.9375rem; font-weight: 500; color: var(--ink-2);
  font-family: inherit; padding: 0;
  transition: color 0.2s;
}
.nav-dropdown-btn:hover { color: var(--accent); }
.nav-dropdown-btn svg { transition: transform 0.2s; }
.nav-dropdown.is-open .nav-dropdown-btn svg { transform: rotate(180deg); }
.nav-dropdown-menu {
  display: none; position: absolute; top: calc(100% + 0.75rem); left: 0;
  min-width: 220px; background: #fff; border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1); list-style: none;
  padding: 0.5rem 0; z-index: 100;
}
.nav-dropdown.is-open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu li a {
  display: block; padding: 0.65rem 1.25rem;
  font-size: 0.9rem; color: var(--ink-2); font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.nav-dropdown-menu li a:hover { background: var(--bg-2); color: var(--accent); }
.nav-dropdown-menu li a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.nav-links a {
  font-size: 0.9375rem; font-weight: 500; color: var(--ink-2);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }

.nav-cta-link {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 0.5625rem 1.375rem;
  border-radius: 50px;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  transition: background 0.2s, transform 0.18s, box-shadow 0.2s !important;
  box-shadow: 0 2px 10px rgba(139,38,53,0.22);
}
.nav-cta-link:hover {
  background: var(--accent-h) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(139,38,53,0.32) !important;
}

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.nav-toggle-bar {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.nav.menu-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.menu-open .nav-toggle-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav.menu-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(12px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
  opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.mobile-menu.is-open { opacity: 1; pointer-events: auto; visibility: visible; }
.mobile-menu-links { display: flex; flex-direction: column; align-items: flex-start; gap: 0.25rem; padding-left: 1.5rem; }
.mobile-link { font-size: clamp(1.5rem, 5vw, 2.25rem); font-weight: 700; color: var(--ink); padding: 0.5rem 1rem; transition: color 0.2s; text-align: left; }
.mobile-link:hover { color: var(--accent); }
.mobile-link[aria-current="page"] { color: var(--accent); }
.mobile-menu-group-title { font-size: clamp(1.5rem, 5vw, 2.25rem); font-weight: 700; color: var(--ink); padding: 0.5rem 1rem 0; margin: 0; }
.mobile-link--sub { font-size: clamp(1.0625rem, 3.4vw, 1.3125rem); font-weight: 500; padding: 0.375rem 1rem 0.375rem 2rem; }
.mobile-link--subsub { font-size: clamp(0.875rem, 2.8vw, 1rem); font-weight: 500; color: var(--ink-3); padding: 0.25rem 1rem 0.25rem 3.25rem; }
.mobile-link--subsub:hover { color: var(--accent); }
.mobile-link-cta {
  margin-top: 1rem;
  background: var(--accent); color: #fff !important;
  padding: 0.875rem 2.25rem; border-radius: 50px;
  font-size: 1rem !important; font-weight: 600 !important;
}
.mobile-menu-contact { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.mobile-menu-contact a { font-size: 0.875rem; color: var(--ink-3); transition: color 0.2s; }
.mobile-menu-contact a:hover { color: var(--ink); }

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(28,43,82,0.62) 0%, rgba(28,43,82,0.42) 50%, rgba(28,43,82,0.25) 100%);
}

.hero-inner {
  position: relative; z-index: 1;
  padding-top: calc(var(--nav-h) + 3rem);
  padding-bottom: 5rem;
  max-width: 780px;
}

.hero-eyebrow {
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.7); margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 700; line-height: 1.15;
  color: #fff;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
.ht-bold  { font-weight: 700; color: #fff; }
.ht-light { font-weight: 300; color: #fff; white-space: nowrap; }
.ht-wrap { white-space: normal; }

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  font-weight: 400; color: rgba(255,255,255,0.85);
  max-width: 540px; margin-bottom: 2.5rem; line-height: 1.7;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* === WHY SECTION === */
.why { background: var(--bg-2); padding-block: clamp(4.5rem, 9vw, 7rem); border-top: 1px solid var(--line); }

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

.why-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: var(--radius);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out), border-color 0.3s;
}
.why-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--line-2);
}

.why-icon {
  width: 48px; height: 48px;
  background: var(--accent-soft);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--accent);
}
.why-icon svg { width: 22px; height: 22px; }

.why-card h3 {
  font-size: 1.125rem; font-weight: 700;
  color: var(--ink); margin-bottom: 0.625rem;
}
.why-card p { font-size: 0.9375rem; color: var(--ink-3); line-height: 1.7; }

/* === SERVICES === */
.services { background: var(--bg); padding-block: clamp(4.5rem, 9vw, 7rem); border-top: 1px solid var(--line); }

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

/* Servicios ocultos hasta "Conocer más" */
.service-card--hidden {
  display: none;
}
.service-card--hidden.is-revealed {
  display: block;
  animation: fadeSlideIn 0.45s cubic-bezier(0.22,1,0.36,1) both;
}
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

.services-more { display: flex; justify-content: center; margin-top: 2.5rem; }
.btn-conocer-mas {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent; color: var(--accent);
  border: 2px solid var(--accent); padding: 0.75rem 2rem;
  border-radius: 50px; font-size: 0.9375rem; font-weight: 600;
  cursor: pointer; transition: background 0.2s, color 0.2s;
}
.btn-conocer-mas:hover { background: var(--accent); color: #fff; }
.btn-conocer-mas svg { transition: transform 0.3s; }
.btn-conocer-mas.is-open svg { transform: rotate(180deg); }

.service-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: box-shadow 0.3s, transform 0.3s var(--ease-out);
}
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.service-img-wrap { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.service-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.service-card:hover .service-img { transform: scale(1.05); }
.service-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(28,43,82,0.75) 100%);
}
.service-badge {
  position: absolute; top: 1rem; left: 1rem;
  font-size: 0.625rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff; background: var(--accent);
  padding: 0.35rem 0.75rem; border-radius: 50px;
}

.service-body { padding: clamp(1.5rem, 3vw, 2rem); }
.service-body h3 { font-size: 1.375rem; font-weight: 700; color: var(--ink); margin-bottom: 0.625rem; }
.service-desc { font-size: 0.9375rem; color: var(--ink-3); line-height: 1.7; margin-bottom: 1.5rem; }
.service-list { margin-bottom: 2rem; }
.service-list li {
  font-size: 0.9rem; color: var(--ink-2);
  padding: 0.5rem 0; border-bottom: 1px solid var(--line);
  padding-left: 1.25rem; position: relative;
}
.service-list li::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.service-list li:last-child { border-bottom: none; }

/* === PROCESS / TIMELINE === */
.process { background: var(--bg-2); padding-block: clamp(4.5rem, 9vw, 7rem); border-top: 1px solid var(--line); }

.timeline { max-width: 860px; margin-inline: auto; display: flex; flex-direction: column; gap: 0; }

.timeline-item {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  align-items: flex-start;
  gap: 0;
}

/* Right-aligned content (steps 1, 3) */
.timeline-item--right .timeline-content { text-align: left; }
.timeline-item--right .timeline-spacer { text-align: right; padding-right: 2rem; padding-top: 0.25rem; }

/* Left-aligned content (steps 2, 4) */
.timeline-item--left .timeline-content { grid-column: 1; grid-row: 1; text-align: right; }
.timeline-item--left .timeline-center { grid-column: 2; grid-row: 1; }
.timeline-item--left .timeline-spacer { grid-column: 3; grid-row: 1; text-align: left; padding-left: 2rem; padding-top: 0.25rem; }

.timeline-center {
  display: flex; flex-direction: column; align-items: center;
  flex-shrink: 0;
}

.timeline-node {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 700;
  flex-shrink: 0; position: relative; z-index: 1;
  box-shadow: 0 4px 14px rgba(28,43,82,0.25);
  transition: background 0.2s, transform 0.2s;
}

.timeline-item:hover .timeline-node {
  background: var(--accent);
  transform: scale(1.08);
}

.timeline-line {
  width: 2px;
  flex: 1; min-height: 80px;
  background: linear-gradient(to bottom, var(--line-2), var(--line));
  margin-block: 4px;
}

.timeline-item--last .timeline-center { justify-content: flex-start; }

.timeline-content {
  padding: 0.25rem 0 2.5rem;
}

.timeline-item--right .timeline-content { padding-left: 2rem; }
.timeline-item--left .timeline-content { padding-right: 2rem; }

.timeline-content h3 {
  font-size: 1.125rem; font-weight: 700;
  color: var(--ink); margin-bottom: 0.5rem; line-height: 1.3;
}
.timeline-content p { font-size: 0.9375rem; color: var(--ink-3); line-height: 1.65; }

.timeline-spacer {
  padding-top: 0.25rem;
  padding-bottom: 2.5rem;
}
.timeline-detail {
  font-size: 0.875rem; color: var(--ink-3);
  font-style: italic; line-height: 1.5;
  opacity: 0.7;
}

/* === STATS === */
.stats {
  background: linear-gradient(135deg, #243463 0%, var(--navy) 50%, #344c8c 100%);
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  position: relative; overflow: hidden;
}
.stats::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 50% 100% at 100% 50%, rgba(74,114,196,0.15) 0%, transparent 60%);
}

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

.stat {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 1.5rem 1rem;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.stat:last-child { border-right: none; }

.stat-num {
  font-size: clamp(2.4rem, 4.5vw, 3.5rem);
  font-weight: 700; line-height: 1; color: #fff;
  margin-bottom: 0.5rem;
}
.stat-label {
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

/* === OFFICES === */
.offices { background: var(--bg); padding-block: clamp(4.5rem, 9vw, 7rem); border-top: 1px solid var(--line); }

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

.office-card {
  background: #fff; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: box-shadow 0.3s, transform 0.3s var(--ease-out);
}
.office-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

.office-img-wrap { position: relative; aspect-ratio: 16/8; overflow: hidden; }
.office-map-wrap { position: relative; aspect-ratio: 16/8; overflow: hidden; }
.office-map-frame { width: 100%; height: 100%; border: none; display: block; }

.office-leaflet-map {
  height: 220px;
  width: 100%;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  z-index: 0;
}
/* Leaflet attribution small */
.office-leaflet-map .leaflet-control-attribution { font-size: 9px !important; }

.office-map-banner {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.875rem; position: relative; overflow: hidden;
  aspect-ratio: 16/8; text-decoration: none;
  transition: opacity 0.2s;
}
.office-map-banner:hover { opacity: 0.92; }
.office-map-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #1C2B52 0%, #2C3E7A 50%, #1a3a6b 100%);
}
.office-map-bg::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 30% 50%, rgba(139,38,53,0.15) 0%, transparent 60%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.office-map-pin {
  position: relative; z-index: 1;
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.3);
}
.office-map-pin svg { width: 28px; height: 28px; }
.office-map-cta {
  position: relative; z-index: 1;
  font-size: 0.875rem; font-weight: 600; letter-spacing: 0.04em;
  color: #fff;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.35);
  padding: 0.5rem 1.25rem; border-radius: 50px;
  transition: background 0.2s, border-color 0.2s;
}
.office-map-banner:hover .office-map-cta {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.6);
}
.office-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.office-card:hover .office-img { transform: scale(1.04); }
.office-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(28,43,82,0.6) 100%);
}

.office-body { padding: clamp(1.5rem, 3vw, 2rem); }
.office-region { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy); margin-bottom: 0.375rem; }
.office-body h3 { font-size: 1.25rem; font-weight: 700; color: var(--ink); margin-bottom: 1rem; }
.office-address { font-size: 0.9375rem; color: var(--ink-3); line-height: 1.8; margin-bottom: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.office-contact { display: flex; flex-direction: column; gap: 0.625rem; }
.office-phone { font-size: 1.125rem; font-weight: 600; color: var(--ink); transition: color 0.2s; }
.office-phone:hover { color: var(--accent); }
.office-map { font-size: 0.875rem; font-weight: 600; color: var(--accent); transition: opacity 0.2s; }
.office-map:hover { opacity: 0.7; }

/* === CONTACT === */
.contact { background: var(--bg-2); padding-block: clamp(4.5rem, 9vw, 7rem); border-top: 1px solid var(--line); }

.contact-inner { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(3rem, 6vw, 6rem); align-items: start; }

.contact-header .section-title { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin-bottom: 1rem; }
.contact-sub { font-size: 1rem; color: var(--ink-3); line-height: 1.75; margin-bottom: 2rem; }

.contact-info { display: flex; flex-direction: column; gap: 1rem; }
.contact-info-item { display: flex; align-items: center; gap: 0.875rem; font-size: 0.9375rem; color: var(--ink-2); transition: color 0.2s; }
.contact-info-item:hover { color: var(--accent); }
.contact-info-icon {
  width: 38px; height: 38px;
  background: var(--accent-soft); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); flex-shrink: 0;
}
.contact-info-icon svg { width: 16px; height: 16px; }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field label { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; color: var(--ink-2); }
.req { color: var(--accent); }

.form-field input,
.form-field select,
.form-field textarea {
  background: #fff; border: 1.5px solid var(--line-2); border-radius: 8px;
  color: var(--ink); font-family: 'Inter', sans-serif;
  font-size: 0.9375rem; font-weight: 400;
  padding: 0.8125rem 1rem; width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none; -webkit-appearance: none;
}
.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
  padding-right: 2.5rem; cursor: pointer;
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input::placeholder, .form-field textarea::placeholder { color: #9ca3af; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(44,62,122,0.1);
}

.form-legal { font-size: 0.75rem; color: var(--ink-3); line-height: 1.6; }

.btn-submit { width: 100%; padding: 1rem; font-size: 0.9375rem; position: relative; }
.btn-sending, .btn-sent { position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; }
.btn-submit.is-sending .btn-text { opacity: 0; }
.btn-submit.is-sending .btn-sending { opacity: 1; }
.btn-submit .btn-sending { opacity: 0; }
.btn-submit .btn-sent { opacity: 0; }
.btn-submit.is-sent .btn-text { opacity: 0; }
.btn-submit.is-sent .btn-sent { opacity: 1; }

.form-success {
  background: rgba(44,122,90,0.08); border: 1px solid rgba(44,122,90,0.3);
  border-radius: 8px; padding: 1rem 1.25rem;
  font-size: 0.9375rem; color: #1a6640; display: none;
}
.form-success.is-visible { display: block; }

/* === FOOTER === */
.footer {
  background: var(--ink); color: rgba(255,255,255,0.7);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}

.footer-inner {
  display: grid; grid-template-columns: 1fr 2fr;
  gap: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 1.5rem;
}

.footer-brand { display: flex; flex-direction: column; gap: 1rem; }
.footer-logo { display: flex; align-items: center; }
.footer-logo-img { height: 72px; width: auto; object-fit: contain; filter: brightness(0) invert(1); }
.footer-tagline { font-size: 0.875rem; color: rgba(255,255,255,0.5); line-height: 1.6; max-width: 220px; }

.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer-nav-title { font-size: 0.625rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 1rem; }
.footer-nav-col { display: flex; flex-direction: column; gap: 0.625rem; }
.footer-nav-col a { font-size: 0.875rem; color: rgba(255,255,255,0.6); transition: color 0.2s; line-height: 1.4; word-break: break-word; }
.footer-nav-col a:hover { color: #fff; }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem; }
.footer-legal { font-size: 0.75rem; color: rgba(255,255,255,0.4); display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; align-items: center; }
.footer-legal a { color: rgba(255,255,255,0.4); transition: color 0.2s; }
.footer-legal a:hover { color: rgba(255,255,255,0.7); }
.footer-credits-link a { font-size: 0.6875rem; color: rgba(255,255,255,0.25); transition: opacity 0.2s; }
.footer-credits-link a:hover { color: rgba(255,255,255,0.5); }
.footer-firma { font-size: 0.6875rem; color: rgba(255,255,255,0.35); letter-spacing: 0.02em; }

/* === REVEAL ANIMATIONS === */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }

.why-card.reveal:nth-child(2) { transition-delay: 0.07s; }
.why-card.reveal:nth-child(3) { transition-delay: 0.14s; }
.why-card.reveal:nth-child(4) { transition-delay: 0.21s; }
.stat.reveal:nth-child(2) { transition-delay: 0.07s; }
.stat.reveal:nth-child(3) { transition-delay: 0.14s; }
.stat.reveal:nth-child(4) { transition-delay: 0.21s; }

/* Defensive */
.reveal[data-split] { opacity: 1; transform: none; }

/* === RESPONSIVE === */
@media (max-width: 1023px) {
  .contact-inner { grid-template-columns: 1fr; }
  .timeline-item {
    grid-template-columns: 60px 1fr;
    gap: 0 1rem;
  }
  .timeline-item--right .timeline-spacer,
  .timeline-item--left .timeline-spacer { display: none; }
  .timeline-item--right .timeline-center { grid-column: 1; grid-row: 1; }
  .timeline-item--right .timeline-content { grid-column: 2; grid-row: 1; padding-left: 0; padding-bottom: 2.5rem; }
  .timeline-item--left .timeline-content { grid-column: 2; grid-row: 1; text-align: left; padding-right: 0; padding-bottom: 2.5rem; }
  .timeline-item--left .timeline-center { grid-column: 1; grid-row: 1; }
  .timeline-item--left .timeline-spacer { display: none; }
}

@media (max-width: 767px) {
  .nav { padding-left: 1.25rem; }
  .nav-logo-img { display: block; height: 88px; margin-left: 0.1rem; }
  .nav-logo-full { height: 100px; }
  .nav-brand { margin-left: 0; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .why-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .offices-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .stat:nth-child(3), .stat:nth-child(4) { border-bottom: none; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}

@media (max-width: 479px) {
  :root { --nav-h: 90px; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-bottom: 1px solid rgba(255,255,255,0.1) !important; }
  .stat:last-child { border-bottom: none !important; }
  .footer-nav { grid-template-columns: 1fr; }
}

@media print {
  .nav, .splash, .mobile-menu { display: none; }
  .hero { min-height: auto; }
}

/* ============================================================
   SUBPÁGINAS (ej. Laboral Sur) — no afecta a index.html
   ============================================================ */

/* === SECTION SUBTITLE === */
.section-sub {
  font-size: 1rem;
  color: var(--ink-3);
  line-height: 1.65;
  margin-top: 1rem;
}

/* === SPECIALTIES GRID === */
.specialties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 1023px) {
  .specialties-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .specialties-grid { grid-template-columns: 1fr; }
}

/* === CTA BANNER === */
.cta-banner {
  background: linear-gradient(135deg, #243463 0%, var(--navy) 50%, #344c8c 100%);
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  margin-top: 1.5rem;
  margin-bottom: 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 100% at 50% 0%, rgba(74,114,196,0.18) 0%, transparent 65%);
}
.cta-banner-inner { position: relative; max-width: 640px; margin-inline: auto; }
.cta-banner-title { font-size: clamp(1.6rem, 3.2vw, 2.25rem); font-weight: 700; color: #fff; margin-bottom: 0.875rem; }
.cta-banner-text { font-size: 1rem; color: rgba(255,255,255,0.75); line-height: 1.7; margin-bottom: 2rem; }

/* === SINGLE OFFICE CARD === */
.offices-grid--single { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
