/* =============================================================
   ACIEM JOBS — Landing CSS
   Outfit (titulos) + DM Sans (cuerpo)
   #d42828 rojo | #4f4f4f gris

   Estructura de archivos relacionados:
   - templates/home/index.html.twig          (layout principal)
   - templates/partials/landing/_*.html.twig (secciones)
   - public/js/landing/landing.js            (sliders + interacción)
============================================================= */

/* ── Variables ── */
:root {
  --r:       #d42828;
  --r-dk:    #a81f1f;
  --r-lt:    rgba(212,40,40,0.08);
  --g:       #4f4f4f;
  --g-lt:    #8a8a8a;
  --bg:      #f8f7f6;
  --bd:      #e8e4e0;
  --tx:      #1e1e1e;
  --wh:      #ffffff;
  --radius:  10px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  color: var(--tx);
  background: var(--wh);
  overflow-x: hidden;
}

/* ================================================================
   NAVBAR
================================================================ */
.nav {
  position: sticky; top: 0; z-index: 1000;
  background: var(--wh); border-bottom: 1px solid var(--bd);
  height: 68px; display: flex; align-items: center;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  width: 100%; display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
}
.nav-logo { display: flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.nav-logo img { height: 44px; width: auto; max-width: 200px; }

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a {
  font-size: 0.9rem; font-weight: 500; color: var(--g);
  text-decoration: none; padding: 6px 14px; border-radius: 6px;
  transition: background 0.18s, color 0.18s; white-space: nowrap;
}
.nav-links a:hover { background: var(--r-lt); color: var(--r); }
.nav-links a.active { color: var(--tx); font-weight: 600; }

.nav-cta {
  background: var(--r); color: var(--wh); text-decoration: none;
  font-size: 0.86rem; font-weight: 600; padding: 10px 20px;
  border-radius: 8px; flex-shrink: 0;
  transition: background 0.18s, transform 0.15s; white-space: nowrap;
}
.nav-cta:hover { background: var(--r-dk); transform: translateY(-1px); }

/* Hamburger */
.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-burger span {
  display: block; width: 24px; height: 2px;
  background: var(--tx); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Panel móvil */
.nav-mobile {
  display: none; position: fixed; top: 68px; left: 0; right: 0;
  background: var(--wh); border-bottom: 1px solid var(--bd);
  padding: 16px 24px 24px; z-index: 999;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  flex-direction: column; gap: 4px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 1rem; font-weight: 500; color: var(--g);
  text-decoration: none; padding: 12px 16px; border-radius: 8px;
  transition: background 0.18s, color 0.18s;
}
.nav-mobile a:hover { background: var(--r-lt); color: var(--r); }
.nav-mobile .nav-cta-mobile {
  margin-top: 8px; background: var(--r); color: var(--wh) !important;
  text-align: center; border-radius: 8px; font-weight: 600;
}

/* ================================================================
   HERO
   Imagen: 1920×600 px | JPG < 400 kb
================================================================ */
.hero { position: relative; height: 520px; overflow: hidden; background: #111; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s ease; }
.hero-slide.active { opacity: 1; }
.hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transform: scale(1.03); transition: transform 6s ease;
}
.hero-slide.active .hero-bg { transform: scale(1); }
.hero-grad {
  position: absolute; inset: 0;
  background: linear-gradient(105deg,
    rgba(15,15,15,0.92) 0%,
    rgba(15,15,15,0.72) 40%,
    rgba(15,15,15,0.15) 70%,
    transparent 100%);
}
.hero-stripe { position: absolute; bottom: 0; right: 0; width: 46%; height: 5px; background: var(--r); z-index: 4; }
.hero-stripe::before {
  content: ''; position: absolute; bottom: 0; left: -60px; right: 0; height: 52px;
  background: var(--r); clip-path: polygon(60px 0%, 100% 0%, 100% 100%, 0% 100%);
}
.hero-content { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; }
.hero-inner { max-width: 1280px; margin: 0 auto; padding: 0 32px; width: 100%; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--r); color: var(--wh);
  font-family: 'Outfit', sans-serif; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 4px; margin-bottom: 18px;
  opacity: 0; transform: translateY(12px); animation: fadeUp 0.5s 0.2s forwards;
}
.hero-h1 {
  font-family: 'Outfit', sans-serif; font-size: 3.8rem; font-weight: 900;
  color: var(--wh); line-height: 1.05; margin-bottom: 16px; max-width: 560px;
  opacity: 0; transform: translateY(14px); animation: fadeUp 0.55s 0.35s forwards;
}
.hero-desc {
  color: rgba(255,255,255,0.65); font-size: 1rem; line-height: 1.65;
  max-width: 440px; margin-bottom: 32px;
  opacity: 0; transform: translateY(14px); animation: fadeUp 0.55s 0.48s forwards;
}
.hero-btn {
  display: inline-block; background: #f5a623; color: #111;
  font-family: 'Outfit', sans-serif; font-size: 0.95rem; font-weight: 700;
  letter-spacing: 0.03em; padding: 14px 34px; border-radius: 8px; text-decoration: none;
  transition: background 0.18s, transform 0.15s;
  opacity: 0; transform: translateY(14px); animation: fadeUp 0.55s 0.58s forwards;
}
.hero-btn:hover { background: #e09418; transform: translateY(-2px); }
.hero-ctrl {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  z-index: 5; display: flex; align-items: center; gap: 10px;
}
.hero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.3); border: none; cursor: pointer; padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.hero-dot.on { background: var(--wh); transform: scale(1.3); }
.hero-arrow {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: var(--wh); width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.2rem; transition: background 0.18s;
  backdrop-filter: blur(4px);
}
.hero-arrow:hover { background: var(--r); border-color: var(--r); }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* ================================================================
   ESTRUCTURA GENERAL DE SECCIONES
   Todas las secciones usan el mismo max-width y centrado.
   El padding lateral está SOLO en main-wrap, nunca en section.
================================================================ */
.main-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px 40px;
}

