/* =====================================================
   CAG ATTORNEYS — Rediseño 2026
   Sistema de diseño:
   - Tipografía fluida con clamp()
   - Paleta: azul corporativo + marino + acento dorado
   - Soft shadows, radios consistentes 16px
   - Transiciones 0.3s ease-in-out
   ===================================================== */

:root {
  /* Paleta */
  --brand-primary:   #003087;    /* azul corporativo del logo */
  --green:           #16a34a;    /* verde corporativo B2B */
  --green-dark:      #15803d;
  --green-soft:      #dcfce7;
  --brand-deep:      #001a4d;    /* marino más oscuro para contrastes */
  --brand-soft:      #e8eef9;    /* azul muy claro (fondos de iconos, hover) */
  --brand-tint:      #f4f7f9;    /* gris muy claro para fondo general */
  --accent:          #c9a14a;    /* dorado institucional sutil */
  --accent-soft:     #e8d59b;
  --ink:             #1a2236;    /* texto principal */
  --ink-muted:       #5b6478;    /* texto secundario */
  --line:            #e4e8ef;
  --white:           #ffffff;
  --whatsapp:        #25d366;
  --whatsapp-dark:   #1ea854;

  /* Radios */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 999px;

  /* Sombras */
  --shadow-sm: 0 2px 8px rgba(0, 48, 135, 0.06);
  --shadow-md: 0 10px 30px rgba(0, 48, 135, 0.08);
  --shadow-lg: 0 24px 60px rgba(0, 48, 135, 0.12);
  --shadow-ring: 0 0 0 1px rgba(0, 48, 135, 0.06);

  /* Transición */
  --t: 0.3s ease-in-out;

  /* Tipografía fluida */
  --fs-xs:   clamp(0.78rem, 0.7vw + 0.65rem, 0.88rem);
  --fs-sm:   clamp(0.88rem, 0.8vw + 0.72rem, 1rem);
  --fs-base: clamp(1rem, 0.6vw + 0.85rem, 1.125rem);
  --fs-md:   clamp(1.05rem, 0.8vw + 0.9rem, 1.25rem);
  --fs-lg:   clamp(1.25rem, 1.2vw + 1rem, 1.6rem);
  --fs-xl:   clamp(1.6rem, 2vw + 1.1rem, 2.4rem);
  --fs-2xl:  clamp(2rem, 3vw + 1.2rem, 3.4rem);
  --fs-3xl:  clamp(2.4rem, 4vw + 1.2rem, 4.4rem);

  /* Spacing */
  --pad-sec-y: clamp(64px, 8vw, 120px);
  --pad-sec-x: clamp(20px, 5vw, 60px);
  --maxw: 1200px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--brand-tint);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* Utilidades */
.eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-title {
  font-size: var(--fs-2xl);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--brand-deep);
  font-weight: 700;
  text-wrap: balance;
}
.section-lead {
  max-width: 720px;
  margin-top: 18px;
  color: var(--ink-muted);
  font-size: var(--fs-md);
  text-wrap: pretty;
}
.section-head {
  text-align: center;
  margin: 0 auto clamp(40px, 5vw, 64px) auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 820px;
}
.section-underline {
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-primary), var(--accent));
  border-radius: 999px;
  margin-top: 22px;
}

