/* =========================================================================
   EuroLatam Solutions Group — SECCIONES Y PÁGINAS
   Composiciones específicas. Los componentes reutilizables viven en
   components.css; aquí sólo va el layout de cada bloque.
   ========================================================================= */

/* =========================================================
   HERO PORTADA
   ========================================================= */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(68svh, 640px);
  padding-block: var(--sp-2xl);
  overflow: hidden;
}

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

.hero__bg video,
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__bg img {
  /* Movimiento cinematográfico: zoom lento y continuo sobre la foto.
     Se desactiva solo si el usuario pide menos animación. */
  animation: hero-kenburns 26s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes hero-kenburns {
  from {
    transform: scale(1) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(1.5%, -1%, 0);
  }
}

/* Velo cinematográfico: la foto aporta el drama, el texto se mantiene legible */
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  /* Velo más ligero: el vídeo respira y el texto sigue legible sobre la franja izquierda */
  /* Velo uniforme: la misma transparencia en todo el vídeo, sin degradado lateral */
  background: rgba(7, 16, 30, 0.68);
}

/* Luz cinematográfica en movimiento — dinamismo sutil, solo azules de marca */
.hero::after,
.page-hero::after {
  content: '';
  position: absolute;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(38% 45% at 78% 18%, rgba(74, 150, 212, 0.16), transparent 70%),
    radial-gradient(30% 40% at 15% 85%, rgba(34, 113, 179, 0.12), transparent 70%);
  animation: hero-glow 14s ease-in-out infinite alternate;
}

@keyframes hero-glow {
  from {
    transform: translate3d(-2%, -1%, 0) scale(1);
    opacity: 0.8;
  }
  to {
    transform: translate3d(2%, 2%, 0) scale(1.06);
    opacity: 1;
  }
}


/* Sobre el vídeo, la línea azul del titular sube a Blue Light para destacar */
.hero .headline-accent {
  color: var(--blue-light);
}

/* El eyebrow del hero: un punto más grande y casi blanco para que se lea sobre el vídeo */
.hero .eyebrow {
  font-size: 0.8125rem;
  color: rgba(240, 244, 248, 0.95);
}

.hero .hero__note {
  color: rgba(240, 244, 248, 0.9);
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero__content {
  max-width: 800px;
  /* Sombra fina y nítida: define el borde de la letra sin emborronarla */
  text-shadow: 0 1px 2px rgba(7, 16, 30, 0.6);
}

/* Los botones no heredan la sombra del texto: letra limpia sobre fondo sólido */
.hero__content .btn {
  text-shadow: none;
}

.hero h1 {
  margin-bottom: var(--sp-l);
}

.hero__lead {
  max-width: 56ch;
  margin-bottom: var(--sp-xl);
  font-size: var(--fs-body-lg);
  color: rgba(240, 244, 248, 0.95); /* casi blanco: legible sobre el vídeo */
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-m);
  margin-bottom: var(--sp-2xl);
}

.hero__note {
  display: flex;
  align-items: center;
  gap: var(--sp-s);
  font-size: 0.8125rem;
  color: var(--fg-2);
}

.hero__note svg {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--accent);
}


/* =========================================================
   HERO DE PÁGINA INTERIOR
   ========================================================= */
.page-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(320px, 46vh, 460px);
  padding-block: var(--sp-4xl) var(--sp-3xl);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.page-hero__bg {
  position: absolute;
  inset: 0;
}

.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 16, 30, 0.95) 20%, rgba(7, 16, 30, 0.7) 100%),
    linear-gradient(0deg, var(--deep-space) 0%, rgba(7, 16, 30, 0) 60%);
}

.page-hero__inner {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  max-width: 18ch;
}

.page-hero__lead {
  max-width: 58ch;
  margin-top: var(--sp-l);
  color: var(--fg-2);
  font-size: var(--fs-body-lg);
}

/* Migas de pan */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-s);
  margin-bottom: var(--sp-l);
  font-family: var(--font-display);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-2);
  list-style: none;
  padding: 0;
}

.breadcrumb a {
  color: var(--fg-2);
  transition: color var(--t);
}

.breadcrumb a:hover {
  color: var(--fg-1);
}

.breadcrumb li[aria-current] {
  color: var(--accent);
}

.breadcrumb li + li::before {
  content: '·';
  margin-right: var(--sp-s);
  color: var(--muted);
}

/* =========================================================
   FRANJA DE ALIADOS
   ========================================================= */
.partners {
  padding-block: var(--sp-2xl);
  border-block: 1px solid var(--border);
  background: var(--bg-2);
}

.partners__label {
  margin-bottom: var(--sp-xl);
  text-align: center;
  font-family: var(--font-display);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--fg-2);
}

.partners__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-l);
  align-items: center;
}

@media (min-width: 640px) {
  .partners__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .partners__grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.partners__grid img {
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  opacity: 0.65;
  filter: grayscale(1);
  transition: opacity var(--t), filter var(--t);
}

.partners__grid img:hover {
  opacity: 1;
  filter: none;
}

/* =========================================================
   BLOQUE PARTIDO (texto + imagen)
   ========================================================= */
.split {
  display: grid;
  gap: var(--sp-2xl);
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-4xl);
  }
  .split--reverse .split__media {
    order: -1;
  }
}

.split__media {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-media);
  overflow: hidden;
}

.split__media img,
.split__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.split__media--tall img {
  aspect-ratio: 4 / 5;
}

.split__text h2 {
  margin-bottom: var(--sp-m);
}

