/* ==========================================================================
   Vencejo Consultores S.A.S. — Hoja de estilos global
   Usar en todas las páginas del sitio mediante:
     <link rel="stylesheet" href="styles.css">
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens de diseño (variables y tipografía)
   -------------------------------------------------------------------------- */
:root {
  --primary: #1E3A5F;
  --primary-rgb: 30, 58, 95;
  --primary-dark: #0b1140;
  --primary-mid: #1a38f7;
  --lavender: #B1B1E5;
  --lavender-bg: rgba(177, 177, 229, 0.12);
  --gray-brand: #C8C8C8;
  --white: #ffffff;
  --light: #f5f5fc;
  --light-2: #edeefb;
  --ink: #0d1035;
  --text-2: #4a4e6b;
  --text-3: #9496b8;
  --border: rgba(13, 16, 53, 0.09);
  --shadow: 0 18px 60px rgba(13, 16, 53, 0.12);
  font-family: 'Outfit', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* --------------------------------------------------------------------------
   2. Reset y elementos base
   -------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--light);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(34px, 4.8vw, 58px);
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

/* --------------------------------------------------------------------------
   3. Contenedores y layout común
   -------------------------------------------------------------------------- */
.wrap {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

section {
  padding: 86px 0;
}

section[id] {
  scroll-margin-top: 110px;
}

/* --------------------------------------------------------------------------
   4. Cabecera y navegación
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 28px rgba(13, 16, 53, 0.08);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.transparent {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.site-header.transparent .nav-links {
  color: var(--white);
}

.site-header.transparent.scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--border);
  box-shadow: 0 10px 28px rgba(13, 16, 53, 0.08);
  backdrop-filter: blur(18px);
}

.site-header.transparent.scrolled .nav-links {
  color: var(--ink);
}

.nav {
  width: min(1160px, calc(100% - 40px));
  min-height: 90px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 620;
  transition: color 0.3s ease;
}

.nav-links a:not(.button):hover,
.nav-trigger:hover {
  color: var(--primary);
}

.site-header.transparent:not(.scrolled) .nav-links > a:not(.button):hover,
.site-header.transparent:not(.scrolled) .nav-trigger:hover {
  color: var(--lavender);
}

.nav-item {
  position: relative;
}

.nav-trigger {
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.nav-item > a,
.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-item > a::after,
.nav-trigger::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  min-width: 290px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 20;
}

.nav-item:hover .dropdown-menu,
.nav-item:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 620;
  color: var(--ink);
  white-space: normal;
}

.dropdown-menu a:hover {
  background: var(--light-2);
  color: var(--primary);
}

/* --------------------------------------------------------------------------
   5. Botones
   -------------------------------------------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 720;
  line-height: 1.1;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: var(--white);
  background: var(--primary);
  box-shadow: 0 16px 34px rgba(var(--primary-rgb), 0.22);
}

.button.secondary {
  color: var(--primary);
  background: var(--white);
  border-color: rgba(var(--primary-rgb), 0.18);
}

/* --------------------------------------------------------------------------
   6. Tipografía de apoyo (eyebrow, kicker, lead)
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 780;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--lavender);
}

.kicker {
  margin-bottom: 12px;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 780;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lead {
  color: #405160;
  font-size: 18px;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: start;
  margin-bottom: 42px;
}

/* --------------------------------------------------------------------------
   7. Hero (portada con carrusel) — index.html
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 660px;
  display: grid;
  align-items: center;
  padding: 58px 0 42px;
  color: var(--white);
}

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

.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-bg-slide.active {
  opacity: 1;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(11, 17, 64, 0.92) 0%, rgba(11, 17, 64, 0.66) 48%, rgba(11, 17, 64, 0.35) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 120px;
  background: linear-gradient(0deg, var(--light), rgba(245, 245, 252, 0));
  pointer-events: none;
  z-index: 1;
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

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

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

.hero .eyebrow::before {
  background: var(--white);
}

.hero h1 {
  color: var(--white);
}

.hero p {
  max-width: 670px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(17px, 1.7vw, 20px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 860px;
  margin-top: 36px;
  border: 1px solid rgba(13, 16, 53, 0.09);
  background: rgba(13, 16, 53, 0.09);
  box-shadow: var(--shadow);
}

.metric {
  min-height: 104px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.9);
}

.metric strong {
  display: block;
  margin-bottom: 7px;
  color: var(--primary);
  font-size: 23px;
  line-height: 1;
}

.metric span {
  color: var(--text-2);
  font-size: 23px;
  font-weight: 600;
  line-height: 1;
}

.hero-carousel {
  display: grid;
}

.hero-slide {
  grid-row: 1;
  grid-column: 1;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
  transform: translateY(8px);
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.hero-slide .hero-actions {
  margin-top: 28px;
}

.carousel-dots {
  grid-row: 2;
  grid-column: 1;
  display: flex;
  gap: 10px;
  margin-top: 28px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  opacity: 0.35;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.3s;
}

.dot.active {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   8. Hero de página interior — nosotros.html y subpáginas
   -------------------------------------------------------------------------- */
.page-hero {
  padding: 80px 0 64px;
  background:
    linear-gradient(112deg, rgba(245, 245, 252, 0.97) 0%, rgba(245, 245, 252, 0.88) 43%, rgba(245, 245, 252, 0.36) 100%),
    url("images/girls_workin.jpeg") center / cover;
}

/* Cabecera temática por página de servicio */
.page-hero.ph-evaluacion {
  background:
    linear-gradient(112deg, rgba(245, 245, 252, 0.97) 0%, rgba(245, 245, 252, 0.88) 43%, rgba(245, 245, 252, 0.36) 100%),
    url("images/charts.jpeg") center / cover;
}

.page-hero.ph-regalias {
  background:
    linear-gradient(112deg, rgba(245, 245, 252, 0.97) 0%, rgba(245, 245, 252, 0.88) 43%, rgba(245, 245, 252, 0.36) 100%),
    url("images/computer.jpeg") center / cover;
}

.page-hero.ph-urbano {
  background:
    linear-gradient(112deg, rgba(245, 245, 252, 0.97) 0%, rgba(245, 245, 252, 0.88) 43%, rgba(245, 245, 252, 0.36) 100%),
    url("images/blueprint.jpeg") center / cover;
}

.page-hero.ph-comunicaciones {
  background:
    linear-gradient(112deg, rgba(245, 245, 252, 0.97) 0%, rgba(245, 245, 252, 0.88) 43%, rgba(245, 245, 252, 0.36) 100%),
    url("images/cameras_event.jpeg") center / cover;
}

.page-hero .lead {
  max-width: 720px;
}

/* --------------------------------------------------------------------------
   9. Banda de propósito / declaraciones
   -------------------------------------------------------------------------- */
.purpose-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  gap: 28px;
  align-items: stretch;
}