/* =====================================================
   HEADER — sticky + glassmorphism
   ===================================================== */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(20px, 5vw, 60px);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(0, 48, 135, 0.08);
  transition: padding var(--t), background var(--t);
}
header.scrolled {
  padding-top: 10px;
  padding-bottom: 10px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 6px 24px rgba(0, 48, 135, 0.06);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-logo {
  width: clamp(38px, 4vw, 48px);
  height: auto;
  transition: transform var(--t);
}
.header-left:hover .header-logo { transform: rotate(-6deg) scale(1.04); }
.company-name {
  font-size: clamp(1rem, 1vw + 0.7rem, 1.25rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--brand-deep);
}
.company-name .accent { color: var(--accent); font-weight: 500; }

/* Nav desktop */
nav { display: flex; align-items: center; gap: 18px; }
.nav-menu {
  list-style: none;
  display: flex;
  gap: clamp(10px, 1.6vw, 28px);
  align-items: center;
}
.nav-link {
  position: relative;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink);
  padding: 8px 2px;
  transition: color var(--t);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--brand-primary), var(--accent));
  transform: translateX(-50%);
  transition: width var(--t);
  border-radius: 999px;
}
.nav-link:hover { color: var(--brand-primary); }
.nav-link:hover::after { width: 100%; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-primary);
  color: var(--white);
  padding: 10px 18px;
  border-radius: var(--r-full);
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: background var(--t), transform var(--t), box-shadow var(--t);
}
.nav-cta:hover {
  background: var(--brand-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.nav-cta i { font-size: 0.95em; }

/* Hamburguesa */
.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid rgba(0, 48, 135, 0.15);
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.6);
  position: relative;
  transition: background var(--t), border-color var(--t);
}
.menu-toggle span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 2px;
  background: var(--brand-deep);
  border-radius: 999px;
  transform: translate(-50%, -50%);
  transition: transform var(--t), opacity var(--t), top var(--t);
}
.menu-toggle span:nth-child(1) { transform: translate(-50%, calc(-50% - 6px)); }
.menu-toggle span:nth-child(3) { transform: translate(-50%, calc(-50% + 6px)); }
body.menu-open .menu-toggle span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .menu-toggle span:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }

/* Mobile off-canvas */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(160deg, var(--brand-deep) 0%, var(--brand-primary) 100%);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 90% 0%, rgba(201,161,74,0.18) 0%, transparent 60%),
    radial-gradient(50% 50% at 0% 100%, rgba(255,255,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}
body.menu-open .nav-overlay { opacity: 1; pointer-events: auto; }
.nav-overlay ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: center;
  position: relative;
}
.nav-overlay li {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
body.menu-open .nav-overlay li {
  opacity: 1;
  transform: translateY(0);
}
.nav-overlay li:nth-child(1) { transition-delay: 0.08s; }
.nav-overlay li:nth-child(2) { transition-delay: 0.14s; }
.nav-overlay li:nth-child(3) { transition-delay: 0.20s; }
.nav-overlay li:nth-child(4) { transition-delay: 0.26s; }
.nav-overlay li:nth-child(5) { transition-delay: 0.32s; }
.nav-overlay li:nth-child(6) { transition-delay: 0.38s; }
.nav-overlay li:nth-child(7) { transition-delay: 0.44s; }
.nav-overlay a {
  color: var(--white);
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 8px 18px;
  display: inline-block;
  border-bottom: 2px solid transparent;
  transition: border-color var(--t), color var(--t);
}
.nav-overlay a:hover { border-color: var(--accent); color: var(--accent-soft); }
.nav-overlay-cta {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: var(--brand-deep) !important;
  padding: 14px 26px !important;
  border-radius: var(--r-full);
  border: none !important;
  font-weight: 700 !important;
}

/* =====================================================
   HERO / CARRUSEL
   ===================================================== */
.hero {
  position: relative;
  padding-top: clamp(110px, 12vw, 140px);
  padding-bottom: clamp(40px, 6vw, 80px);
  background:
    radial-gradient(60% 80% at 85% 10%, rgba(0, 48, 135, 0.08) 0%, transparent 60%),
    radial-gradient(50% 60% at 10% 90%, rgba(201, 161, 74, 0.10) 0%, transparent 70%),
    var(--brand-tint);
}
.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-sec-x);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero-copy .eyebrow { color: var(--accent); }
.hero-copy h1 {
  font-size: var(--fs-3xl);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--brand-deep);
  font-weight: 700;
  text-wrap: balance;
}
.hero-copy h1 .em {
  color: var(--brand-primary);
  font-style: normal;
  position: relative;
  white-space: nowrap;
}
.hero-copy h1 .em::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 10px;
  background: var(--accent-soft);
  opacity: 0.55;
  z-index: -1;
  border-radius: 4px;
}
.hero-copy p.lede {
  margin-top: 22px;
  color: var(--ink-muted);
  font-size: var(--fs-md);
  max-width: 540px;
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: var(--fs-sm);
  border: 1px solid transparent;
  transition: transform var(--t), background var(--t), color var(--t), box-shadow var(--t), border-color var(--t);
}
.btn-primary {
  background: var(--brand-primary);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  background: var(--brand-deep);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.btn-ghost {
  background: transparent;
  color: var(--brand-deep);
  border-color: rgba(0, 48, 135, 0.18);
}
.btn-ghost:hover {
  background: var(--white);
  border-color: var(--brand-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 32px;
  color: var(--ink-muted);
  font-size: var(--fs-sm);
}
.hero-trust .dots {
  display: flex;
}
.hero-trust .dots span {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--brand-soft);
  border: 2px solid var(--white);
  margin-left: -8px;
  display: inline-block;
  background-size: cover;
  background-position: center;
}
.hero-trust .dots span:first-child { margin-left: 0; }
.hero-trust strong { color: var(--brand-deep); font-weight: 700; }

/* Carrusel */
.carousel {
  position: relative;
  width: 100%;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-lg);
  background: var(--brand-deep);
}
.carousel-track {
  position: absolute;
  inset: 0;
}
.carousel-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: clamp(20px, 3vw, 36px);
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
  color: var(--white);
}
.carousel-slide.active { opacity: 1; transform: scale(1); z-index: 2; }
.carousel-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 26, 77, 0.0) 30%, rgba(0, 26, 77, 0.82) 100%);
  z-index: 1;
}
.carousel-slide .bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.slide-content {
  position: relative;
  z-index: 2;
  max-width: 92%;
}
.slide-tag {
  display: inline-block;
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
  color: var(--accent-soft);
}
.slide-title {
  font-size: clamp(1.4rem, 2.2vw + 0.6rem, 2.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.slide-sub {
  margin-top: 8px;
  font-size: var(--fs-sm);
  opacity: 0.85;
  max-width: 460px;
}

/* Slide art (composed CSS illustrations) */
.bg-grid::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(60% 60% at 50% 40%, #000 0%, transparent 80%);
}
.bg-1 { background: linear-gradient(150deg, #0a2a6b 0%, #003087 55%, #1d4dbf 100%); }
.bg-2 { background: linear-gradient(150deg, #001a4d 0%, #002a73 60%, #c9a14a 220%); }
.bg-3 { background: linear-gradient(150deg, #052254 0%, #003087 100%); }
.bg-4 { background: linear-gradient(150deg, #001233 0%, #002a73 100%); }

.bg-art-1::before, .bg-art-2::before, .bg-art-3::before, .bg-art-4::before {
  content: '';
  position: absolute;
  z-index: 1;
}
/* Scales icon for slide 1 */
.bg-art-1::before {
  inset: 0;
  background:
    radial-gradient(circle at 70% 35%, rgba(201,161,74,0.35) 0%, transparent 35%),
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.08) 0%, transparent 40%);
}
.bg-art-1 .glyph {
  position: absolute;
  right: -8%;
  top: 8%;
  font-size: clamp(180px, 32vw, 380px);
  line-height: 1;
  color: rgba(255,255,255,0.06);
  z-index: 1;
  font-family: 'Times New Roman', serif;
  font-weight: 700;
}
.bg-art-2 .glyph {
  position: absolute;
  right: -4%;
  bottom: -10%;
  font-size: clamp(220px, 36vw, 420px);
  color: rgba(255,255,255,0.05);
  z-index: 1;
  font-family: 'Times New Roman', serif;
}
.bg-art-3 .glyph {
  position: absolute;
  left: -6%;
  top: -8%;
  font-size: clamp(220px, 36vw, 420px);
  color: rgba(201,161,74,0.10);
  z-index: 1;
  font-family: 'Times New Roman', serif;
}

/* Dots & arrows */
.carousel-controls {
  position: absolute;
  bottom: clamp(16px, 2vw, 24px);
  right: clamp(16px, 2vw, 24px);
  z-index: 5;
  display: flex;
  gap: 8px;
}
.carousel-arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.10);
  color: var(--white);
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t), border-color var(--t), transform var(--t);
}
.carousel-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--brand-deep);
  transform: translateY(-2px);
}
.carousel-dots {
  position: absolute;
  left: clamp(16px, 3vw, 36px);
  bottom: clamp(20px, 2.5vw, 32px);
  display: flex;
  gap: 8px;
  z-index: 5;
}
.dot {
  width: 22px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.35);
  transition: width var(--t), background var(--t);
  border: none;
  padding: 0;
  cursor: pointer;
}
.dot.active { width: 38px; background: var(--accent); }

/* =====================================================
   WHATSAPP — tarjeta flotante con pulso
   ===================================================== */
.whatsapp-card-wrap {
  max-width: 980px;
  margin: -32px auto 0 auto;
  padding: 0 var(--pad-sec-x);
  position: relative;
  z-index: 5;
}
.whatsapp-card {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(16px, 3vw, 28px);
  border: 1px solid rgba(0, 48, 135, 0.05);
}
.whatsapp-icon-wrap {
  position: relative;
  width: clamp(56px, 8vw, 72px);
  height: clamp(56px, 8vw, 72px);
  border-radius: 50%;
  background: var(--whatsapp);
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  flex-shrink: 0;
}
.whatsapp-icon-wrap::before,
.whatsapp-icon-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--whatsapp);
  opacity: 0.6;
  z-index: -1;
  animation: pulse 2.4s infinite cubic-bezier(0.66, 0, 0, 1);
}
.whatsapp-icon-wrap::after { animation-delay: 1.2s; }
@keyframes pulse {
  0%   { transform: scale(1);   opacity: 0.6; }
  70%  { transform: scale(1.8); opacity: 0; }
  100% { transform: scale(1.8); opacity: 0; }
}
.whatsapp-text h3 {
  font-size: var(--fs-md);
  color: var(--brand-deep);
  font-weight: 700;
  margin-bottom: 4px;
}
.whatsapp-text p {
  color: var(--ink-muted);
  font-size: var(--fs-sm);
  max-width: 460px;
}
.whatsapp-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--whatsapp);
  color: var(--white);
  padding: 14px 22px;
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: var(--fs-sm);
  white-space: nowrap;
  transition: background var(--t), transform var(--t), box-shadow var(--t);
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.32);
}
.whatsapp-button:hover {
  background: var(--whatsapp-dark);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.42);
}

