/* =====================================================
   HERO NOVEDADES
===================================================== */
.news-hero {
  background: linear-gradient(180deg, #fdeaf4 0%, #ffffff 100%);
padding: 60px 20px 80px;
  text-align: center;
}

.news-hero h1 {
  font-size: 42px;
  margin-bottom: 10px;
}

.news-hero p {
  font-size: 18px;
  color: #666;
  max-width: 700px;
    margin: 0 auto;
}
/* =====================================================
   BREADCRUMB (ALINEADO A CONTENIDO)
===================================================== */
.breadcrumb {
  max-width: 1200px;
  margin: 30px auto 20px; /* separaciones correctas */
  padding: 30px 20px 0px 20px;        /* mismo padding que grids */
  font-size: 14px;
  color: #666;
}

.breadcrumb a {
  color: var(--color-primary);
  text-decoration: none;
}

.breadcrumb span {
  margin: 0 4px;
}

.breadcrumb .current {
  color: #999;
}

/* =====================================================
   FILTROS NOVEDADES — ESTILO BOCETO
===================================================== */
.news-filters {
  margin-top: -30px;          /* los acerca al hero */
  padding: 0 20px 40px;
}

.filters-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;    /* CENTRADOS */
}

/* CÁPSULA */
.filters-pill {
  background: #fff;
  padding: 8px;
  border-radius: 999px;
  display: flex;
  gap: 6px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

/* BOTONES */
.filter-btn {
  border: none;
  background: transparent;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

/* ACTIVO */
.filter-btn.active {
  background: var(--color-primary);
  color: #fff;
}

/* HOVER */
.filter-btn:not(.active):hover {
  background: rgba(230,0,125,.1);
  color: var(--color-primary);
}


/* =====================================================
   GRID LISTADO
===================================================== */
.news-list {
  padding: 30px;
  padding-top: 0;
}

.news-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  justify-content: center; /* evita que se estiren */
}

.news-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  transition: transform .25s ease, box-shadow .25s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,.12);
}

.news-card img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.news-content {
  padding: 18px 24px 20px; /* ↓ menos aire arriba y abajo */
  display: flex;
  flex-direction: column;
  gap: 8px; /* ↓ menos separación entre elementos */
}

.news-date {
  background: none;
  font-size: 13px;
  color: #9e9e9e;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 4px;
}

.news-content h3 {
  font-size: 18px;
  line-height: 1.35;
  margin: 4px 0 6px; /* ↓ clave */
}

.news-content p {
  font-size: 14px;
  line-height: 1.55;
  color: #555;
  margin: 0; /* 🔥 elimina el espacio blanco */
}

.news-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.25s ease, transform 0.25s ease;
  justify-content: flex-end;
}
/* Movimiento al hover */
.news-link:hover {
  color: #c6006f; /* un tono más intenso */
  transform: translateX(6px);
}

/* Quitar subrayado por defecto */
.news-link::after {
  content: '';
}
/* =====================================================
   FICHA NOTICIA
===================================================== */
.news-detail {
  max-width: 920px;
  margin: 50px auto 70px;
  background: #fff;
  border-radius: 32px;
  padding: 48px 56px 64px;
  box-shadow: 0 25px 70px rgba(0,0,0,.08);
}

.news-header {
  margin-bottom: 36px; 
}

.news-header h1 {
  font-size: 40px;
  line-height: 1.2;
  margin: 0;
  color: #111;
}

.news-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 26px;
  margin: 32px 0 34px;
  position: relative;
}

/* ===== IMAGEN ===== */
.news-image-wrapper {
  position: relative;
  width: 100%;
}

.news-image-wrapper img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.news-body p {
  font-size: 18px;
  line-height: 1.85;
  color: #333;
  margin-bottom: 24px;
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .news-hero h1 {
    font-size: 28px;
  }

  .news-image {
    height: 260px;
  }
}


.news-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 60px 0 04px;
}

.page-btn {
  background: #f2f2f2;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 18px;
  cursor: pointer;
}

.page-btn:hover {
  background: var(--color-primary);
  color: #fff;
}


.news-social {
  text-align: center;
  padding: 20px 20px 80px;
}

.social-icons a {
  display: inline-block;
  transition: transform 0.25s ease;
}

.news-social p {
  font-size: 18px;
  margin-bottom: 20px;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.social-icons img {
  width: 34px;
  height: 34px;
  display: block;
  transition: transform 0.25s ease, filter 0.25s ease;
}

/* Hover */
.social-icons a:hover {
  transform: translateY(-4px);
}

.social-icons a:hover img {
  transform: scale(1.12);
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.18));
}

.related-news {
  max-width: 1200px;
  margin: 50px auto 70px;
  padding: 0 20px;
}

.related-news h2 {
  font-size: 28px;
  margin-bottom: 34px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.related-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0,0,0,.08);
  transition: transform .3s ease, box-shadow .3s ease;
}

