/* ===== NOVEDADES — Layout editorial dinámico ===== */

.banner-novedades {
  background: linear-gradient(135deg, #002855 0%, #004a99 60%, #0066cc 100%) !important;
  position: relative;
  overflow: hidden;
}
.banner-novedades::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 60px;
  background: #f4f6fb;
  clip-path: ellipse(55% 100% at 50% 100%);
}
.banner-novedades .banner-categoria-contenido i { color: #ffd33d; }
.menu-activo { color: #ffd33d !important; font-weight: 700; }

/* ── Sección wrapper ── */
.nov-seccion {
  max-width: 1200px;
  margin: 56px auto 0;
  padding: 0 24px;
}

/* ── Header de sección ── */
.nov-seccion-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
  position: relative;
}
.nov-seccion-header::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, #dde3ec, transparent);
  margin-left: 8px;
}
.nov-seccion-header h2 {
  font-size: 1.5rem;
  color: #002855;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  white-space: nowrap;
}
.nov-seccion-header p { display: none; }

/* Badges */
.nov-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  white-space: nowrap;
}
.nov-badge-llegada { background: #002855; color: #ffd33d; }
.nov-badge-tip     { background: #ffd33d; color: #002855; }

/* ══════════════════════════════════════════
   GRID EDITORIAL — llegadas
   ══════════════════════════════════════════ */
.nov-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 220px;
  gap: 18px;
  margin-bottom: 16px;
}

/* Tarjeta base */
.nov-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,40,85,.1);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform .3s, box-shadow .3s;
}
.nov-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 12px 36px rgba(0,40,85,.18);
}

/* ── Posiciones editoriales ── */
/* 1ª tarjeta: grande horizontal, ocupa 7 cols × 2 filas */
.nov-card:nth-child(1) {
  grid-column: span 7;
  grid-row: span 2;
  flex-direction: row;
}
.nov-card:nth-child(1) .nov-card-img {
  width: 55%;
  height: 100%;
  flex-shrink: 0;
}
.nov-card:nth-child(1) .nov-card-body { padding: 28px 24px; justify-content: center; }
.nov-card:nth-child(1) .nov-card-body h3 { font-size: 1.25rem; }

/* 2ª tarjeta: vertical derecha arriba, 5 cols × 1 fila */
.nov-card:nth-child(2) { grid-column: span 5; grid-row: span 1; }

/* 3ª tarjeta: vertical derecha abajo, 5 cols × 1 fila */
.nov-card:nth-child(3) { grid-column: span 5; grid-row: span 1; flex-direction: row; }
.nov-card:nth-child(3) .nov-card-img { width: 45%; height: 100%; flex-shrink: 0; }

/* 4ª tarjeta: mediana, 4 cols × 1 fila */
.nov-card:nth-child(4) { grid-column: span 4; }

/* 5ª tarjeta: ancha, 8 cols × 1 fila, horizontal */
.nov-card:nth-child(5) {
  grid-column: span 8;
  flex-direction: row;
}
.nov-card:nth-child(5) .nov-card-img { width: 40%; height: 100%; flex-shrink: 0; }

/* 6ª en adelante: 4 cols */
.nov-card:nth-child(n+6) { grid-column: span 4; }

/* ── Imagen dentro de card ── */
.nov-card-img {
  position: relative;
  overflow: hidden;
  background: #e8edf5;
  height: 160px;
  flex-shrink: 0;
}
.nov-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.nov-card:hover .nov-card-img img { transform: scale(1.07); }

.nov-card-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #002855;
  opacity: .2;
  height: 100%;
}

/* Tag */
.nov-tag-llegada {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #002855;
  color: #ffd33d;
  font-size: .68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  z-index: 2;
}

/* Acento diagonal en esquina */
.nov-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 36px 36px 0;
  border-color: transparent #ffd33d transparent transparent;
  z-index: 3;
  opacity: .7;
}

/* Body */
.nov-card-body {
  padding: 16px 18px 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}
