/* Importamos tipografías (por si no están en tu proyecto) */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@400;700&family=Roboto:wght@700&display=swap');

/* 1. Contenedor principal de la tarjeta (500x640) */
.noticia_portada_articulo {
    position: relative;
    width: 615px;
    height: 615px;
    /* border-radius: 12px; */
    overflow: hidden; /* Corta la imagen para los bordes redondeados */
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Empuja el texto hacia abajo */
    background-color: #111; /* Fondo de resguardo */
    margin-bottom: 15px;
    box-shadow: 0px 4px 10px 0px rgba(204,204,204,1);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.noticia_portada_articulo:hover {
    box-shadow: 0px 8px 20px 0px rgba(54,93,209,0.7); /* Azul de tu código original, adaptado a sombra grande */
    transform: translateY(-5px);
}

.noticia_portada_articulo_plano {
    padding: 0px;
    background: transparent;
}

/* 2. Galería / Fondo absoluto */
.noticia_portada_galeria {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    margin: 0;
}

.noticia_portada_galeria a {
    display: block;
    width: 100%;
    height: 100%;
}

/* 3. Imagen con cover y hover */
.noticia_portada_imagen {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s ease;
}

.noticia_portada_articulo:hover .noticia_portada_imagen {
    transform: scale(1.1); /* Efecto zoom más fluido en vez de 1.5 que deforma mucho */
}

/* 4. EL BLUR ESTÉTICO Y DEGRADADO SOBRE LA IMAGEN */
/* Degradado oscuro para contraste */
.noticia_portada_articulo::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, transparent 30%, rgba(0,0,0,0.6) 60%, rgba(0,0,0,0.95) 100%);
    z-index: 2;
    pointer-events: none;
}

/* El desenfoque (Blur) en la mitad inferior */
.noticia_portada_articulo::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    -webkit-mask-image: linear-gradient(to bottom, transparent 40%, black 80%);
    mask-image: linear-gradient(to bottom, transparent 40%, black 80%);
    z-index: 2;
    pointer-events: none;
}

/* Ocultar BRs sueltos del CMS */
.noticia_portada_articulo br {
    display: none;
}

/* 5. CAPAS DE TEXTO (Por encima del blur) */
.noticia_portada_volanta,
.noticia_portada_titulo,
.noticia_portada_copete,
.noticia_portada_nota {
    position: relative;
    z-index: 3;
    padding-left: 30px;
    padding-right: 30px;
    display: block;
}

/* Tipografías adaptadas a fondo oscuro */
.noticia_portada_volanta { 
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    font-size: 13px;
    color: #ffcc00; /* Amarillo para resaltar sobre oscuro */
    text-decoration: none;
    text-transform: uppercase;
    margin-bottom: 10px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.noticia_portada_titulo  {
    font-family: 'Roboto Slab', serif;
    font-weight: bold;
    font-size: 28px;
    line-height: 1.2;
    color: #ffffff; /* Blanco */
    text-decoration: none;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.9);
    transition: color 0.3s ease;
}

.noticia_portada_titulo:hover {
    color: #ffcc00;
}

.noticia_portada_copete {
    font-family: 'Roboto Slab', serif;
    font-size: 16px;
    line-height: 1.5;
    color: #e0e0e0;
    margin-bottom: 30px; /* Separación del fondo de la tarjeta */
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Trunca a las 4 líneas si es largo */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.noticia_portada_nota {
    font-family: 'Roboto Slab', serif;
    font-weight: normal;
    font-size: 16px;
    color: #ffffff;
}

.noticia_portada_espacio {
    position: relative;
    z-index: 3;
    padding-top: 5px;
    padding-bottom: 5px;
}

/* =========================================================
   TARJETA SECUNDARIA (300x384 - Proporcional a 500x640)
   ========================================================= */

/* 1. Contenedor principal de la tarjeta (300x384) */
.noticia_portada_secundaria_articulo {
    position: relative;
    width: 335px;
    height: 384px;
    /* border-radius: 10px; /* Un poco más curvo en proporción al tamaño chico */
    overflow: hidden; 
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Empuja el texto hacia abajo */
    background-color: #111; 
    margin-bottom: 15px;
    box-shadow: 0px 4px 8px 0px rgba(204,204,204,1);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.noticia_portada_secundaria_articulo:hover {
    box-shadow: 0px 6px 15px 0px rgba(54,93,209,0.7); 
    transform: translateY(-4px);
}

.noticia_portada_secundaria_articulo_plano {
    padding: 0px;
    background: transparent;
}

/* 2. Galería / Fondo absoluto */
.noticia_portada_secundaria_galeria {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    margin: 0;
}

.noticia_portada_secundaria_galeria a {
    display: block;
    width: 100%;
    height: 100%;
}

/* 3. Imagen con cover y hover */
.noticia_portada_secundaria_imagen {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s ease;
}

.noticia_portada_secundaria_articulo:hover .noticia_portada_secundaria_imagen {
    transform: scale(1.1); 
}

/* 4. EL BLUR ESTÉTICO Y DEGRADADO */
.noticia_portada_secundaria_articulo::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* Degradado inicia un poco antes porque la tarjeta es más corta */
    background: linear-gradient(to bottom, transparent 20%, rgba(0,0,0,0.6) 55%, rgba(0,0,0,0.95) 100%);
    z-index: 2;
    pointer-events: none;
}

.noticia_portada_secundaria_articulo::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    backdrop-filter: blur(10px); /* Un blur apenas más suave para no saturar */
    -webkit-backdrop-filter: blur(10px);
    -webkit-mask-image: linear-gradient(to bottom, transparent 35%, black 75%);
    mask-image: linear-gradient(to bottom, transparent 35%, black 75%);
    z-index: 2;
    pointer-events: none;
}