.statement {
  padding: 34px;
  border-left: 5px solid var(--lavender);
  background: var(--white);
  box-shadow: var(--shadow);
}

.statement h3 {
  margin-bottom: 14px;
  font-size: 22px;
}

.statement p {
  margin-bottom: 0;
  color: #334553;
  font-size: 19px;
}

.visual-panel {
  min-height: 280px;
  padding: 24px;
  display: grid;
  align-content: end;
  border-radius: 8px;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(var(--primary-rgb), 0.12), rgba(var(--primary-rgb), 0.84)),
    url("images/conected_world.jpeg") center / cover;
  overflow: hidden;
}

.visual-panel span {
  max-width: 240px;
  font-weight: 720;
  line-height: 1.25;
}

/* --------------------------------------------------------------------------
   10. Bloques divididos en dos columnas
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--border);
  background: var(--border);
}

.split article {
  padding: 34px;
  background: var(--white);
}

.split h3 {
  margin-bottom: 14px;
  color: var(--primary);
  font-size: 24px;
}

.split p {
  margin-bottom: 0;
  color: #405160;
}

/* --------------------------------------------------------------------------
   11. Servicios (acordeón)
   -------------------------------------------------------------------------- */
.services {
  background: var(--white);
}

.services-layout {
  display: grid;
  grid-template-columns: 30% 1fr;
  gap: 64px;
  align-items: start;
}

.services-left {
  position: sticky;
  top: 110px;
}

.services-left h2 {
  font-size: clamp(26px, 3vw, 40px);
  margin-bottom: 20px;
}