.related-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.related-card h3 {
  font-size: 15px;
  padding: 14px;
}

.related-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(0,0,0,.14);
}

/* Contenido */
.related-content {
  padding: 22px;
  text-align: center;
}

.related-content h3 {
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
}

/* Botón */
.related-btn {
  display: inline-block;
  padding: 9px 26px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--color-primary);
  text-decoration: none;
  transition: background .25s ease, transform .25s ease;
}

.related-btn:hover {
  background: #c9006e;
  transform: translateY(-1px);
}

.related-date {
  font-size: 12px;
  font-weight: 600;
  color: #999;
}

.related-separator {
  margin: 0 6px;
  color: #bbb;
}

/* =====================================================
   FICHA NOTICIA — MEJORA EDITORIAL
===================================================== */
.news-detail {
  background: #fff;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 12px 40px rgba(0,0,0,.08);
}

.news-header {
  border-bottom: 1px solid #eee;
  padding-bottom: 20px;
}

.news-date {
  text-transform: uppercase;
  letter-spacing: .04em;
}

.news-body {
  margin-top: 30px;
}


@media (max-width: 768px) {
  .news-detail {
    padding: 30px 22px 40px;
  }

  .news-header h1 {
    font-size: 28px;
  }

  .news-image {
    height: 260px;
  }
  .related-news{
	  margin: 40px auto 50px;
  }
}

.news-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
  text-transform: uppercase;
}

/* ===== CATEGORÍA (BADGE) ===== */
.news-category {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  color: #fff;
  text-transform: uppercase;
  z-index: 2;
}

/* Colores por categoría (MISMO SISTEMA QUE HOME) */
.category-ferias-y-eventos {
  background: #e6007e;
}

.category-lanzamientos {
  background: #ff9800;
}

.category-colaboraciones {
  background: #6a1b9a;
}

.category-noticias {
  background: #009fe3;
}


/* =====================================================
   SINGLE POST — ESTILO DEFINITIVO
   (NO AFECTA AL LISTADO)
===================================================== */
/* CONTENIDO PRINCIPAL */
.single-post .news-content-wrapper {
  background: #fff;
  border-radius: 28px;
  padding: 30px 40px 30px;
  box-shadow: 0 20px 60px rgba(0,0,0,.08);
}

.single-post .news-detail {
  max-width: 1200px;
  margin: 45px auto 45px;
  padding: 0 20px;
  border-radius: 28px;
  background: none;
  padding: 0;
  box-shadow: none;
}

/* HEADER LIMPIO (SIN FONDO) */
.single-post .news-header {
  background: none;
  padding: 0;
  margin-bottom: 26px;
}

/* FECHA */
.single-post .news-date {
  display: block;
  font-size: 13px;
  color: #9a9a9a;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 14px;
  background: none;
  padding: 0;
}

/* TÍTULO */
.single-post .news-header h1 {
  font-size: 36px;
  line-height: 1.25;
  color: #111;
  margin: 0;
}

.single-post .news-image {
	width:100%;
	max-height:520px;
	object-fit:cover;
	border-radius:22px;
	transition:transform .6s ease;
	}

/* TEXTO */

.single-post .news-body{
 margin:auto;
}
.single-post .news-body p {
  font-size: 18px;
  line-height: 1.9;
  color: #333;
}

/* LINKS */
.single-post .news-body a {
  color: var(--color-primary);
  font-weight: 600;
}

.single-post .news-body a:hover {
  text-decoration: underline;
}

/* TÍTULO */
.single-post h1 {
  font-size: 42px;
  line-height: 1.25;
  margin-bottom: 28px;
  color: #111;
}

.news-load-more-wrapper{
display:flex;
justify-content:center;
margin:70px 0 30px;
}

.news-load-more-btn{
padding:12px 28px;
border-radius:999px;
border:none;
background:var(--color-primary);
color:#fff;
font-size:14px;
font-weight:600;
cursor:pointer;
transition:all .25s ease;
}

.news-load-more-btn:hover{
transform:translateY(-2px);
box-shadow:0 10px 20px rgba(0,0,0,.15);
}

.related-card .news-image-wrapper{
position:relative;
}

.related-card .news-category{
position:absolute;
top:14px;
left:14px;
font-size:11px;
padding:6px 12px;
border-radius:999px;
}

.single-post .news-social {
  padding: 45px 20px 100px;
}

/* =====================================================
   META POST (CATEGORÍA + TAGS ALINEADOS)
===================================================== */

.news-meta{
display:flex;
flex-wrap:wrap;
align-items:center;
gap:10px;
margin:12px 0 25px;
}

/* reset del badge cuando está en meta */

.news-meta .news-category{
position:static;
top:auto;
left:auto;
display:inline-flex;
align-items:center;
font-size:12px;
padding:6px 14px;
border-radius:999px;
}