/* =====================================================
   SECCIONES base
   ===================================================== */
section.block {
  padding: var(--pad-sec-y) var(--pad-sec-x);
}
section.block.alt { background: var(--white); }
section.block.tint { background: var(--brand-tint); }
section.block.deep {
  background:
    radial-gradient(60% 80% at 90% 10%, rgba(201, 161, 74, 0.10) 0%, transparent 60%),
    linear-gradient(160deg, var(--brand-deep) 0%, var(--brand-primary) 100%);
  color: var(--white);
}
.container {
  max-width: var(--maxw);
  margin: 0 auto;
}

/* =====================================================
   NOTICIAS
   ===================================================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.news-card {
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.news-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 48, 135, 0.12);
}
.news-thumb {
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
  background: var(--brand-soft);
}
.news-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}
.news-thumb-1 { background: linear-gradient(150deg, #0a2a6b 0%, #1d4dbf 100%); }
.news-thumb-2 { background: linear-gradient(150deg, #001a4d 0%, #003087 100%); }
.news-thumb-3 { background: linear-gradient(150deg, #002a73 0%, #4470d8 100%); }
.news-thumb i {
  position: absolute;
  right: -10px;
  bottom: -20px;
  font-size: clamp(120px, 16vw, 180px);
  color: rgba(255,255,255,0.10);
  z-index: 0;
}
.news-thumb .tag {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 2;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
}
.news-body {
  padding: 24px 24px 26px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.news-date {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-xs);
  color: var(--ink-muted);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}
.news-date i { color: var(--accent); }
.news-card h3 {
  font-size: var(--fs-lg);
  color: var(--brand-deep);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  line-height: 1.25;
  text-wrap: balance;
}
.news-card p {
  color: var(--ink-muted);
  font-size: var(--fs-sm);
  flex: 1;
  margin-bottom: 18px;
}
.news-link {
  align-self: flex-start;
  font-weight: 600;
  color: var(--brand-primary);
  font-size: var(--fs-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--t), gap var(--t);
}
.news-link:hover { color: var(--accent); gap: 12px; }

/* =====================================================
   SERVICIOS
   ===================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.service-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s ease-in-out;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 48, 135, 0.12);
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--brand-soft);
  display: grid;
  place-items: center;
  color: var(--brand-primary);
  font-size: 1.5rem;
  margin-bottom: 22px;
  transition: background var(--t), color var(--t), transform var(--t);
}
.service-card:hover .service-icon-wrap {
  background: var(--brand-primary);
  color: var(--white);
  transform: scale(1.08) rotate(-4deg);
}
.service-card h3 {
  font-size: var(--fs-lg);
  color: var(--brand-deep);
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.service-card p {
  color: var(--ink-muted);
  font-size: var(--fs-sm);
  margin-bottom: 18px;
}
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.service-tags span {
  font-size: var(--fs-xs);
  color: var(--brand-primary);
  background: var(--brand-soft);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 500;
}

/* =====================================================
   SOBRE NOSOTROS / PERFILES
   ===================================================== */