.landing-section {
  background: var(--wh);
  padding-top: 40px;
  border-top: 1px solid var(--bd);
}
/* Sección alternada — gris muy suave (consejos alt, ofertas) */
.landing-section--alt { background: #f4f3f1; }
/* Sección convenios — fondo blanco con patrón diagonal sutil */
.landing-section--convenios {
  background-color: var(--wh);
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 18px,
    rgba(212,40,40,0.03) 18px,
    rgba(212,40,40,0.03) 19px
  );
  border-top: 1px solid var(--bd);
  padding-top: 40px;
}
/* Sección ofertas — fondo gris azulado muy suave */
.landing-section--ofertas {
  background: #f0f2f5;
  border-top: 1px solid var(--bd);
  padding-top: 40px;
}
.login-horiz-section  { background: var(--bg); border-top: 1px solid var(--bd); padding: 24px 0; }

/* ── Cabeceras de sección ── */
.sec-head { margin-bottom: 20px; }
.sec-label {
  font-family: 'Outfit', sans-serif; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--r);
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
}
.sec-label::before {
  content: ''; width: 20px; height: 2px; background: var(--r); border-radius: 2px; flex-shrink: 0;
}
.sec-h2 {
  font-family: 'Outfit', sans-serif; font-size: 2rem; font-weight: 900;
  color: var(--tx); letter-spacing: -0.03em; line-height: 1.1;
}
.sec-h2.red { color: var(--r); }

/* ================================================================
   GRIDS DE SECCIONES (desktop)
   Los grids son el estado natural en desktop.
   El slider JS solo actúa en mobile y en convenios >3.
================================================================ */

/* ================================================================
   GRIDS DE CONTENIDO (desktop)
   Los grids están en .slider-wrapper, NO en .slider-track.
   Así el track es neutro y JS puede hacer display:flex sin conflicto.
================================================================ */
.consejos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.convenios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.ofertas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* ================================================================
   VISIBILIDAD POR BREAKPOINT
   .desktop-only → visible solo en desktop (≥900px)
   .mobile-only  → visible solo en mobile (<900px)
   NO forzamos display aquí — cada elemento usa su propio display.
   Solo ocultamos con display:none cuando no corresponde.
================================================================ */
.mobile-only  { display: none; }
/* .desktop-only es visible por defecto — no necesita regla */