/* Ocultar BRs sueltos del CMS */
.noticia_portada_secundaria_articulo br {
    display: none;
}

/* 5. CAPAS DE TEXTO (Por encima del blur) */
.noticia_portada_secundaria_volanta,
.noticia_portada_secundaria_titulo,
.noticia_portada_secundaria_copete,
.noticia_portada_secundaria_nota {
    position: relative;
    z-index: 3;
    /* Paddings reducidos (de 30 a 15) por el tamaño de la tarjeta */
    padding-left: 15px; 
    padding-right: 15px;
    display: block;
}

/* Tipografías adaptadas a tarjeta más chica */
.noticia_portada_secundaria_volanta { 
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    font-size: 11px; /* Letra más chica */
    color: #ffcc00; 
    text-decoration: none;
    text-transform: uppercase;
    margin-bottom: 8px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.noticia_portada_secundaria_titulo  {
    font-family: 'Roboto Slab', serif;
    font-weight: bold;
    font-size: 20px; /* Título achicado para que quepa bien en 300px */
    line-height: 1.2;
    color: #ffffff; 
    text-decoration: none;
    margin-bottom: 12px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.9);
    transition: color 0.3s ease;
}

.noticia_portada_secundaria_titulo:hover {
    color: #ffcc00;
}

.noticia_portada_secundaria_copete {
    font-family: 'Roboto Slab', serif;
    font-size: 13px; /* Achicado */
    line-height: 1.4;
    color: #e0e0e0;
    margin-bottom: 20px; 
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Trunca a las 3 líneas en vez de 4 porque es más chica */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.noticia_portada_secundaria_nota {
    font-family: 'Roboto Slab', serif;
    font-weight: normal;
    font-size: 14px;
    color: #ffffff;
}

.noticia_portada_secundaria_espacio {
    position: relative;
    z-index: 3;
    padding-top: 5px;
    padding-bottom: 5px;
}

/* =========================================================
   TARJETA AGENDA (300x384 - Proporcional a 500x640)
   ========================================================= */

/* 1. Contenedor principal de la tarjeta (300x384) */
.agenda_portada_articulo {
    position: relative;
    width: 290px;
    height: 340px;
    /* border-radius: 10px; /* Un poco más curvo en proporción al tamaño chico */
    overflow: hidden; 
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Empuja el texto hacia abajo */
    background-color: #111; 
    margin-bottom: 15px;
    box-shadow: 0px 4px 8px 0px rgba(204,204,204,1);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.agenda_portada_articulo:hover {
    box-shadow: 0px 6px 15px 0px rgba(54,93,209,0.7); 
    transform: translateY(-4px);
}

.agenda_portada_articulo_plano {
    padding: 0px;
    background: transparent;
}

/* 2. Galería / Fondo absoluto */
.agenda_portada_galeria {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    margin: 0;
}

.agenda_portada_galeria a {
    display: block;
    width: 100%;
    height: 100%;
}

/* 3. Imagen con cover y hover */
.agenda_portada_imagen {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s ease;
}

.agenda_portada_articulo:hover .agenda_portada_imagen {
    transform: scale(1.1); 
}

/* 4. EL BLUR ESTÉTICO Y DEGRADADO */
.agenda_portada_articulo::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* Degradado inicia un poco antes porque la tarjeta es más corta */
    background: linear-gradient(to bottom, transparent 20%, rgba(0,0,0,0.6) 55%, rgba(0,0,0,0.95) 100%);
    z-index: 2;
    pointer-events: none;
}

.agenda_portada_articulo::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    backdrop-filter: blur(10px); /* Un blur apenas más suave para no saturar */
    -webkit-backdrop-filter: blur(10px);
    -webkit-mask-image: linear-gradient(to bottom, transparent 35%, black 75%);
    mask-image: linear-gradient(to bottom, transparent 35%, black 75%);
    z-index: 2;
    pointer-events: none;
}