.about-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t);
}
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stat .num {
  font-size: clamp(1.6rem, 2.4vw + 0.6rem, 2.6rem);
  font-weight: 700;
  color: var(--brand-primary);
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat .num span { color: var(--accent); }
.stat .label {
  margin-top: 8px;
  font-size: var(--fs-sm);
  color: var(--ink-muted);
}

.profiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 40px);
}
.profile-card {
  background: var(--white);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: stretch;
  transition: transform var(--t), box-shadow var(--t);
}
.profile-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.profile-card.reverse { grid-template-columns: 1.1fr 0.9fr; }
.profile-card.reverse .profile-img-wrap { order: 2; }
.profile-card.reverse .profile-info { order: 1; }

.profile-img-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--brand-soft);
  overflow: hidden;
}
.profile-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.profile-card:hover .profile-img-wrap img { transform: scale(1.04); }
.profile-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 26, 77, 0.35) 100%);
}
.profile-img-wrap .badge {
  position: absolute;
  top: 18px; left: 18px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-primary);
}

.profile-info {
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.profile-info .role {
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
}
.profile-info h3 {
  font-size: clamp(1.4rem, 1.5vw + 0.7rem, 2rem);
  color: var(--brand-deep);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 12px;
  text-wrap: balance;
}
.profile-info p {
  color: var(--ink-muted);
  font-size: var(--fs-sm);
  margin-bottom: 20px;
}
.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.profile-tags span {
  font-size: var(--fs-xs);
  background: var(--brand-soft);
  color: var(--brand-primary);
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 500;
}
.profile-meta {
  display: flex;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.profile-meta .item .k {
  font-size: var(--fs-xs);
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}
.profile-meta .item .v {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--brand-deep);
}

/* =====================================================
   CLIENTES — marquee
   ===================================================== */
.marquee {
  margin-top: clamp(24px, 3vw, 40px);
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: clamp(48px, 6vw, 80px);
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.client-chip {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 20px 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  min-width: 240px;
  height: 120px;
  justify-content: center;
  filter: grayscale(0.85) contrast(0.95);
  opacity: 0.78;
  transition: filter var(--t), opacity var(--t), transform var(--t), box-shadow var(--t);
  box-shadow: var(--shadow-sm);
}
.client-chip:hover {
  filter: grayscale(0) contrast(1);
  opacity: 1;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.client-chip img {
  max-height: 78px;
  max-width: 200px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.client-chip .name {
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand-deep);
  font-size: var(--fs-md);
}
.client-chip .name .mini {
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  color: var(--ink-muted);
  font-weight: 500;
  display: block;
}
.client-chip .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-primary);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}

/* =====================================================
   CTA strip
   ===================================================== */
.cta-strip {
  position: relative;
  overflow: hidden;
}
.cta-strip .container {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: clamp(24px, 4vw, 60px);
  padding: clamp(40px, 6vw, 80px) 0;
}
.cta-strip h2 {
  font-size: var(--fs-2xl);
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
}
.cta-strip p {
  margin-top: 14px;
  font-size: var(--fs-md);
  opacity: 0.85;
  max-width: 560px;
}
.cta-strip .btn-primary {
  background: var(--accent);
  color: var(--brand-deep);
  font-weight: 700;
}
.cta-strip .btn-primary:hover {
  background: var(--white);
}

/* =====================================================
   FOOTER
   ===================================================== */
footer {
  background: var(--brand-deep);
  color: rgba(255,255,255,0.78);
  padding: clamp(56px, 7vw, 96px) var(--pad-sec-x) 0 var(--pad-sec-x);
  position: relative;
  overflow: hidden;
}
footer::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,161,74,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.footer-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(40px, 5vw, 72px);
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-brand .logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-brand .logo-row img {
  width: 48px;
  height: auto;
  background: rgba(255,255,255,0.95);
  border-radius: 12px;
  padding: 6px;
}
.footer-brand .logo-row span {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
}
.footer-brand p {
  font-size: var(--fs-sm);
  max-width: 320px;
  line-height: 1.7;
}
.footer-brand .socials {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.footer-brand .socials a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 1rem;
  transition: background var(--t), transform var(--t), border-color var(--t);
}
.footer-brand .socials a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--brand-deep);
  transform: translateY(-3px);
}
.footer-col h4 {
  font-size: var(--fs-sm);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 14px;
  font-weight: 700;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 26px;
  height: 2px;
  background: var(--accent);
  border-radius: 999px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col a {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.7);
  transition: color var(--t), padding-left var(--t);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-col a:hover { color: var(--accent); padding-left: 4px; }
.footer-col .contact-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: var(--fs-sm);
  line-height: 1.55;
}
.footer-col .contact-row i {
  color: var(--accent);
  margin-top: 4px;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}