/* ================================================================
   SNAP SLIDER
   Mobile: 1 item por vista (100% ancho)
   Desktop convenios >3: 3 items por vista (33% ancho)
   CSS puro scroll-snap. Sin JS. Sin conflicto con grids.
================================================================ */
.snap-slider { position: relative; width: 100%; }

.snap-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.snap-track::-webkit-scrollbar { display: none; }

/* Mobile: 1 item = 100% ancho */
.snap-item {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: start;
  padding: 0 4px;
  box-sizing: border-box;
}
.snap-item .consejo-card,
.snap-item .convenio-card,
.snap-item .oferta-card {
  width: 100%;
  box-sizing: border-box;
}

/* Desktop: snap-slider--desktop muestra 3 items por vista */
.snap-slider--desktop { display: block; }
.snap-track--3 { gap: 16px; }
.snap-item--third {
  flex: 0 0 calc(33.333% - 11px);
  width: calc(33.333% - 11px);
  scroll-snap-align: start;
  box-sizing: border-box;
}
.snap-item--third .convenio-card { width: 100%; box-sizing: border-box; }
.snap-hint {
  text-align: center;
  font-size: 0.75rem;
  color: var(--g-lt);
  margin-top: 10px;
  letter-spacing: 0.05em;
}

/* ================================================================
   SNAP NAV — Flechas y puntos para el slider
   Se posiciona DENTRO del .snap-slider como bloque debajo del track.
   El JS los inicializa en mobile y en desktop convenios >3.
================================================================ */
.snap-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  width: 100%;
}
.snap-prev,
.snap-next {
  background: var(--wh);
  border: 1.5px solid var(--bd);
  color: var(--g);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  flex-shrink: 0;
  padding: 0;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
  user-select: none;
}
.snap-prev:hover,
.snap-next:hover {
  background: var(--r);
  border-color: var(--r);
  color: var(--wh);
}
.snap-prev:disabled,
.snap-next:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}
.snap-dots {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.snap-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bd);
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s;
}
.snap-dot.active {
  background: var(--r);
  transform: scale(1.35);
}


.slider-nav {
  display: none;
  align-items: center; justify-content: center;
  gap: 12px; margin-top: 20px;
}
.slider-prev, .slider-next {
  background: var(--wh); border: 1.5px solid var(--bd);
  color: var(--g); width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.1rem; flex-shrink: 0;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}
.slider-prev:hover, .slider-next:hover {
  background: var(--r); border-color: var(--r); color: var(--wh);
}
.slider-prev:disabled, .slider-next:disabled {
  opacity: 0.3; cursor: not-allowed;
}
.slider-dots { display: flex; gap: 6px; align-items: center; }
.slider-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--bd); border: none; cursor: pointer; padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.slider-dot.active { background: var(--r); transform: scale(1.3); }