.accordion {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.acc-item {
  border-bottom: 1px solid var(--border);
  background: var(--white);
  transition: background 0.25s;
}

.acc-item:last-child {
  border-bottom: none;
}

.acc-item.acc-open {
  background: var(--light-2);
}

.acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--ink);
}

.acc-trigger:hover .acc-title {
  color: var(--primary);
}

.acc-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--primary);
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.acc-item:nth-child(2) .acc-num {
  background: var(--gray-brand);
  color: var(--ink);
}

.acc-item:nth-child(3) .acc-num {
  background: var(--primary-dark);
}

.acc-head {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.acc-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  transition: color 0.2s;
}

.acc-sub {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.4;
}

.acc-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: grid;
  place-items: center;
  transition: transform 0.3s, background 0.2s;
}

.acc-icon::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.3s;
}

.acc-open .acc-icon {
  background: var(--primary);
}

.acc-open .acc-icon::before {
  border-color: var(--white);
  transform: rotate(-135deg) translateY(-2px);
}

.acc-body {
  padding: 0 28px 28px 88px;
}

.acc-products {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.acc-products li {
  padding: 18px 0;
  border-top: 1px solid var(--border);
}

.acc-products li:first-child {
  border-top: none;
  padding-top: 0;
}

.acc-products strong {
  display: block;
  margin-bottom: 6px;
  font-size: 17px;
  color: var(--ink);
}

.acc-products p {
  margin: 0;
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   12. Capacitaciones / formación
   -------------------------------------------------------------------------- */
.training {
  background:
    linear-gradient(90deg, rgba(var(--primary-rgb), 0.94), rgba(11, 17, 64, 0.82)),
    url("images/desk_papers_1.jpeg") center / cover;
  color: var(--white);
}

.training .kicker,
.training .lead {
  color: rgba(255, 255, 255, 0.78);
}

.training-head {
  max-width: 760px;
  margin: 0 auto 48px;
}

/* Tarjetas 3D de Eventos y Formación */
.formation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  perspective: 1800px;
}

.formation-card {
  min-height: 260px;
  cursor: pointer;
  outline: none;
}

.formation-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 260px;
  transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
}

.formation-card:hover .formation-card-inner,
.formation-card:focus-visible .formation-card-inner,
.formation-card.is-flipped .formation-card-inner {
  transform: rotateY(180deg);
}

.formation-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  backface-visibility: hidden;
  overflow: hidden;
}

.formation-front {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(11, 17, 64, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 24px 50px rgba(11, 17, 64, 0.35);
  transition: box-shadow 0.35s ease;
}

.formation-card:hover .formation-front {
  box-shadow: 0 30px 60px rgba(11, 17, 64, 0.45);
}

.formation-media {
  position: relative;
  height: 130px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}

.formation-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 17, 64, 0) 50%, rgba(11, 17, 64, 0.92) 100%);
}

.formation-num {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--lavender);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.formation-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 24px 20px;
}

.formation-front h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

.formation-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-end;
  font-size: 12px;
  font-weight: 720;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.65);
}

.formation-hint svg {
  width: 14px;
  height: 14px;
}

.formation-back {
  justify-content: center;
  gap: 14px;
  padding: 30px;
  transform: rotateY(180deg);
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.formation-back h4 {
  margin: 0;
  font-size: 18px;
  color: var(--primary-dark);
}

.formation-back p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-2);
}

/* --------------------------------------------------------------------------
   13. Contacto y mapa
   -------------------------------------------------------------------------- */
.contact {
  padding-bottom: 86px;
  background: var(--white);
  color: var(--ink);
}

.contact .kicker {
  color: var(--primary-dark);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: stretch;
}

.contact-info h2 {
  color: var(--ink);
  margin-bottom: 16px;
  font-size: clamp(26px, 3.5vw, 42px);
}

.contact-lead {
  color: var(--text-2);
  font-size: 17px;
  margin-bottom: 32px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--light-2);
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.contact-detail-label {
  font-size: 11px;
  font-weight: 780;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-dark);
}

.contact-detail span:not(.contact-detail-label),
.contact-detail a {
  font-size: 16px;
  color: var(--ink);
}

.contact-detail a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.contact-map {
  display: flex;
  flex-direction: column;
}