.footer-bottom {
  max-width: var(--maxw);
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.6);
  flex-wrap: wrap;
}
.footer-bottom .legal {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.footer-bottom .legal a:hover { color: var(--accent); }

/* =====================================================
   Reveal animation on scroll
   ===================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 960px) {
  .nav-menu, header .nav-cta { display: none; }
  .menu-toggle { display: inline-block; }
  .hero-inner { grid-template-columns: 1fr; }
  .carousel { aspect-ratio: 5 / 4; max-width: 560px; margin: 0 auto; }
  .about-intro-grid { grid-template-columns: 1fr; }
  .profile-card,
  .profile-card.reverse {
    grid-template-columns: 1fr;
  }
  .profile-card.reverse .profile-img-wrap { order: 0; }
  .profile-card.reverse .profile-info { order: 0; }
  .profile-img-wrap { aspect-ratio: 3 / 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-strip .container { grid-template-columns: 1fr; text-align: left; }
}
@media (max-width: 640px) {
  .whatsapp-card { grid-template-columns: auto 1fr; }
  .whatsapp-card .whatsapp-button { grid-column: 1 / -1; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-trust { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* =====================================================
   NAV — enlace Empresas con acento verde
   ===================================================== */
.nav-link-b2b { color: var(--green) !important; font-weight: 600; }
.nav-link-b2b::after { background: var(--green) !important; }

/* =====================================================
   B2B — Para Empresas
   ===================================================== */
.b2b-section {
  position: relative;
  padding: var(--pad-sec-y) var(--pad-sec-x);
  background:
    radial-gradient(65% 55% at 95% 5%,  rgba(22, 163, 74, 0.13) 0%, transparent 60%),
    radial-gradient(55% 60% at 0%  95%, rgba(0,  48, 135, 0.18) 0%, transparent 60%),
    radial-gradient(40% 40% at 50% 50%, rgba(0,  26,  77, 0.20) 0%, transparent 100%),
    linear-gradient(168deg, #000f2b 0%, #001a4d 50%, #002560 100%);
  overflow: hidden;
}

/* Decoración geométrica de fondo */
.b2b-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(22,163,74,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22,163,74,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 0%, transparent 100%);
}

.b2b-eyebrow  { color: var(--green) !important; }
.b2b-title    { color: var(--white) !important; }
.b2b-underline {
  background: linear-gradient(90deg, var(--green), rgba(22,163,74,0.35)) !important;
}
.b2b-lead { color: rgba(255,255,255,0.68) !important; }

/* ---- Tabs ---- */
.b2b-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: clamp(32px, 5vw, 52px);
}

