/* ==========================================================================
   All 4 Meet — tema Drupal 11
   Estructura inspirada en maxhub.com/latam, con la paleta de marca All 4 Meet.
   ========================================================================== */

:root {
  --a4m-blue: #1D3D77;
  --a4m-blue-600: #2A55A0;
  --a4m-navy: #14294D;
  --a4m-ink: #0E1B33;
  --a4m-red: #9F1C23;
  --a4m-coral: #E2544D;
  --a4m-steel: #4A6FA5;
  --a4m-cream: #F5F3EE;
  --a4m-line: #E2DFD6;
  --a4m-text: #2B3345;
  --a4m-muted: #5C6B85;
  --header-h: 80px;
  --container: 1320px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --font: 'Figtree', 'Segoe UI', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--a4m-text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--a4m-blue); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 40px; }
.h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 700; letter-spacing: -.01em; text-transform: uppercase; }
.eyebrow {
  font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(255, 255, 255, .85); margin: 0 0 16px;
}
.eyebrow--accent { color: var(--a4m-red); }

/* Botones ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 48px; padding: 0 28px; border-radius: 5px;
  font: 600 15px/1 var(--font); text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn--primary { background: var(--a4m-blue-600); color: #fff; }
.btn--primary:hover, .btn--primary:focus-visible { background: var(--a4m-blue); }
.btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .8); }
.btn--ghost:hover { background: #fff; color: var(--a4m-blue); }
.btn--arrow::after {
  content: ''; width: 16px; height: 16px; flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform .3s var(--ease);
}
.btn--arrow:hover::after { transform: translateX(4px); }
:focus-visible { outline: 2px solid var(--a4m-coral); outline-offset: 3px; }

/* Cabecera ------------------------------------------------------------ */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  color: #fff; background: transparent;
  transition: background-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header::before { /* velo suave para leer el menú sobre fotos claras */
  content: ''; position: absolute; inset: 0 0 -40px; pointer-events: none;
  background: linear-gradient(rgba(8, 18, 38, .55), transparent);
  transition: opacity .35s var(--ease);
}
.site-header.is-solid, .site-header.is-scrolled, .site-header:hover, .site-header.is-open {
  background: #000; color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
}
.site-header.is-solid::before, .site-header.is-scrolled::before,
.site-header:hover::before, .site-header.is-open::before { opacity: 0; }
/* Barra de administración de Drupal (solo con sesión iniciada). */
body { padding-top: var(--drupal-displace-offset-top, 0px); padding-left: var(--drupal-displace-offset-left, 0px); }
.site-header { top: var(--drupal-displace-offset-top, 0px); left: var(--drupal-displace-offset-left, 0px); }
.site-header__inner {
  position: relative; height: 100%; display: flex; align-items: center; gap: 40px;
  max-width: 1600px; margin: 0 auto; padding: 0 40px;
}
.site-header__brand { color: inherit; display: flex; flex: none; }
.a4m-logo { height: 34px; width: auto; display: block; }
.site-nav { flex: 1; height: 100%; }
.site-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; height: 100%; gap: 4px; }
.site-nav .menu__item { display: flex; align-items: center; }
.site-nav .menu > .menu__item > .menu__link {
  display: inline-flex; align-items: center; gap: 6px; height: 100%; padding: 0 16px;
  font: 600 15px/1 var(--font); color: inherit; text-decoration: none; white-space: nowrap;
  background: none; border: 0; cursor: pointer; position: relative;
}
.site-nav .menu > .menu__item > .menu__link::after {
  content: ''; position: absolute; left: 16px; right: 16px; bottom: 22px; height: 2px;
  background: var(--a4m-coral); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.site-nav .menu > .menu__item:hover > .menu__link::after,
.site-nav .menu > .menu__item.is-open > .menu__link::after { transform: scaleX(1); }
.site-nav svg { transition: transform .3s var(--ease); }
.menu__item.is-open svg { transform: rotate(180deg); }

/* Mega menú */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; color: var(--a4m-text); box-shadow: 0 20px 40px rgba(14, 27, 51, .12);
  border-top: 1px solid var(--a4m-line);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.menu__item.has-children:hover .mega, .menu__item.is-open .mega { opacity: 1; visibility: visible; transform: none; }
.mega__inner { max-width: 1600px; margin: 0 auto; padding: 36px 40px 44px; display: grid; grid-template-columns: 240px 1fr; gap: 40px; }
.mega__title { font-size: 26px; font-weight: 700; color: var(--a4m-blue); margin: 0; }
.menu__sub { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 32px; }
.menu__sub .menu__link {
  display: block; padding: 10px 0; color: var(--a4m-text); text-decoration: none; font-weight: 500;
  border-bottom: 1px solid var(--a4m-line); transition: color .2s, padding-left .25s var(--ease);
}
.menu__sub .menu__link:hover { color: var(--a4m-blue-600); padding-left: 6px; }
/* Mega menú oscuro, igual que la cabecera al hacer scroll (solo escritorio). */
@media (min-width: 1025px) {
  .mega { background: #0B0B0B; color: #fff; border-top-color: rgba(255, 255, 255, .1); box-shadow: 0 20px 40px rgba(0, 0, 0, .4); }
  .mega__title { color: #fff; }
  .menu__sub .menu__link { color: rgba(255, 255, 255, .78); border-bottom-color: rgba(255, 255, 255, .12); }
  .menu__sub .menu__link:hover { color: #fff; }
}

.site-header__actions { display: flex; align-items: center; gap: 20px; flex: none; }
.site-search { display: flex; align-items: center; border-bottom: 1px solid currentColor; opacity: .9; }
.site-search input {
  width: 130px; background: transparent; border: 0; color: inherit; font: 14px var(--font); padding: 6px 0;
}
.site-search input::placeholder { color: inherit; opacity: .8; }
.site-search input:focus { outline: none; }
.site-search button { background: none; border: 0; color: inherit; cursor: pointer; padding: 4px; display: flex; }
.site-region { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.site-header__cta { min-height: 44px; padding: 0 26px; }
.site-header__toggle { display: none; background: none; border: 0; color: inherit; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.site-header__toggle span { display: block; height: 2px; background: currentColor; margin: 5px 0; transition: transform .3s, opacity .3s; }
.is-open .site-header__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.is-open .site-header__toggle span:nth-child(2) { opacity: 0; }
.is-open .site-header__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Flechas de carrusel ------------------------------------------------- */
.slider-arrow {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .35);
  cursor: pointer; backdrop-filter: blur(6px); transition: background-color .3s, color .3s;
}
.slider-arrow:hover { background: #fff; color: var(--a4m-blue); }
.slider-arrow--dark { background: #fff; color: var(--a4m-blue); border-color: var(--a4m-line); }
.slider-arrow--dark:hover { background: var(--a4m-blue); color: #fff; }

/* 1. Hero ------------------------------------------------------------- */
.hero { position: relative; height: 100vh; min-height: 620px; max-height: 1080px; overflow: hidden; background: var(--a4m-ink); color: #fff; }
.hero__track, .hero__slide { position: absolute; inset: 0; }
.hero__slide { opacity: 0; visibility: hidden; transition: opacity 1s var(--ease), visibility 1s; }
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transform: scale(1.08); transition: transform 7s linear;
}
.hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10, 22, 46, .82) 0%, rgba(10, 22, 46, .45) 50%, rgba(10, 22, 46, .1) 100%);
}
.hero__slide.is-active .hero__bg { transform: scale(1); }
.hero__content { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.hero__content > * { max-width: 720px; opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.hero__slide.is-active .hero__content > * { opacity: 1; transform: none; }
.hero__slide.is-active .hero__content > :nth-child(2) { transition-delay: .15s; }
.hero__slide.is-active .hero__content > :nth-child(3) { transition-delay: .3s; }
.hero__slide.is-active .hero__content > :nth-child(4) { transition-delay: .45s; }
.hero__title { font-size: clamp(36px, 5vw, 68px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 18px; }
.hero__text { font-size: clamp(17px, 1.5vw, 21px); opacity: .9; margin: 0 0 36px; }
.hero .slider-arrow { position: absolute; top: 50%; margin-top: -26px; z-index: 2; }
.slider-arrow--prev { left: 32px; }
.slider-arrow--next { right: 32px; }
.hero__dots { position: absolute; left: 0; right: 0; bottom: 48px; display: flex; justify-content: center; gap: 12px; z-index: 2; }
.hero__dots button { width: 60px; height: 20px; padding: 0; background: none; border: 0; cursor: pointer; display: flex; align-items: center; }
.hero__dots span { display: block; width: 100%; height: 3px; background: rgba(255, 255, 255, .35); position: relative; overflow: hidden; }
.hero__dots span::after { content: ''; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.hero__dots .is-active span::after { animation: dot-progress var(--autoplay, 6000ms) linear forwards; }
@keyframes dot-progress { to { transform: scaleX(1); } }

/* 2. Soluciones ------------------------------------------------------- */
.solutions { position: relative; min-height: 780px; color: #fff; overflow: hidden; background: var(--a4m-ink); display: flex; align-items: center; }
.solutions__bgs, .solutions__bg { position: absolute; inset: 0; }
.solutions__bg { background-size: cover; background-position: center; opacity: 0; transform: scale(1.05); transition: opacity .8s var(--ease), transform 1.4s var(--ease); }
.solutions__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 27, 51, .9) 0%, rgba(14, 27, 51, .55) 45%, rgba(14, 27, 51, .15) 100%); }
.solutions__bg.is-active { opacity: 1; transform: none; }
.solutions__inner { position: relative; display: grid; grid-template-columns: 300px 1fr; gap: 80px; padding-top: 100px; padding-bottom: 100px; }
.solutions__tabs { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .12); margin-bottom: 36px; }
.solutions__tabs button {
  border: 0; background: none; color: #fff; font: 600 15px var(--font);
  padding: 10px 24px; border-radius: 999px; cursor: pointer; transition: background-color .3s, color .3s;
}
.solutions__tabs .is-active { background: #fff; color: var(--a4m-blue); }
.solutions__list { list-style: none; margin: 0; padding: 0; display: none; }
.solutions__list.is-active { display: block; animation: fade-up .5s var(--ease); }
.solutions__list button {
  width: 100%; text-align: left; background: none; border: 0; color: rgba(255, 255, 255, .6);
  font: 500 19px var(--font); padding: 14px 0 14px 20px; cursor: pointer; position: relative;
  border-left: 2px solid rgba(255, 255, 255, .2); transition: color .3s, border-color .3s;
}
.solutions__list button:hover { color: #fff; }
.solutions__list button.is-active { color: #fff; font-weight: 700; border-left-color: var(--a4m-coral); }
.solutions__panels { display: grid; align-self: end; }
.solutions__panel { grid-area: 1 / 1; max-width: 560px; opacity: 0; visibility: hidden; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease), visibility .6s; }
.solutions__panel.is-active { opacity: 1; visibility: visible; transform: none; }
.solutions__panel p { font-size: 18px; opacity: .9; margin: 0 0 32px; }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* 3. Series ----------------------------------------------------------- */
.series { position: relative; height: 768px; overflow: hidden; color: #fff; background: var(--a4m-ink); }
.series__track, .series__slide { position: absolute; inset: 0; }
.series__slide { opacity: 0; visibility: hidden; transition: opacity .9s var(--ease), visibility .9s; }
.series__slide.is-active { opacity: 1; visibility: visible; }
.series__bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.06); transition: transform 6s linear; }
.series__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 22, 46, .9) 0%, rgba(10, 22, 46, .55) 50%, rgba(10, 22, 46, .6) 100%); }
.series__slide.is-active .series__bg { transform: scale(1); }
.series__content { position: relative; padding-top: 140px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.series__content .h2 { max-width: 900px; }
.series__content p { font-size: 20px; margin: 0 0 32px; opacity: .9; }
.series__nav { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); z-index: 2; }
.series__nav button {
  background: none; border: 0; border-top: 2px solid rgba(255, 255, 255, .25); color: rgba(255, 255, 255, .65);
  font: 500 16px var(--font); text-align: left; padding: 22px 16px 40px 0; cursor: pointer; transition: color .3s, border-color .3s;
}
.series__nav button:hover { color: #fff; }
.series__nav .is-active { color: #fff; border-top-color: #fff; }
.series__nav-num { font-family: var(--mono); font-size: 13px; margin-right: 12px; color: var(--a4m-coral); }

/* 4. Productos -------------------------------------------------------- */
.products { padding: 120px 0; background: var(--a4m-cream); }
.section-head { margin-bottom: 48px; }
.section-head .h2 { color: var(--a4m-ink); }
.products__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.products__grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.products__grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.product-card {
  position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 12px;
  text-decoration: none; color: #fff; background: var(--a4m-navy);
}
.cols-3 .product-card:nth-child(6n+1), .cols-3 .product-card:nth-child(6n+4) { aspect-ratio: auto; }
.product-card__img {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transition: transform 1s var(--ease);
}
.product-card__img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14, 27, 51, .85), rgba(14, 27, 51, 0) 55%); transition: background-color .5s; }
.product-card:hover .product-card__img { transform: scale(1.06); }
.product-card:hover .product-card__img::after { background-color: rgba(29, 61, 119, .35); }
.product-card__body { position: absolute; left: 28px; right: 28px; bottom: 26px; display: flex; flex-direction: column; gap: 10px; }
.product-card__name { font-size: 24px; font-weight: 700; line-height: 1.2; }
.product-card__more {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600;
  opacity: 0; transform: translateY(10px); transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.product-card:hover .product-card__more, .product-card:focus-visible .product-card__more { opacity: 1; transform: none; }

/* 5. Noticias --------------------------------------------------------- */
.news { padding: 120px 0; background: #fff; }
.news__track { display: grid; }
.news__slide {
  grid-area: 1 / 1; display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center;
  opacity: 0; visibility: hidden; transition: opacity .7s var(--ease), visibility .7s;
}
.news__slide.is-active { opacity: 1; visibility: visible; }
.news__text .h2 { color: var(--a4m-ink); }
.news__text p { font-size: 18px; color: var(--a4m-muted); margin: 0 0 32px; }
.news__img { aspect-ratio: 16 / 10; border-radius: 12px; background-size: cover; background-position: center; transform: scale(.96); transition: transform 1s var(--ease); }
.news__slide.is-active .news__img { transform: none; }
.news__controls { display: flex; align-items: center; gap: 20px; margin-top: 40px; }
.news__dots { display: flex; gap: 10px; }
.news__dots button { width: 10px; height: 10px; border-radius: 99px; border: 0; padding: 0; background: var(--a4m-line); cursor: pointer; transition: width .3s var(--ease), background-color .3s; }
.news__dots .is-active { width: 32px; background: var(--a4m-blue); }

/* 6. Acerca de -------------------------------------------------------- */
.about { position: relative; background: #000; color: #fff; padding: 140px 0 120px; overflow: hidden; }
.about__bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .35; }
.about__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #000 20%, rgba(0, 0, 0, .3)); }
.about__inner { position: relative; }
.about__text { max-width: 720px; }
.about__text p { font-size: 17px; opacity: .85; }
.about__text .btn { margin-top: 16px; }
.about__stats { list-style: none; margin: 96px 0 0; padding: 48px 0 0; border-top: 1px solid rgba(255, 255, 255, .2); display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 32px; }
.about__stats strong { display: block; font-size: clamp(34px, 4vw, 54px); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.about__stats span { display: block; margin-top: 8px; opacity: .75; font-size: 15px; }

/* Pie ----------------------------------------------------------------- */
.site-footer { background: var(--a4m-navy); color: rgba(255, 255, 255, .8); padding: 88px 0 32px; font-size: 15px; }
.site-footer a { color: inherit; text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: #fff; }
.site-footer__top { display: grid; grid-template-columns: 1.3fr 2fr 1.2fr; gap: 56px; padding-bottom: 56px; border-bottom: 1px solid rgba(255, 255, 255, .15); }
.site-footer__logo { color: #fff; display: inline-flex; margin-bottom: 32px; }
.site-footer__logo .a4m-logo { height: 38px; }
.site-footer__title { font-size: 18px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 20px; }
.social { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; }
.social a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .25); transition: background-color .3s, color .3s; }
.social a:hover { background: #fff; color: var(--a4m-navy); }
.site-footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.site-footer h3 { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer__cols li { margin-bottom: 12px; }
.site-footer__subscribe p { margin: 0 0 20px; font-size: 14px; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 28px; font-size: 13px; }
.site-footer__bottom p { margin: 0; }
.site-footer__legal { display: flex; gap: 12px; }
.site-footer__copy a { text-decoration: underline; }

/* Páginas internas ---------------------------------------------------- */
.page-inner { padding: calc(var(--header-h) + 64px) 0 96px; min-height: 60vh; }
.page-inner h1 { font-size: clamp(30px, 3.4vw, 46px); color: var(--a4m-ink); }
.page-inner input[type="text"], .page-inner input[type="email"], .page-inner input[type="search"], .page-inner textarea, .page-inner select {
  width: 100%; max-width: 640px; padding: 12px 14px; border: 1px solid #c9ccd4; border-radius: 6px; font: 16px var(--font);
}
.page-inner .form-item { margin-bottom: 20px; }
.page-inner label { display: block; font-weight: 600; margin-bottom: 6px; }
.page-inner .button, .page-inner input[type="submit"] {
  background: var(--a4m-blue-600); color: #fff; border: 0; border-radius: 5px; min-height: 48px; padding: 0 28px;
  font: 600 15px var(--font); cursor: pointer;
}
.page-inner .button:hover { background: var(--a4m-blue); }
.front-messages { position: fixed; top: calc(var(--header-h) + 12px); left: 0; right: 0; z-index: 90; }
[data-drupal-messages] > div { background: #fff; border-left: 4px solid var(--a4m-blue-600); padding: 14px 18px; box-shadow: 0 6px 20px rgba(0, 0, 0, .08); }

/* Animación de aparición --------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease) var(--d, 0ms), transform .9s var(--ease) var(--d, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Responsive ---------------------------------------------------------- */
@media (max-width: 1200px) {
  .site-search, .site-region { display: none; }
  .site-header__inner { gap: 24px; }
}
@media (max-width: 1024px) {
  :root { --header-h: 68px; }
  .container, .site-header__inner { padding: 0 24px; }
  .site-header__toggle { display: block; }
  .site-header__actions { margin-left: auto; }
  .site-nav {
    position: fixed; top: calc(var(--header-h) + var(--drupal-displace-offset-top, 0px)); left: var(--drupal-displace-offset-left, 0px); right: 0; bottom: 0; height: auto;
    background: #fff; color: var(--a4m-text); overflow-y: auto; padding: 16px 24px 40px;
    transform: translateX(100%); visibility: hidden; transition: transform .4s var(--ease), visibility .4s;
  }
  .is-open .site-nav { transform: none; visibility: visible; }
  .site-nav .menu { flex-direction: column; height: auto; gap: 0; }
  .site-nav .menu__item { display: block; border-bottom: 1px solid var(--a4m-line); }
  .site-nav .menu > .menu__item > .menu__link { width: 100%; justify-content: space-between; padding: 20px 0; font-size: 18px; height: auto; }
  .site-nav .menu > .menu__item > .menu__link::after { display: none; }
  .mega { position: static; box-shadow: none; border: 0; opacity: 1; visibility: visible; transform: none; display: none; }
  .menu__item.has-children:hover .mega { display: none; }
  .menu__item.is-open .mega { display: block; }
  .mega__inner { display: block; padding: 0 0 16px; }
  .mega__title { display: none; }
  .menu__sub { grid-template-columns: 1fr; }
  .solutions__inner { grid-template-columns: 1fr; gap: 40px; }
  .products__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-card:nth-child(1), .product-card:nth-child(4) { aspect-ratio: 4 / 5; }
  .news__slide { grid-template-columns: 1fr; gap: 32px; }
  .news__img { order: -1; }
  .about__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__top { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .container, .site-header__inner { padding: 0 16px; }
  .site-header__cta { display: none; }
  .a4m-logo { height: 28px; }
  .hero .slider-arrow { display: none; }
  .hero__dots { bottom: 32px; }
  .solutions { min-height: 0; }
  .solutions__inner { padding-top: 72px; padding-bottom: 72px; }
  .series { height: 640px; }
  .series__content { padding-top: 96px; }
  .series__nav { grid-template-columns: 1fr; }
  .series__nav button { padding: 12px 0; font-size: 14px; }
  .products, .news { padding: 80px 0; }
  .products__grid { grid-template-columns: 1fr; }
  .product-card, .product-card:nth-child(1), .product-card:nth-child(4) { aspect-ratio: 4 / 3; }
  .product-card__more { opacity: 1; transform: none; }
  .about { padding: 96px 0 80px; }
  .about__stats { margin-top: 56px; }
  .site-footer__cols { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Secciones editables (párrafos)
   ========================================================================== */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn--outline { color: var(--a4m-blue); border-color: var(--a4m-blue); }
.btn--outline:hover { background: var(--a4m-blue); color: #fff; }
.rich > :first-child { margin-top: 0; }
.rich a { color: inherit; }
.rich ul, .rich ol { padding-left: 1.2em; }

/* Fondos elegibles */
.bg-blanco { background: #fff; }
.bg-crema { background: var(--a4m-cream); }
.bg-azul { background: var(--a4m-navy); color: #fff; }
.bg-negro { background: #000; color: #fff; }
.bg-azul .h2, .bg-negro .h2, .bg-azul .section-head .h2, .bg-negro .section-head .h2 { color: #fff; }
.bg-azul .eyebrow--accent, .bg-negro .eyebrow--accent { color: var(--a4m-coral); }

.product-card__text { font-size: 15px; opacity: .85; line-height: 1.45; }
.products.bg-blanco { padding: 120px 0; }

/* Texto con imagen */
.split { padding: 120px 0; }
.split__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split--reverse .split__media { order: -1; }
.split__text .h2 { color: var(--a4m-ink); }
.bg-azul .split__text .h2, .bg-negro .split__text .h2 { color: #fff; }
.split__text .rich { font-size: 17px; margin-bottom: 32px; opacity: .9; }
.split__media img { display: block; width: 100%; border-radius: 12px; aspect-ratio: 4 / 3; object-fit: cover; }

/* Banner de llamada a la acción */
.cta { position: relative; padding: 120px 0; background: var(--a4m-blue); color: #fff; overflow: hidden; text-align: center; }
.cta__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.cta__bg::after { content: ''; position: absolute; inset: 0; background: rgba(14, 27, 51, .72); }
.cta__inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.cta__inner p { font-size: 19px; max-width: 680px; margin: 0 0 32px; opacity: .9; }
.cta .btn-row { justify-content: center; }

/* Texto libre */
.textblock { padding: 100px 0; }
.textblock__inner { max-width: 880px; }
.textblock .h2 { color: var(--a4m-ink); }
.textblock.bg-azul .h2, .textblock.bg-negro .h2 { color: #fff; }
.textblock .rich { font-size: 17px; }

/* Página de secciones sin sección oscura arriba */
.page-landing--offset { padding-top: var(--header-h); }

/* Pestañas de edición (solo administradores): botón flotante */
.page-landing .block-local-tasks-block { position: fixed; left: 20px; bottom: 20px; z-index: 120; }
.page-landing .block-local-tasks-block ul { list-style: none; margin: 0; padding: 6px; display: flex; gap: 4px; background: #fff; border-radius: 999px; box-shadow: 0 10px 30px rgba(14, 27, 51, .25); }
.page-landing .block-local-tasks-block a { display: block; padding: 10px 18px; border-radius: 999px; font: 600 14px var(--font); color: var(--a4m-blue); text-decoration: none; }
.page-landing .block-local-tasks-block a:hover, .page-landing .block-local-tasks-block a.is-active { background: var(--a4m-blue); color: #fff; }
.page-inner .block-local-tasks-block ul { list-style: none; padding: 0; display: flex; gap: 16px; margin: 0 0 24px; }
.page-inner .block-local-tasks-block a { font-weight: 600; }
.a4m-logo--img { height: 34px; width: auto; }

@media (max-width: 1024px) {
  .products__grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols-3 .product-card:nth-child(6n+1), .cols-3 .product-card:nth-child(6n+4) { aspect-ratio: 4 / 5; }
  .split__inner { grid-template-columns: 1fr; gap: 40px; }
  .split--reverse .split__media { order: 0; }
  .about__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .series__nav { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .products__grid.cols-2, .products__grid.cols-4 { grid-template-columns: 1fr; }
  .split, .cta, .textblock { padding: 80px 0; }
  .products__grid .product-card, .cols-3 .product-card:nth-child(6n+1), .cols-3 .product-card:nth-child(6n+4) { aspect-ratio: 4 / 3; }
}

/* ==========================================================================
   Páginas internas
   ========================================================================== */
.mega__title { display: inline-flex; align-items: center; gap: 10px; align-self: start; text-decoration: none; }
.mega__title svg { transition: transform .3s var(--ease); }
.mega__title:hover svg { transform: translateX(4px); }

/* Cabecera de página */
.page-hero { position: relative; min-height: 520px; display: flex; align-items: flex-end; background: var(--a4m-ink); color: #fff; overflow: hidden; }
.page-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; animation: page-hero-zoom 8s var(--ease) both; }
.page-hero__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 22, 46, .88) 0%, rgba(10, 22, 46, .55) 55%, rgba(10, 22, 46, .25) 100%); }
@keyframes page-hero-zoom { from { transform: scale(1.08); } to { transform: none; } }
.page-hero__content { position: relative; padding-top: calc(var(--header-h) + 80px); padding-bottom: 80px; animation: fade-up .9s var(--ease) both; }
.page-hero__content > * { max-width: 760px; }
.page-hero__title { font-size: clamp(34px, 4.4vw, 60px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 16px; }
.page-hero__text { font-size: clamp(17px, 1.4vw, 20px); opacity: .9; margin: 0 0 32px; }
.section-head__text { font-size: 18px; color: var(--a4m-muted); max-width: 760px; margin: 0; }
.bg-azul .section-head__text, .bg-negro .section-head__text { color: rgba(255, 255, 255, .8); }

/* Lista de características */
.features { padding: 110px 0; }
.features__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.features__grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.features__grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature { padding: 32px 28px; border-radius: 12px; background: #fff; border: 1px solid var(--a4m-line); transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s; }
.feature:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(14, 27, 51, .1); border-color: transparent; }
.bg-blanco .feature { background: var(--a4m-cream); border-color: transparent; }
.bg-azul .feature, .bg-negro .feature { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); color: #fff; }
.feature__icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--a4m-blue); color: #fff; margin-bottom: 22px; }
.feature__title { font-size: 19px; font-weight: 700; color: var(--a4m-ink); margin: 0 0 8px; }
.bg-azul .feature__title, .bg-negro .feature__title { color: #fff; }
.feature__text { margin: 0; font-size: 15px; color: var(--a4m-muted); }
.bg-azul .feature__text, .bg-negro .feature__text { color: rgba(255, 255, 255, .75); }

/* Listado de noticias */
.news-list { padding: 110px 0; }
.news-list__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.news-card { display: flex; flex-direction: column; text-decoration: none; color: var(--a4m-text); background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid var(--a4m-line); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.news-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(14, 27, 51, .12); }
.news-card__img { aspect-ratio: 16 / 10; background: var(--a4m-navy) center / cover; }
.news-card__body { padding: 24px 24px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news-card__meta { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--a4m-red); }
.news-card__title { font-size: 20px; font-weight: 700; line-height: 1.3; color: var(--a4m-ink); }
.news-card__summary { font-size: 15px; color: var(--a4m-muted); }
.news-card__more { margin-top: auto; font-weight: 600; color: var(--a4m-blue-600); }
.news-list__empty { font-size: 18px; color: var(--a4m-muted); padding: 40px 0; margin: 0; }
.bg-azul .news-list__empty, .bg-negro .news-list__empty { color: rgba(255, 255, 255, .8); }

/* Noticia completa */
.article { max-width: 820px; }
.article__meta { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--a4m-red); margin: -8px 0 16px; }
.article__summary { font-size: 20px; color: var(--a4m-muted); margin: 0 0 32px; }
.article__img { display: block; width: 100%; border-radius: 12px; margin-bottom: 40px; }
.article__body { font-size: 17px; line-height: 1.75; }
.article__back { margin-top: 48px; }
.article__back a { font-weight: 600; text-decoration: none; }

@media (max-width: 1024px) {
  .features__grid, .features__grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-list__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-hero { min-height: 440px; }
  .mega__title { display: none; }
}
@media (max-width: 640px) {
  .features__grid, .features__grid.cols-2, .features__grid.cols-3 { grid-template-columns: 1fr; }
  .news-list__grid { grid-template-columns: 1fr; }
  .features, .news-list { padding: 80px 0; }
  .page-hero__content { padding-top: calc(var(--header-h) + 56px); padding-bottom: 56px; }
}

/* ==========================================================================
   Carrusel de productos (parallax) — réplica de .c-v6series de maxhub.com/latam
   Deslizamiento 1000 ms ease · cortina (interior al 50 %) · autoplay 6 s ·
   botón que sube 140 % → 0 (1,2 s, retraso 0,8 s, 500 ms tras el cambio) ·
   parallax de scroll: foto -50 % → 0 → 50 %, escala 1 → 1,05 → 1; texto 100 → 0 → -100 px.
   ========================================================================== */
.showcase { position: relative; padding-top: 100px; background: #fff; }
.showcase__viewport { position: relative; overflow: hidden; }
.showcase__track { display: flex; transition-property: transform; transition-timing-function: ease; will-change: transform; cursor: grab; }
.showcase.is-dragging .showcase__track { cursor: grabbing; }
.showcase__slide { position: relative; flex: 0 0 100%; overflow: hidden; aspect-ratio: 1920 / 900; }
.showcase__inner { position: absolute; inset: 0; transition-property: transform; transition-timing-function: ease; will-change: transform; }
.showcase__bg { position: absolute; left: 0; top: -5%; display: block; width: 100%; height: 110%; object-fit: cover; transform: translateY(-50%); user-select: none; -webkit-user-drag: none; }
/* Velo lateral solo para texto blanco (las fotos de MAXHUB traen el espacio libre; las nuestras no). */
.showcase__slide--light-text .showcase__inner::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(8, 14, 28, .62) 0%, rgba(8, 14, 28, .28) 45%, rgba(8, 14, 28, 0) 70%); }
.showcase__container { position: absolute; top: 0; left: 50%; transform: translateX(-50%); height: 100%; z-index: 1; }
.showcase__text { display: flex; flex-direction: column; justify-content: center; width: 40%; padding-top: 10%; color: #fff; transform: translateY(100px); will-change: transform; }
.showcase__slide--dark-text .showcase__text { color: #333; }
.showcase__title { font-size: 32px; line-height: 1.5; font-weight: 500; letter-spacing: 0; margin: 0 0 15px; }
.showcase__desc { font-size: 16px; line-height: 1.5; margin: 0 0 40px; }
.showcase__btn-wrap { padding-top: 3px; overflow: hidden; }
.showcase__btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px 35px 14px; line-height: 1; font-size: 15px; font-weight: 500; white-space: nowrap;
  background: var(--a4m-blue-600); color: #fff; border-radius: 5px; text-decoration: none;
  transform: translate3d(0, 140%, 0); transition: background-color .3s;
}
.showcase__btn svg { position: relative; top: -1px; transition: transform .4s ease; }
.showcase__btn:hover { background: #3566B4; }
.showcase__btn:hover svg { transform: translateX(5px); }
.showcase__slide.is-animated .showcase__btn { transform: translate3d(0, 0, 0); transition: transform 1.2s ease .8s, background-color .3s; }

.showcase__arrow {
  position: absolute; top: 50%; margin-top: -22px; z-index: 10; width: 55px; height: 55px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; border: 0; padding: 0; cursor: pointer;
  background: rgba(0, 0, 0, .4); color: #fff; transition: opacity .3s, background-color .3s;
}
.showcase__arrow:hover { background: rgba(0, 0, 0, .6); }
.showcase__arrow--prev { left: 30px; }
.showcase__arrow--next { right: 30px; }
@media (min-width: 1680px) {
  .showcase__arrow--prev { left: 100px; }
  .showcase__arrow--next { right: 100px; }
}
.showcase__arrow:disabled { opacity: .35; cursor: auto; pointer-events: none; }

.showcase__pagination { position: absolute; left: 0; right: 0; bottom: 40px; z-index: 10; display: flex; justify-content: center; padding: 0 15px; }
.showcase__bullet { position: relative; width: 10px; height: 10px; margin: 0 15px; padding: 0; border: 0; border-radius: 50%; background: #fff; cursor: pointer; }
.showcase__bullet:first-child { margin-left: 0; }
.showcase__bullet:last-child { margin-right: 0; }
.showcase__bullet.is-active { background: var(--a4m-blue-600); }
.showcase__bullet::before { content: ''; position: absolute; inset: -17px; } /* área táctil */
.showcase__ring { position: absolute; top: -7px; left: -7px; width: 24px; height: 24px; border-radius: 50%; pointer-events: none; }
.showcase__half { position: absolute; top: 0; width: 50%; height: 100%; overflow: hidden; }
.showcase__half--left { left: 0; }
.showcase__half--right { right: 0; }
.showcase__half > span { position: absolute; top: 0; width: 200%; height: 100%; box-sizing: border-box; border: 1px solid var(--a4m-blue-600); border-radius: 50%; transform: rotate(-45deg); }
.showcase__half--left > span { left: 0; border-top-color: transparent; border-left-color: transparent; }
.showcase__half--right > span { right: 0; border-bottom-color: transparent; border-right-color: transparent; }
.showcase__bullet.is-active .showcase__half--right > span { animation: a4m-circle var(--half, 3000ms) linear forwards; }
.showcase__bullet.is-active .showcase__half--left > span { animation: a4m-circle var(--half, 3000ms) linear var(--half, 3000ms) forwards; }
@keyframes a4m-circle { from { transform: rotate(-45deg); } to { transform: rotate(135deg); } }

@media (max-width: 767px) {
  /* Versión vertical del original: texto centrado, sin flechas. */
  .showcase { padding-top: 50px; }
  .showcase__slide { aspect-ratio: 3 / 4; }
  .showcase__container { width: 100%; }
  .showcase__text { width: 90%; margin: 0 auto; padding-top: 12%; text-align: center; align-items: center; }
  .showcase__slide--light-text .showcase__inner::after { background: linear-gradient(180deg, rgba(8, 14, 28, .65) 0%, rgba(8, 14, 28, .2) 60%, rgba(8, 14, 28, 0) 100%); }
  .showcase__title { font-size: 24px; }
  .showcase__desc { margin-bottom: 25px; }
  .showcase__arrow { display: none; }
  .showcase__pagination { bottom: 25px; }
  .showcase__bullet { margin: 0 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .showcase__bg, .showcase__text { transform: none !important; }
  .showcase__btn { transform: none; }
}