.map-wrapper {
  position: relative;
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

#vencejo-map {
  width: 100%;
  height: 100%;
  min-height: 400px;
}

.map-card {
  position: absolute;
  bottom: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 4px 20px rgba(13, 16, 53, 0.18);
  z-index: 1000;
  max-width: calc(100% - 32px);
}

.map-card-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--primary);
  color: var(--white);
}

.map-card strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.2;
}

.map-card span {
  font-size: 12px;
  color: var(--text-2);
}

.map-tooltip {
  background: var(--white) !important;
  border: none !important;
  border-radius: 6px !important;
  box-shadow: 0 2px 10px rgba(13, 16, 53, 0.15) !important;
  color: var(--ink) !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  padding: 4px 8px !important;
  white-space: nowrap !important;
}

.map-tooltip::before {
  display: none !important;
}

.map-link {
  font-size: 13px;
  color: var(--lavender);
  text-align: right;
}

.map-link:hover {
  color: var(--white);
}

/* --------------------------------------------------------------------------
   14. Agenda / llamado a la acción
   -------------------------------------------------------------------------- */
.agenda {
  padding: 86px 0;
  background:
    linear-gradient(112deg, rgba(var(--primary-rgb), 0.96) 0%, rgba(11, 17, 64, 0.98) 100%),
    url("images/transformation.jpeg") center / cover;
  color: var(--white);
}

.agenda-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}

.agenda-text .kicker {
  color: var(--lavender);
}

.agenda-text h2 {
  color: var(--white);
  font-size: clamp(26px, 3.5vw, 44px);
  margin-bottom: 14px;
}

.agenda-text p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
  margin: 0;
  max-width: 560px;
}

.agenda-action {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.agenda-btn {
  min-width: 240px;
  justify-content: center;
}

.agenda .button.secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
}

.agenda .button.secondary:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* --------------------------------------------------------------------------
   15. Pie de página
   -------------------------------------------------------------------------- */
footer {
  padding: 34px 0;
  border-top: 1px solid var(--border);
  color: #536575;
  background: var(--white);
  font-size: 14px;
}

.footer-grid {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #536575;
  border: 1px solid var(--border);
  background: var(--white);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.social-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--light-2);
}

/* --------------------------------------------------------------------------
   16. Acordeón de servicios — enlaces a subpáginas de línea
   -------------------------------------------------------------------------- */
.acc-body .acc-intro {
  margin: 0 0 18px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.6;
}

.line-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.line-links.single {
  grid-template-columns: 1fr;
}

.line-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--light-2);
}

.line-card h4 {
  margin: 0;
  font-size: 17px;
  line-height: 1.3;
  color: var(--ink);
}

.line-card p {
  margin: 0;
  flex: 1;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-2);
}

.line-card .button {
  align-self: flex-start;
  min-height: 38px;
  padding: 9px 16px;
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   17. Subpáginas de línea de servicio
   -------------------------------------------------------------------------- */
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 620;
  color: var(--text-2);
}

.breadcrumb:hover {
  color: var(--primary);
}

.detail-card {
  padding: 8px 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

/* --------------------------------------------------------------------------
   18. Responsivo
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .nav {
    width: min(100% - 28px, 1160px);
  }

  .nav-links {
    display: none;
  }

  .wrap,
  .footer-grid {
    width: min(100% - 28px, 1160px);
  }

  .hero {
    min-height: auto;
    padding-top: 76px;
  }

  .hero-metrics,
  .section-head,
  .purpose-band,
  .split,
  .services-layout,
  .line-links,
  .formation-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .services-left {
    position: static;
  }

  .acc-body {
    padding-left: 28px;
  }

  .hero-metrics {
    max-width: 100%;
  }

  section {
    padding: 66px 0;
  }

  #vencejo-map {
    height: 280px;
  }

  .agenda-inner {
    grid-template-columns: 1fr;
  }

  .agenda-action {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .agenda-btn {
    min-width: 0;
    flex: 1;
  }

  .footer-right,
  .footer-links {
    align-items: flex-start;
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .formation-card,
  .formation-card-inner {
    min-height: 280px;
  }

  .button {
    width: 100%;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .statement,
  .split article,
  .service-line {
    padding: 24px;
  }
}