.b2b-tab {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 22px;
  border-radius: var(--r-full);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.60);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: background var(--t), color var(--t), border-color var(--t),
              box-shadow var(--t), transform var(--t);
}

.b2b-tab i {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.35);
  transition: color var(--t);
}

.b2b-tab:hover {
  background: rgba(255,255,255,0.09);
  color: var(--white);
  border-color: rgba(255,255,255,0.22);
}

.b2b-tab.active {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
  box-shadow: 0 8px 28px rgba(22,163,74,0.40);
  transform: translateY(-1px);
}

.b2b-tab.active i { color: var(--white); }

/* ---- Layout carrusel ---- */
.b2b-carousel-outer {
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  align-items: center;
  gap: 14px;
}

.b2b-panels-wrap {
  overflow: hidden;
  width: 100%;
  border-radius: var(--r-lg);
}

/* ---- Panel y Track ---- */
.b2b-panel { display: none; width: 100%; }
.b2b-panel.active { display: block; }

.b2b-track {
  display: flex;
  gap: 16px;
  transition: transform 0.48s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  padding: 8px 2px 16px 2px;   /* espacio para sombras */
}

/* ---- Tarjeta de servicio ---- */
.b2b-card {
  flex-shrink: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 36px) clamp(16px, 2vw, 24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  backdrop-filter: blur(10px);
  cursor: default;
  transition: background var(--t), border-color var(--t),
              transform var(--t), box-shadow var(--t);
}

.b2b-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(22,163,74,0.55);
  transform: translateY(-7px);
  box-shadow: 0 22px 52px rgba(0,0,0,0.35),
              0 0 0 1px rgba(22,163,74,0.22);
}

/* Ícono */
.b2b-icon-wrap {
  width: 76px;
  height: 76px;
  border-radius: var(--r-lg);
  background: rgba(22,163,74,0.10);
  border: 1px solid rgba(22,163,74,0.28);
  display: grid;
  place-items: center;
  font-size: 1.65rem;
  color: var(--green);
  flex-shrink: 0;
  transition: background var(--t), color var(--t),
              transform var(--t), box-shadow var(--t);
}

.b2b-card:hover .b2b-icon-wrap {
  background: var(--green);
  color: var(--white);
  transform: scale(1.10) rotate(-3deg);
  box-shadow: 0 10px 28px rgba(22,163,74,0.45);
}

/* Título en mayúsculas */
.b2b-card h3 {
  font-size: clamp(0.72rem, 0.8vw + 0.55rem, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.88);
  line-height: 1.45;
  margin: 0;
}

/* ---- Flechas ---- */
.b2b-arrow {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  cursor: pointer;
  flex-shrink: 0;
  backdrop-filter: blur(10px);
  transition: background var(--t), border-color var(--t),
              box-shadow var(--t), transform var(--t), opacity var(--t);
}

.b2b-arrow:hover:not(:disabled) {
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 8px 22px rgba(22,163,74,0.42);
  transform: scale(1.06);
}

.b2b-arrow:disabled {
  opacity: 0.25;
  cursor: not-allowed;
  transform: none !important;
}

/* ---- Dots ---- */
.b2b-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  min-height: 18px;
}

.b2b-dot {
  height: 8px;
  width: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.22);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: width var(--t), background var(--t);
}

.b2b-dot.active {
  width: 26px;
  background: var(--green);
}

/* ---- CTA ---- */
.b2b-cta {
  margin-top: clamp(40px, 5vw, 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 28px);
  flex-wrap: wrap;
  text-align: center;
}

.b2b-cta p {
  color: rgba(255,255,255,0.72);
  font-size: var(--fs-md);
}