/* ================================================================
   CARDS DE CONSEJOS
   Imagen: 600×400 px | ratio 3:2 | JPG/WEBP < 250 kb
================================================================ */
.consejo-card {
  position: relative; height: 210px; border-radius: var(--radius);
  overflow: hidden; display: block; text-decoration: none;
  background: #1a2535; cursor: pointer; width: 100%;
  transition: transform 0.25s, box-shadow 0.25s;
}
.consejo-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.2); }
.consejo-card-img {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transition: transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94);
}
.consejo-card:hover .consejo-card-img { transform: scale(1.07); }
.consejo-card-overlay {
  position: absolute; inset: 0;
  /* Capa base siempre activa: azul oscuro arriba, negro abajo
     Garantiza legibilidad incluso con imágenes blancas */
  background: linear-gradient(
    170deg,
    rgba(10,20,40,0.45) 0%,
    rgba(0,0,0,0.82) 100%
  );
  transition: background 0.3s;
}
.consejo-card:hover .consejo-card-overlay {
  background: linear-gradient(
    170deg,
    rgba(212,40,40,0.45) 0%,
    rgba(0,0,0,0.88) 100%
  );
}
.consejo-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: var(--r); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
.consejo-card:hover::after { transform: scaleX(1); }
.consejo-card-body {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 18px 16px;
}
/* Título consejo — siempre visible, grande y legible */
.consejo-card-title {
  font-family: 'Outfit', sans-serif; color: var(--wh);
  font-size: 1.2rem; font-weight: 900;
  line-height: 1.25; margin-bottom: 10px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  border-left: 3px solid #f5a623;
  padding-left: 8px;
  transform: none; transition: none;
}
.consejo-card:hover .consejo-card-title { transform: translateY(0); }
.consejo-read {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.84rem; font-weight: 600; color: #f5a623;
  opacity: 0; transform: translateY(6px); transition: opacity 0.3s, transform 0.3s;
}
.consejo-card:hover .consejo-read { opacity: 1; transform: translateY(0); }
.consejo-read svg { width: 14px; height: 14px; transition: transform 0.2s; }
.consejo-card:hover .consejo-read svg { transform: translateX(3px); }
/* Colores de respaldo sin imagen */
.consejo-card:nth-child(1) .consejo-card-img { background-color: #1a2740; }
.consejo-card:nth-child(2) .consejo-card-img { background-color: #2a1520; }
.consejo-card:nth-child(3) .consejo-card-img { background-color: #1a2a1a; }
.consejo-card:nth-child(4) .consejo-card-img { background-color: #261a10; }
.consejo-card:nth-child(5) .consejo-card-img { background-color: #1a1a2e; }
.consejo-card:nth-child(6) .consejo-card-img { background-color: #1f1a2a; }

/* ================================================================
   CARDS DE CONVENIOS
   Imagen logo: 400×120 px | PNG transparente
================================================================ */
.convenio-card {
  background: var(--wh); border: 1.5px solid var(--bd);
  border-radius: var(--radius); padding: 22px 18px;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; height: 100%;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.convenio-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--r); transform: scaleX(0); transform-origin: left; transition: transform 0.35s;
}
.convenio-card:hover { border-color: var(--r); box-shadow: 0 8px 28px rgba(212,40,40,0.12); transform: translateY(-3px); }
.convenio-card:hover::before { transform: scaleX(1); }
/* Título convenio — uppercase, rojo, llamativo */
.convenio-card-nombre {
  font-family: 'Outfit', sans-serif; font-size: 1.05rem; font-weight: 900;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--r);
  margin-bottom: 14px; line-height: 1.4;
  border-left: 3px solid var(--r);
  padding-left: 10px;
}
.convenio-imagen {
  max-width: 100%; max-height: 72px; object-fit: contain;
  margin-bottom: 14px; display: block;
}
.convenio-lista { list-style: none; padding: 0; margin: 0 0 16px; flex: 1; }
.convenio-lista li {
  font-size: 0.92rem; color: var(--g);
  padding: 6px 0 6px 16px; position: relative;
  border-bottom: 1px solid var(--bd); line-height: 1.45;
}
.convenio-lista li:last-child { border-bottom: none; }
.convenio-lista li::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 6px; height: 6px; border-radius: 50%; background: var(--r);
}
.convenio-btn {
  display: inline-block; background: var(--r); color: var(--wh);
  font-family: 'Outfit', sans-serif; font-size: 0.88rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; padding: 10px 20px;
  border-radius: 7px; text-decoration: none; align-self: flex-start; margin-top: auto;
  transition: background 0.18s, transform 0.15s;
}
.convenio-btn:hover { background: var(--r-dk); transform: translateY(-1px); }

/* ================================================================
   LOGIN VERTICAL (columna lateral)
================================================================ */
.login-box {
  background: var(--bg); border: 1.5px solid var(--bd);
  border-radius: 14px; padding: 28px 24px;
  position: relative; overflow: hidden;
  min-height: 380px;
}
.login-box::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--r), #ff6b6b);
}
.login-h {
  font-family: 'Outfit', sans-serif; font-size: 1.05rem; font-weight: 800;
  color: var(--tx); line-height: 1.3; margin-bottom: 24px; text-align: center;
}
.login-field { margin-bottom: 18px; }
.login-field label {
  display: block;
  margin-bottom: 8px;
  color: var(--g);
  font-size: 0.95rem;
  font-weight: 600;
}
.login-input {
  width: 100%; background: var(--wh); border: 1.5px solid var(--bd);
  border-radius: 8px; padding: 16px 14px;
  min-height: 50px;
  font-family: 'DM Sans', sans-serif; font-size: 0.95rem; color: var(--tx);
  transition: border-color 0.2s, box-shadow 0.2s; box-sizing: border-box; display: block;
}
.login-input:focus { border-color: var(--r); box-shadow: 0 0 0 3px rgba(212,40,40,0.1); outline: none; }
.login-input::placeholder { color: #bbb; }
.login-btn {
  width: 100%; background: var(--r); color: var(--wh); border: none;
  border-radius: 8px; padding: 13px;
  font-family: 'Outfit', sans-serif; font-size: 0.96rem; font-weight: 700;
  letter-spacing: 0.04em; cursor: pointer;
  margin-top: 2px; margin-bottom: 14px;
  transition: background 0.18s, transform 0.15s;
}
.login-btn:hover { background: var(--r-dk); transform: translateY(-1px); }
.login-links { text-align: center; }
.login-link {
  display: block; font-size: 0.82rem; color: var(--g-lt);
  text-decoration: none; margin-bottom: 6px; transition: color 0.18s;
}
.login-link:hover { color: var(--g); }
.login-sub { font-size: 0.8rem; color: #aaa; }
.login-link-reg { color: var(--r); font-weight: 600; font-size: 0.82rem; text-decoration: none; }
.login-link-reg:hover { text-decoration: underline; }

.aciem-modal-overlay,
.aciem-modal {
  display: none;
}
.aciem-modal-overlay.open {
  display: block;
  position: fixed;
  inset: 0;
  background: rgba(8,8,8,0.42);
  z-index: 9998;
}
.aciem-modal.open {
  display: flex;
  position: fixed;
  inset: 0;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
}
.aciem-modal-card {
  background: var(--wh);
  border-radius: 20px;
  border: 1px solid rgba(219, 219, 219, 0.85);
  box-shadow: 0 25px 45px rgba(0,0,0,0.12);
  max-width: 520px;
  width: 100%;
  padding: 26px 24px;
  position: relative;
  overflow: hidden;
}
.aciem-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: none;
  background: rgba(0,0,0,0.06);
  border-radius: 50%;
  font-size: 1.2rem;
  color: var(--g);
  cursor: pointer;
}
.aciem-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(220,220,220,0.9);
  margin-bottom: 20px;
}
.aciem-modal-logo {
  flex: 0 0 auto;
}
.aciem-modal-logo img {
  height: 48px;
  width: auto;
  display: block;
}
.aciem-modal-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 0 12px;
}
.aciem-modal-card p {
  color: #4d4d4d;
  line-height: 1.8;
  margin-bottom: 24px;
  font-size: 0.97rem;
}
.aciem-modal-body {
  padding-bottom: 0;
}
.aciem-modal-form {
  display: grid;
  gap: 16px;
}
.aciem-form-row {
  display: grid;
  gap: 8px;
}
.aciem-form-row label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #555;
}
.aciem-register-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
  margin-bottom: 24px;
}
.aciem-register-card {
  background: #fafafa;
  border: 1px solid rgba(221,221,221,0.9);
  border-radius: 18px;
  padding: 26px 18px;
  text-align: center;
  text-decoration: none;
  color: var(--tx);
  transition: border-color 0.2s, transform 0.2s, background 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 190px;
}
.aciem-register-card:hover {
  border-color: rgba(212,40,40,0.8);
  background: #fff7f7;
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(212,40,40,0.08);
}
.aciem-register-card i {
  color: var(--r);
  margin-bottom: 16px;
  font-size: 2.6rem;
}
.aciem-register-card h4 {
  margin-top: 0;
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  margin-bottom: 8px;
}
.aciem-register-card p {
  margin: 0;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 240px;
}
@media (max-width: 700px) {
  .aciem-register-grid {
    grid-template-columns: 1fr;
  }
  .aciem-modal-card {
    padding: 22px 18px;
  }
  .aciem-modal-header {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
  .aciem-modal-title {
    font-size: 1.15rem;
  }
  .aciem-register-card {
    min-height: auto;
    padding: 20px 16px;
  }
}
.aciem-modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.aciem-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  min-width: 136px;
}
.aciem-btn-primary {
  background: var(--r);
  color: var(--wh);
}
.aciem-btn-secondary {
  background: #f5f5f5;
  color: #333;
}

