/* ============================================================
   Landings temáticas — /oferta/<slug> y hub /ofertas
   Diseño cuidado, consistente con el resto del sitio.
   Color primario corporativo: #007DC3.
   ============================================================ */

/* Hero / Header */
/* main.scala.html envuelve el @content en <div class="container">, que
   limita el ancho a ~1170px. Para que las landings tengan un fondo
   edge-to-edge (full-bleed), rompemos el contenedor con margins negativos
   contra el viewport. */
.landing-page {
  background: #eef2f7;
  min-height: 100vh;
  padding-bottom: 60px;
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

body { overflow-x: hidden; }

/* El hero azul debe ocupar también todo el ancho (el .landing-page ya
   lo hace, pero el padding interior se gestiona con .container dentro). */
.landing-page .landing-hero {
  padding-bottom: 80px;
  padding-top: 70px;
}

.landing-page .landing-hero {
  background: linear-gradient(135deg, #007DC3 0%, #005a8e 100%);
  color: #fff;
  padding: 60px 0 50px;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
}

.landing-page .landing-hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.04) 0%, transparent 50%);
  pointer-events: none;
}

.landing-page .landing-hero .container {
  position: relative;
  z-index: 1;
}

.landing-page .landing-hero h1 {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 14px;
  color: #fff;
  letter-spacing: -0.02em;
}

.landing-page .landing-hero .landing-subtitle {
  font-size: 19px;
  font-weight: 300;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  max-width: 700px;
  margin: 0 0 18px;
}

.landing-page .landing-hero .landing-meta {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
}

.landing-page .landing-hero .landing-meta .glyphicon {
  font-size: 11px;
  margin-right: 4px;
}

/* Body grid */
.landing-page .landing-body {
  background: #fff;
  border-radius: 12px;
  padding: 40px 50px;
  box-shadow: 0 2px 6px rgba(15, 35, 60, 0.06), 0 16px 40px rgba(15, 35, 60, 0.08);
  margin: -40px auto 0;
  max-width: 1100px;
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .landing-page .landing-body { padding: 24px 18px; border-radius: 8px; }
  .landing-page .landing-hero h1 { font-size: 30px; }
  .landing-page .landing-hero .landing-subtitle { font-size: 16px; }
}

/* Secciones tipográficas */
.landing-page .landing-section {
  margin-bottom: 36px;
}

.landing-page .landing-section:last-child { margin-bottom: 0; }

.landing-page .landing-section h2 {
  font-size: 24px;
  font-weight: 700;
  color: #1a2a3a;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  padding-bottom: 10px;
  position: relative;
}

.landing-page .landing-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 56px;
  height: 3px;
  background: #007DC3;
  border-radius: 2px;
}

.landing-page .landing-section p {
  color: #4a5568;
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 14px;
}

.landing-page .landing-section ul {
  color: #4a5568;
  line-height: 1.75;
  padding-left: 22px;
}

.landing-page .landing-section ul li {
  margin-bottom: 6px;
}

.landing-page .landing-section strong {
  color: #1a2a3a;
  font-weight: 600;
}

/* El subrayado azul solo en enlaces de texto editorial (párrafos/listas
   propias del contenido), nunca en las tarjetas de producto, ni en los
   pills de cross-links, ni en la galería .item-list. */
.landing-page .landing-section > p a,
.landing-page .landing-section > ul:not(.item-list) a,
.landing-page .landing-section .landing-callout a {
  color: #007DC3;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 125, 195, 0.25);
  transition: border-color 0.15s ease;
}

.landing-page .landing-section > p a:hover,
.landing-page .landing-section > ul:not(.item-list) a:hover,
.landing-page .landing-section .landing-callout a:hover {
  border-bottom-color: #007DC3;
}

/* Reset agresivo: dentro de .item-list (tarjetas de producto) los
   enlaces se rigen por el CSS de main.css, no por el de landings. */
.landing-page .landing-section .item-list a,
.landing-page .landing-section .item-list a:hover {
  border-bottom: none;
}

/* Aviso (callout) */
.landing-page .landing-callout {
  background: #fff8e1;
  border-left: 4px solid #ffb300;
  border-radius: 4px;
  padding: 14px 18px;
  margin: 20px 0;
  color: #5a4a1f;
  font-size: 15px;
  line-height: 1.6;
}