.b2b-btn {
  background: var(--green) !important;
  color: var(--white) !important;
  box-shadow: 0 10px 28px rgba(22,163,74,0.38) !important;
}

.b2b-btn:hover {
  background: var(--green-dark) !important;
  box-shadow: 0 16px 40px rgba(22,163,74,0.50) !important;
}

/* ---- Responsivo ---- */
@media (max-width: 1100px) {
  /* 3 columnas → gestionado por JS */
}
@media (max-width: 860px) {
  .b2b-carousel-outer { grid-template-columns: 44px 1fr 44px; gap: 8px; }
  .b2b-arrow { width: 44px; height: 44px; font-size: 0.85rem; }
}
@media (max-width: 600px) {
  .b2b-tabs { gap: 8px; }
  .b2b-tab  { padding: 9px 14px; font-size: var(--fs-xs); }
  .b2b-tab span { display: none; }           /* solo íconos en móvil pequeño */
  .b2b-tab i { font-size: 1.1rem; color: inherit !important; }
  .b2b-carousel-outer { grid-template-columns: 40px 1fr 40px; gap: 6px; }
  .b2b-arrow { width: 40px; height: 40px; }
}

/* =====================================================
   UBICACIÓN — mapa y datos de contacto
   ===================================================== */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: stretch;
  min-height: 480px;
}
.location-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.location-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.location-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-primary);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: background var(--t), color var(--t);
}
.location-item:hover .location-icon {
  background: var(--brand-primary);
  color: var(--white);
}
.location-item strong {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--brand-deep);
  margin-bottom: 4px;
}
.location-item p {
  font-size: var(--fs-sm);
  color: var(--ink-muted);
  line-height: 1.6;
}
.location-item a {
  color: var(--brand-primary);
  transition: color var(--t);
}
.location-item a:hover { color: var(--accent); }
.location-cta {
  margin-top: auto;
  align-self: flex-start;
}
.location-map {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  min-height: 420px;
}
.location-map iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  display: block;
}
@media (max-width: 860px) {
  .location-grid { grid-template-columns: 1fr; }
  .location-map { min-height: 320px; }
  .location-map iframe { min-height: 320px; }
  .location-cta { align-self: stretch; justify-content: center; }
}

/* =====================================================
   COOKIES BANNER
   ===================================================== */
.cookie-banner {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  z-index: 2000;
  width: min(740px, calc(100vw - 32px));
  opacity: 0;
  pointer-events: none;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease;
}
.cookie-banner.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-inner {
  background: var(--white);
  border-radius: var(--r-xl);
  box-shadow: 0 24px 72px rgba(0, 26, 77, 0.18), 0 0 0 1px rgba(0, 48, 135, 0.06);
  padding: clamp(20px, 3vw, 28px) clamp(20px, 3vw, 32px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(14px, 2vw, 24px);
}
.cookie-logo-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  background: var(--brand-soft);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  padding: 6px;
}
.cookie-logo {
  width: 40px;
  height: auto;
}
.cookie-body h4 {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--brand-deep);
  margin-bottom: 4px;
}
.cookie-body p {
  font-size: var(--fs-xs);
  color: var(--ink-muted);
  line-height: 1.6;
}
.cookie-body a {
  color: var(--brand-primary);
  text-decoration: underline;
  transition: color var(--t);
}
.cookie-body a:hover { color: var(--accent); }
.cookie-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}
.cookie-btn {
  border: none;
  border-radius: var(--r-full);
  padding: 10px 20px;
  font-size: var(--fs-xs);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--t), color var(--t), transform var(--t), box-shadow var(--t);
}
.cookie-btn-primary {
  background: var(--brand-primary);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.cookie-btn-primary:hover {
  background: var(--brand-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.cookie-btn-ghost {
  background: var(--brand-soft);
  color: var(--brand-deep);
}
.cookie-btn-ghost:hover {
  background: var(--line);
  transform: translateY(-2px);
}
@media (max-width: 600px) {
  .cookie-inner {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }
  .cookie-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: flex-end;
  }
}