/* Ocultar BRs sueltos del CMS */
.agenda_portada_articulo br {
    display: none;
}

/* 5. CAPAS DE TEXTO (Por encima del blur) */
.agenda_portada_volanta,
.agenda_portada_titulo,
.agenda_portada_copete,
.agenda_portada_nota {
    position: relative;
    z-index: 3;
    /* Paddings reducidos (de 30 a 15) por el tamaño de la tarjeta */
    padding-left: 15px; 
    padding-right: 15px;
    display: block;
}

/* Tipografías adaptadas a tarjeta más chica */
.agenda_portada_volanta { 
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    font-size: 11px; /* Letra más chica */
    color: #ffcc00; 
    text-decoration: none;
    text-transform: uppercase;
    margin-bottom: 8px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.agenda_portada_titulo  {
    font-family: 'Roboto Slab', serif;
    font-weight: bold;
    font-size: 20px; /* Título achicado para que quepa bien en 300px */
    line-height: 1.2;
    color: #ffffff; 
    text-decoration: none;
    margin-bottom: 12px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.9);
    transition: color 0.3s ease;
}

.agenda_portada_titulo:hover {
    color: #ffcc00;
}

.agenda_portada_copete {
    font-family: 'Roboto Slab', serif;
    font-size: 13px; /* Achicado */
    line-height: 1.4;
    color: #e0e0e0;
    margin-bottom: 20px; 
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Trunca a las 3 líneas en vez de 4 porque es más chica */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.agenda_portada_nota {
    font-family: 'Roboto Slab', serif;
    font-weight: normal;
    font-size: 14px;
    color: #ffffff;
}

.agenda_portada_espacio {
    position: relative;
    z-index: 3;
    padding-top: 5px;
    padding-bottom: 5px;
}

/* Variables base (por si las necesitas) */
:root {
  --red: #e30613;
  --line: #ddd;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Arial, Helvetica, sans-serif;
}

/* =========================================
   BLOQUE 1: NEWSLETTER
   ========================================= */
.newsletter {
  background: #111;
  color: white;
  padding: 26px;
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  font-family: var(--sans);
}

.newsletter h3 {
  font-family: var(--serif);
  font-size: 32px;
  margin: 0 0 6px;
}

.newsletter p {
  margin: 0;
  color: #bbb;
}

/* Formulario */
.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-form input {
  height: 44px;
  min-width: 260px;
  border: 0;
  padding: 0 14px;
  font-family: var(--sans);
}

.newsletter-form button {
  height: 44px;
  border: 0;
  background: var(--red);
  color: #fff;
  font-weight: 900;
  padding: 0 18px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.newsletter-form button:hover {
  opacity: 0.85;
}

/* =========================================
   BLOQUE 2: WHATSAPP
   ========================================= */
.whatsapp-strip {
  margin-top: 16px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-decoration: none;
  color: #111;
  font-family: var(--sans);
  transition: border-color 0.2s;
}

.whatsapp-strip:hover {
  border-color: #111;
}

.whatsapp-strip b {
  font-size: 21px;
}

/* Estilo del botón interno de WhatsApp */
.watch-btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  padding: 13px 18px;
  font-weight: 950;
  text-transform: uppercase;
  border: 0;
  text-align: center;
}

/* =========================================
   RESPONSIVE (Móviles y Tablets)
   ========================================= */
@media(max-width: 900px) {
  .newsletter {
    grid-template-columns: 1fr;
  }
  .newsletter-form {
    width: 100%;
  }
  .newsletter-form input {
    min-width: 0;
    flex: 1;
  }
}

@media(max-width: 620px) {
  .newsletter {
    padding: 20px;
  }
  .newsletter h3 {
    font-size: 27px;
  }
  .newsletter-form {
    display: grid;
    grid-template-columns: 1fr;
  }
  .newsletter-form input, 
  .newsletter-form button {
    width: 100%;
  }
  .whatsapp-strip {
    align-items: flex-start;
    flex-direction: column;
  }
}