/* El badge de estado precede al titular y necesita aire propio */
.split__text .badge {
  margin-bottom: var(--sp-m);
}

.split__text p {
  color: var(--fg-2);
  margin-bottom: var(--sp-m);
}

.split__text .btn {
  margin-top: var(--sp-l);
}

/* Lista con marca de verificación */
.checklist {
  display: grid;
  gap: var(--sp-m);
  margin: var(--sp-l) 0 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-m);
  color: var(--fg-2);
}

.checklist svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  color: var(--accent);
}

.checklist strong {
  display: block;
  color: var(--fg-1);
  font-family: var(--font-display);
  font-weight: 600;
}

/* =========================================================
   BANDA CTA
   ========================================================= */
.cta-band {
  position: relative;
  padding-block: var(--section-y);
  background: var(--bg-2);
  border-block: 1px solid var(--border);
  overflow: hidden;
}

/* Línea diagonal sutil — único elemento gráfico decorativo permitido */
.cta-band::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 60%;
  height: 180%;
  border-left: 1px solid var(--border-accent);
  transform: rotate(12deg);
  opacity: 0.4;
  pointer-events: none;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: -30%;
  pointer-events: none;
  background: radial-gradient(40% 55% at 82% 30%, rgba(74, 150, 212, 0.12), transparent 70%);
  animation: hero-glow 16s ease-in-out infinite alternate;
}

.cta-band__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--sp-xl);
  align-items: center;
}

@media (min-width: 900px) {
  .cta-band__inner {
    grid-template-columns: 1.5fr auto;
    gap: var(--sp-4xl);
  }
}

.cta-band h2 {
  margin-bottom: var(--sp-m);
}

.cta-band p {
  color: var(--fg-2);
  max-width: 54ch;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-m);
}

/* =========================================================
   OFICINAS
   ========================================================= */
.office {
  overflow: hidden;
}

.office__media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

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

.office__body {
  padding: var(--sp-l);
  display: grid;
  gap: var(--sp-s);
}

.office__city {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
}

.office__addr {
  font-size: 0.875rem;
  color: var(--fg-2);
}

/* =========================================================
   EQUIPO
   ========================================================= */
.team-grid {
  display: grid;
  gap: var(--sp-l);
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 900px) {
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.member__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  margin-bottom: var(--sp-m);
}

.member__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.35);
  transition: filter var(--t), transform 700ms var(--ease);
}

.member:hover .member__photo img {
  filter: none;
  transform: scale(1.03);
}

.member__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
}

.member__role {
  font-size: 0.8125rem;
  color: var(--fg-2);
}

/* =========================================================
   LÍNEA DE TIEMPO / HITOS
   ========================================================= */
.timeline {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--border);
}

.timeline li {
  position: relative;
  padding: 0 0 var(--sp-xl) var(--sp-xl);
}

.timeline li::before {
  content: '';
  position: absolute;
  left: -4.5px;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: var(--radius-round);
}

.timeline__year {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  color: var(--accent);
}

.timeline__text {
  margin-top: var(--sp-s);
  color: var(--fg-2);
}

/* =========================================================
   CONTACTO
   ========================================================= */
.contact {
  display: grid;
  gap: var(--sp-2xl);
  align-items: start;
}

@media (min-width: 1000px) {
  .contact {
    grid-template-columns: 1.15fr 0.85fr;
    gap: var(--sp-4xl);
  }
}

.form-panel {
  padding: clamp(var(--sp-l), 3vw, var(--sp-2xl));
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
}

.form-grid {
  display: grid;
  gap: var(--sp-l);
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.aside-panel {
  display: grid;
  gap: var(--sp-l);
  padding: var(--sp-xl);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
}

.aside-panel__row {
  display: grid;
  gap: var(--sp-xs);
  padding-bottom: var(--sp-l);
  border-bottom: 1px solid var(--border);
}

.aside-panel__row:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

.aside-panel__label {
  font-family: var(--font-display);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--fg-2);
}

.aside-panel__value {
  font-size: 1rem;
  color: var(--fg-1);
}

.aside-panel__value a {
  color: var(--fg-1);
  transition: color var(--t);
}

.aside-panel__value a:hover {
  color: var(--accent);
}

/* Mapa — placeholder sustituible por un iframe/imagen real */
.map {
  position: relative;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  gap: var(--sp-s);
  padding: var(--sp-l);
  text-align: center;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  color: var(--fg-2);
  font-size: 0.8125rem;
}

.map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--radius-card);
}

/* =========================================================
   EVENTOS
   ========================================================= */
.event__date {
  display: grid;
  place-items: center;
  gap: 2px;
  flex: none;
  width: 64px;
  padding: var(--sp-s);
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  font-family: var(--font-display);
  line-height: 1;
}

.event__day {
  font-size: 1.5rem;
  font-weight: 700;
}

.event__month {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.event__head {
  display: flex;
  align-items: center;
  gap: var(--sp-m);
}

/* =========================================================
   CONTENIDO LEGAL / TEXTO LARGO
   ========================================================= */
.prose {
  max-width: 72ch;
}

.prose h2 {
  margin-top: var(--sp-2xl);
  margin-bottom: var(--sp-m);
  font-size: var(--fs-h3);
}

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

.prose p,
.prose li {
  color: var(--fg-2);
  margin-bottom: var(--sp-m);
}

.prose ul {
  padding-left: var(--sp-l);
}

.prose strong {
  color: var(--fg-1);
}