/* etiquetas */

.news-tag{
font-size:12px;
padding:6px 14px;
border-radius:999px;
background:#f1f1f1;
color:#666;
font-weight:500;
display:inline-flex;
align-items:center;
}

.single-post .news-detail{
	  padding: 0 20px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .single-post .news-detail{
	  padding: 0 10px;
  }
  .single-post .news-header h1 {
    font-size: 28px;
  }
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .single-post .news-content-wrapper {
    padding: 42px 40px 48px;
  }

  .single-post h1 {
    font-size: 34px;
  }
}

@media (max-width: 640px) {
  .single-post .news-content-wrapper {
    padding: 32px 22px 40px;
  }

}

@media (max-width: 1200px) {
.news-grid {
  gap: 30px;
  grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 750px) {
.news-grid {
  gap: 30px;
  grid-template-columns: repeat(1, 1fr);
  }
}

@media (max-width: 550px){
    
    .news-hero p {
  font-size: 15px;
  color: #666;
}
  .filters-pill {
	background: #fff;
    padding: 12px 8px;
    border-radius: 10px;
    display: flex;
    gap: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
	}
	
	.filter-btn {
    border: none;
    background: transparent;
    padding: 5px 7px;
    border-radius: 6px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}
}

/* =====================
   TABLET GRANDE
===================== */

@media (max-width:1200px){

.single-post .news-content-wrapper{
padding:50px 48px 56px;
}

.single-post h1{
font-size:36px;
}

.single-post .news-image{
max-height:420px;
}

}


/* =====================
   TABLET
===================== */

@media (max-width:1024px){

.single-post .news-content-wrapper{
padding:40px 36px 46px;
border-radius:24px;
}

.single-post h1{
font-size:32px;
line-height:1.3;
}

.single-post .news-body p{
font-size:17px;
line-height:1.8;
}

.single-post .news-image{
max-height:380px;
}

}


/* =====================
   MOBILE GRANDE
===================== */

@media (max-width:768px){
    
.news-hero {
  padding: 40px 20px 50px;
}

.news-content p {
    font-size: 12px;
    line-height: 1.55;
    color: #555;
    margin: 0;
}

.single-post .news-content-wrapper{
padding:34px 24px 38px;
border-radius:20px;
}

.single-post h1{
font-size:28px;
line-height:1.35;
margin-bottom:22px;
}

.single-post .news-body p{
font-size:14px;
line-height:1.4;
}

.single-post .news-image{
max-height:300px;
border-radius:16px;
}

.breadcrumb{
padding:20px;
margin:30px auto 10px;
}

.single-post .news-detail{
    margin: 0 auto 20px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 15px;
    width: auto;
    justify-content: center;
}

.news-content h3 {
	font-size: 15px;
	line-height: 1.2;
	margin: 4px 0 0px;
}

}


/* =====================
   MOBILE PEQUEÑO
===================== */

@media (max-width:480px){

.single-post .news-content-wrapper{
padding: 14px 18px 34px;
}

.single-post .news-date {
  font-size: 10px;
}

.single-post h1 {
	font-size: 18px;
	text-align: center;
}
.news-tag {
	font-size: 11px;
	padding: 6px 14px;
}

.single-post .news-body p{
font-size:15.5px;
line-height:1.7;
}

.single-post .news-image{
    max-height: 129px;
    border-radius: 5px;
    margin: 0px 0 34px;
}

.news-meta .news-category {
	font-size: 11px;
	padding: 6px 14px;
}

}
/* =========================
   SCROLL REVEAL
========================= */

.reveal{
  opacity:0;
  transform:translateY(50px);
  transition:all .8s cubic-bezier(.16,.84,.44,1);
}

.reveal.visible{
  opacity:1;
  transform:translateY(0);
}

.news-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}

.news-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Skeleton cards */
.news-skeleton {
  background: #f3f3f3;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.news-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.6),
    transparent
  );
  animation: skeleton-loading 1.2s infinite;
}

@keyframes skeleton-loading {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.skeleton-img {
  height: 220px;
  background: #e0e0e0;
}

.skeleton-content {
  padding: 20px;
}

.skeleton-line {
  height: 12px;
  background: #e0e0e0;
  margin-bottom: 10px;
  border-radius: 6px;
}

.skeleton-line.short { width: 40%; }
.skeleton-line.medium { width: 70%; }
.skeleton-line.long { width: 100%; }

/* --- FIX MOBILE: DISABLE NEWS ANIMATIONS --- */
@media (max-width: 1024px) {
  .news-card, .reveal, .news-card.visible, .single-post .news-content-wrapper, .related-card {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
  .news-card:hover, .news-link:hover, .related-card:hover {
    transform: none !important;
  }
}

@media (max-width: 768px){

.floating-social{
    display:none !important;
}

}