.landing-page .landing-callout strong { color: #5a4a1f; }

/* Cross-link footer (Sigue explorando) */
.landing-page .landing-cross-links {
  background: #f5f8fb;
  border-radius: 8px;
  padding: 22px 26px;
  margin-top: 12px;
}

.landing-page .landing-cross-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.landing-page .landing-cross-links ul li a {
  display: inline-block;
  background: #fff;
  color: #007DC3;
  border: 1px solid #d6e3ee;
  border-bottom: 1px solid #d6e3ee;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
}

.landing-page .landing-cross-links ul li a:hover {
  background: #007DC3;
  color: #fff;
  border-color: #007DC3;
}

/* Lista de productos: contenedor */
.landing-page .landing-products {
  margin: 24px 0 8px;
}

.landing-page .landing-products .empty-state {
  background: #f5f8fb;
  border: 1px dashed #c5d4e0;
  border-radius: 8px;
  padding: 28px;
  text-align: center;
  color: #6a7c8e;
  font-size: 15px;
}

/* ============================================================
   Hub /ofertas — listado de landings disponibles
   ============================================================ */

.landings-hub-page .landing-hero h1 { font-size: 38px; }

/* En el hub, los cards viven directamente sobre el fondo de la página
   (no dentro de un .landing-body) para que respiren más. */
.landings-hub-page .landings-hub-wrapper {
  max-width: 1100px;
  margin: -40px auto 0;
  padding: 0 15px;
  position: relative;
  z-index: 2;
}

.landings-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
  margin: 0 0 28px;
}

.landings-hub-page .landing-section {
  background: #fff;
  border-radius: 12px;
  padding: 28px 32px;
  box-shadow: 0 2px 6px rgba(15, 35, 60, 0.06), 0 16px 40px rgba(15, 35, 60, 0.08);
  margin-top: 28px;
}

.landings-hub-page .landing-section h2 { margin-top: 0; }

.landings-hub-card {
  display: block;
  background: #fff;
  border: 1px solid #dbe4ec;
  border-radius: 10px;
  padding: 26px 24px;
  text-decoration: none;
  color: inherit;
  transition: all 0.18s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 35, 60, 0.04);
}

.landings-hub-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: #007DC3;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.landings-hub-card:hover {
  border-color: #007DC3;
  box-shadow: 0 8px 24px rgba(0, 125, 195, 0.15);
  transform: translateY(-3px);
  text-decoration: none;
  color: inherit;
}

.landings-hub-card:hover::before { transform: scaleX(1); }

.landings-hub-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1a2a3a;
  margin: 0 0 8px;
  line-height: 1.3;
}

.landings-hub-card p {
  font-size: 14px;
  color: #5a6c7e;
  line-height: 1.55;
  margin: 0 0 12px;
}

.landings-hub-card .landings-hub-cta {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: #007DC3;
  gap: 4px;
}

.landings-hub-card .landings-hub-cta::after {
  content: '→';
  transition: transform 0.18s ease;
}

.landings-hub-card:hover .landings-hub-cta::after {
  transform: translateX(3px);
}

/* ============================================================
   Dark mode
   ============================================================ */

body.dark-mode .landing-page {
  background: #0b121a;
}

body.dark-mode .landing-page .landing-body {
  background: #1a2532;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4), 0 8px 24px rgba(0,0,0,0.5);
}

body.dark-mode .landing-page .landing-section h2 { color: #e8eef5; }
body.dark-mode .landing-page .landing-section p,
body.dark-mode .landing-page .landing-section ul { color: #b3c1d1; }
body.dark-mode .landing-page .landing-section strong { color: #e8eef5; }

body.dark-mode .landing-page .landing-callout {
  background: #2a2418;
  color: #d4c89f;
}
body.dark-mode .landing-page .landing-callout strong { color: #f0e8c5; }

body.dark-mode .landing-page .landing-cross-links { background: #14202c; }
body.dark-mode .landing-page .landing-cross-links ul li a {
  background: #1a2532;
  border-color: #2c3a4a;
}

body.dark-mode .landings-hub-card {
  background: #1a2532;
  border-color: #2c3a4a;
}
body.dark-mode .landings-hub-card h3 { color: #e8eef5; }
body.dark-mode .landings-hub-card p { color: #a3b1c3; }