/* LOGIN HORIZONTAL (banner full-width, Layout B y D) */
.login-horiz-section {
  background: var(--bg); border-top: 1px solid var(--bd); padding: 24px 0;
}
.login-horiz {
  background: var(--wh); border: 1px solid rgba(0,0,0,0.09); border-radius: 16px;
  padding: 24px 26px; position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr 2fr; gap: 36px; align-items: center;
}
.login-horiz::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--r), #ff6b6b);
}
.login-horiz .login-h { text-align: left; font-size: 1.08rem; margin-bottom: 12px; }
.login-desc { font-size: 0.92rem; color: #6f6f6f; line-height: 1.7; max-width: 400px; }
.login-horiz-fields {
  display: grid; grid-template-columns: 1fr;
  gap: 14px; align-items: stretch; margin-bottom: 14px;
}
.login-horiz-fields .login-btn { margin: 0; width: 100%; padding: 14px 22px; }
.login-horiz-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.login-horiz-form .login-links {
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap; justify-content: center; text-align: center;
}
.login-horiz-form .login-link { color: #6f6f6f; }
.login-horiz-form .login-link:hover { color: var(--r); }
.login-horiz-form .login-link-reg { color: var(--r); font-weight: 700; }
.login-horiz-form .login-link { display: inline; margin-bottom: 0; }

/* ================================================================
   CARDS DE OFERTAS
================================================================ */
.oferta-card {
  background: var(--wh); border: 1.5px solid var(--bd); border-radius: var(--radius);
  padding: 18px 16px; display: flex; flex-direction: column; text-decoration: none;
  position: relative; overflow: hidden; height: 100%;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.oferta-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--r); transform: scaleX(0); transform-origin: left; transition: transform 0.28s;
}
.oferta-card:hover { border-color: transparent; box-shadow: 0 8px 28px rgba(0,0,0,0.1); transform: translateY(-3px); }
.oferta-card:hover::after { transform: scaleX(1); }
.oferta-tag {
  display: inline-block; background: var(--r-lt); color: var(--r);
  font-family: 'Outfit', sans-serif; font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 9px;
  border-radius: 4px; margin-bottom: 10px; align-self: flex-start;
}
.oferta-titulo {
  font-family: 'Outfit', sans-serif; font-size: 1rem; font-weight: 800;
  color: var(--tx); margin-bottom: 5px; line-height: 1.3;
}
.oferta-lugar { font-size: 0.8rem; color: var(--g-lt); margin-bottom: 4px; }
.oferta-fecha {
  font-size: 0.76rem; color: var(--g-lt); border-top: 1px solid var(--bd);
  padding-top: 10px; margin-top: auto;
}
.ver-todas {
  display: inline-flex; align-items: center; gap: 7px; color: var(--r);
  font-family: 'Outfit', sans-serif; font-size: 0.9rem; font-weight: 700;
  letter-spacing: 0.04em; text-decoration: none; margin-top: 20px; transition: gap 0.2s;
}
.ver-todas:hover { gap: 12px; }
.ver-todas svg { width: 16px; height: 16px; }

/* ================================================================
   LAYOUTS COMPUESTOS (desktop)
   Todos usan align-items: start para que cada columna tenga
   su propia altura sin afectar a las demás.
================================================================ */

/* LAYOUT A: [Consejos 5fr | Convenio 4fr | Login 3fr] */
.layout-a {
  display: grid;
  grid-template-columns: 5fr 4fr 3fr;
  gap: 36px;
  align-items: stretch;
}
/* Layout-col-login: centrar el login vertical dentro de su columna */
.layout-a .layout-col-login {
  position: relative;
  min-height: 100px;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 24px 0;
}
.layout-a .layout-col-login .login-box {
  width: 100%;
  max-width: 420px;
  margin: 0;
}

/* LAYOUT B: [Consejos 3fr | Convenio 2fr] */
.layout-b-top {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 36px;
  align-items: start;
}

/* LAYOUT C: [Consejos 3fr | Login 1fr] */
.layout-c {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 36px;
  align-items: stretch;
}
.layout-c .layout-col-login {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.layout-c .login-box { max-width: 100%; width: 100%; }

/* ── Otros ── */
.empty-msg { color: var(--g-lt); font-size: 0.9rem; }

/* ================================================================
   FOOTER
================================================================ */
footer {
  background: #111; padding: 28px 32px;
  display: flex; align-items: center; justify-content: center; gap: 16px;
}
.foot-logo { font-family: 'Outfit', sans-serif; font-size: 1.1rem; font-weight: 900; }
.foot-logo span:first-child { color: #777; }
.foot-logo span:last-child  { color: var(--r); }
.foot-copy { font-size: 0.72rem; color: #444; }

/* ================================================================
   SCROLL REVEAL
================================================================ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ================================================================
   RESPONSIVE
   ≤1100px → Layout A pasa a 2 cols (Login abajo)
   ≤900px  → Hamburger, layouts a 1 col, sliders activos
   ≤600px  → Hero más pequeño, fuentes reducidas
   ≤400px  → Ajustes mínimos
================================================================ */

/* Tablet grande ≤1100px */
@media (max-width: 1100px) {
  .layout-a {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .layout-a .layout-col:last-child {
    grid-column: 1 / -1;
  }
  .layout-a .layout-col:last-child .login-box {
    max-width: 460px;
    margin: 0 auto;
  }
}

/* Tablet ≤900px — aquí activan los sliders (JS) */
@media (max-width: 900px) {
  /* Navbar */
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }

  /* En mobile: mostrar snap-slider, ocultar grid desktop */
  .mobile-only  { display: block; }
  .desktop-only { display: none !important; }

  /* Hero */
  .hero { height: 400px; }
  .hero-h1 { font-size: 2.6rem; }
  .hero-inner { padding: 0 24px; }
  .hero-stripe::before { height: 38px; }

  /* Wrapper — menos padding lateral en tablet */
  .main-wrap { padding: 0 20px 32px; }

  /* Layouts → 1 columna apilada */
  .layout-a,
  .layout-b-top,
  .layout-c {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .layout-a .layout-col:last-child { grid-column: auto; }
  .layout-a .layout-col:last-child .login-box { max-width: 100%; }
  .layout-c .login-box { max-width: 100%; }

  /* Espacio entre columnas apiladas */
  .layout-col { padding-bottom: 32px; width: 100%; box-sizing: border-box; }

  /* Login box: ancho completo en mobile, sin max-width que recorte */
  .login-box,
  .layout-a .layout-col:last-child .login-box,
  .layout-c .login-box {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box;
    text-align: center;
  }
  .login-field { text-align: left; }
  .login-links { text-align: center; }
  .login-btn   { width: 100%; }
  .login-horiz {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 22px 20px;
  }
  .login-horiz .login-h { text-align: center; }
  .login-horiz-fields { grid-template-columns: 1fr; }
  .login-horiz-fields .login-btn { grid-column: auto; width: 100%; }
  .login-horiz-form .login-links { justify-content: center; flex-direction: column; align-items: center; gap: 6px; }

  /* Cards de consejos en mobile */
  .consejo-card { height: 200px; }

  /* Centrar sec-label en mobile */
  .sec-label { justify-content: flex-start; }

  /* Login box: centrar contenido — ya definido arriba */

  /* Ver todas centrado */
  .ver-todas { display: inline-flex; }
}

/* Móvil ≤600px */
@media (max-width: 600px) {
  .hero { height: 290px; }
  .hero-h1 { font-size: 1.95rem; max-width: 100%; }
  .hero-desc { font-size: 0.88rem; margin-bottom: 18px; }
  .hero-btn { padding: 11px 22px; font-size: 0.9rem; }
  .hero-stripe::before { height: 26px; }
  .hero-ctrl { bottom: 14px; }
  .hero-arrow { width: 34px; height: 34px; }
  .hero-inner { padding: 0 16px; }

  .main-wrap { padding: 0 16px 28px; }
  .landing-section { padding-top: 32px; }
  .sec-h2 { font-size: 1.45rem; }

  .login-horiz-fields { grid-template-columns: 1fr; }
  .login-horiz-form .login-links { flex-direction: column; align-items: center; gap: 6px; }

  footer { flex-direction: column; gap: 8px; padding: 24px 20px; text-align: center; }
}

/* Móvil pequeño ≤400px */
@media (max-width: 400px) {
  .hero { height: 250px; }
  .hero-h1 { font-size: 1.65rem; }
  .nav { height: 60px; }
  .nav-mobile { top: 60px; }
}