.nov-card-body h3 {
  font-size: .95rem;
  font-weight: 700;
  color: #002855;
  line-height: 1.3;
  font-family: 'Poppins', sans-serif;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nov-card-body p {
  font-size: .82rem;
  color: #555;
  line-height: 1.55;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Primera card muestra más texto */
.nov-card:nth-child(1) .nov-card-body p { -webkit-line-clamp: 6; }

.nov-btn-ver, .nov-btn-wsp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: .8rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s, transform .15s;
  margin-top: auto;
}
.nov-card-body .nov-btn-ver,
.nov-card-body .nov-btn-wsp {
  align-self: auto;
}
.nov-card-body {
  padding: 16px 18px 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}
.nov-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 4px;
}
.nov-btn-ver { background: #002855; color: #ffd33d; }
.nov-btn-ver:hover { background: #003d80; transform: translateX(3px); }
.nov-btn-wsp { background: #25d366; color: #fff; }
.nov-btn-wsp:hover { background: #1ebe5d; transform: translateX(3px); }

/* Fecha */
.nov-card-fecha {
  padding: 6px 18px 12px;
  font-size: .72rem;
  color: #bbb;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ══════════════════════════════════════════
   TIPS — layout en zigzag
   ══════════════════════════════════════════ */
.nov-seccion-tips {
  background: linear-gradient(180deg, #f4f6fb 0%, #eef1f8 100%);
  padding: 56px 24px 64px;
  margin-top: 64px;
  position: relative;
  clip-path: polygon(0 40px, 100% 0, 100% calc(100% - 40px), 0 100%);
}
.nov-seccion-tips .nov-seccion-header { max-width: 1200px; margin: 0 auto 36px; }
.nov-seccion-tips .nov-seccion-header::after { background: linear-gradient(90deg, #002855, transparent); }

.nov-grid-tips {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Tip card con forma y acento */
.nov-card-tip {
  background: #fff;
  border-radius: 18px;
  padding: 28px 24px 20px;
  box-shadow: 0 4px 16px rgba(0,40,85,.08);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.nov-card-tip:hover {
  transform: translateY(-5px) rotate(-0.5deg);
  box-shadow: 0 10px 30px rgba(0,40,85,.14);
}
/* Fondo decorativo */
.nov-card-tip::after {
  content: '💡';
  position: absolute;
  bottom: -10px;
  right: -4px;
  font-size: 5rem;
  opacity: .06;
  line-height: 1;
  pointer-events: none;
}
/* Barra superior de color */
.nov-card-tip::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #002855, #ffd33d);
  border-radius: 18px 18px 0 0;
}
/* Tip par: inclinado levemente */
.nov-card-tip:nth-child(even) {
  transform: translateY(12px);
}
.nov-card-tip:nth-child(even):hover {
  transform: translateY(6px) rotate(0.5deg);
}

.nov-tip-icono {
  width: 46px;
  height: 46px;
  background: #002855;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #ffd33d;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,40,85,.25);
}
.nov-tip-body h3 {
  font-size: .95rem;
  font-weight: 700;
  color: #002855;
  margin-bottom: 6px;
  font-family: 'Poppins', sans-serif;
}
.nov-tip-body p {
  font-size: .85rem;
  color: #555;
  line-height: 1.6;
}

/* Vacío */
.nov-vacio {
  grid-column: 1/-1;
  text-align: center;
  padding: 48px;
  color: #aaa;
  font-size: 1rem;
}

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .nov-grid { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 200px; }
  .nov-card:nth-child(1) { grid-column: span 6; flex-direction: column; }
  .nov-card:nth-child(1) .nov-card-img { width: 100%; height: 220px; }
  .nov-card:nth-child(2) { grid-column: span 3; }
  .nov-card:nth-child(3) { grid-column: span 3; flex-direction: column; }
  .nov-card:nth-child(3) .nov-card-img { width: 100%; height: 140px; }
  .nov-card:nth-child(4) { grid-column: span 3; }
  .nov-card:nth-child(5) { grid-column: span 3; flex-direction: column; }
  .nov-card:nth-child(5) .nov-card-img { width: 100%; height: 140px; }
  .nov-card:nth-child(n+6) { grid-column: span 3; }
  .nov-grid-tips { grid-template-columns: repeat(2, 1fr); }
  .nov-card-tip:nth-child(even) { transform: none; }
}

@media (max-width: 640px) {
  .nov-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .nov-card { flex-direction: column !important; }
  .nov-card .nov-card-img { width: 100% !important; height: 180px !important; }
  .nov-card:nth-child(1) .nov-card-body h3 { font-size: 1rem; }
  .nov-grid-tips { grid-template-columns: 1fr; }
  .nov-card-tip:nth-child(even) { transform: none; }
  .nov-seccion-tips {
    clip-path: polygon(0 20px, 100% 0, 100% calc(100% - 20px), 0 100%);
    padding: 48px 16px 56px;
  }
  .nov-seccion { padding: 0 14px; }
  .nov-seccion-header h2 { font-size: 1.2rem; }
}
