/* =========================================================
   🎨 VARIABLES
========================================================= */
:root {
  --rojo: #b30000;
  --rojo-hover: #e60000;
  --morado: #8e7dff;

  --blanco: #ffffff;
  --gris: #666;
  --gris-claro: #f1f1f1;
  --fondo: #0f0f14;
}

/* =========================================================
   🔄 RESET
========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================================================
   🌐 BODY (FONDO PRO SUAVE)
========================================================= */
body {
  font-family: 'Segoe UI', sans-serif;

  background:
    radial-gradient(circle at top left, rgba(179,0,0,0.2), transparent 40%),
    radial-gradient(circle at top right, rgba(142,125,255,0.2), transparent 40%),
    linear-gradient(135deg, #0f0f14, #1a1025);

  color: #f1f1f1;
  line-height: 1.6;
  padding: 20px;
}

/* =========================================================
   📦 CONTENEDOR
========================================================= */
.container {
  max-width: 1100px;
  margin: auto;
}

/* =========================================================
   🔴 NAVBAR
========================================================= */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;

  background: linear-gradient(90deg, var(--rojo), var(--morado));

  padding: 12px 20px;
  border-radius: 10px;
  margin-bottom: 25px;

  box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}

nav .logo {
  font-size: 1.6rem;
  font-weight: bold;
  color: #fff;
}

nav img {
  height: 45px;
  border-radius: 6px;
}

/* =========================================================
   📰 TITULO PRINCIPAL
========================================================= */
h1 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 2.2rem;
}

/* =========================================================
   🔘 BOTÓN
========================================================= */
.boton {
  display: inline-block;
  background: linear-gradient(135deg, var(--rojo), var(--morado));
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  margin-bottom: 20px;
  transition: 0.3s;
}

.boton:hover {
  transform: scale(1.05);
}

/* =========================================================
   🧠 CARD NOTICIA (ESTILO PROFESIONAL BLANCO)
========================================================= */
.news-card {
  background: #ffffff;
  color: #222;

  padding: 35px;
  border-radius: 16px;

  max-width: 900px;
  margin: auto;

  box-shadow: 0 10px 35px rgba(0,0,0,0.35);

  animation: fadeIn 0.6s ease;
}

/* =========================================================
   🧾 HEADER
========================================================= */
.news-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--rojo);
  margin-bottom: 10px;
  line-height: 1.3;
}

/* 🔥 SUBTÍTULO PRINCIPAL (tipo TV Perú / RPP) */
.news-subtitle {
  background: var(--gris-claro);
  color: #333;

  border-left: 6px solid var(--rojo);

  padding: 14px 18px;
  margin: 20px 0;

  font-size: 1.15rem;
  font-weight: 600;

  border-radius: 8px;

  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

/* =========================================================
   📸 IMAGEN
========================================================= */
.news-image img {
  width: 100%;
  border-radius: 12px;
  margin: 20px 0;
  object-fit: cover;
}

/* =========================================================
   🧾 INFO (autor / fecha)
========================================================= */
.info-noticia {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;

  font-size: 0.9rem;
  color: #777;

  margin-bottom: 15px;
}

/* =========================================================
   🏷️ TIPO NOTICIA
========================================================= */
.tipo-noticia {
  display: inline-block;
  background: var(--rojo);
  color: #fff;

  padding: 6px 14px;
  border-radius: 6px;

  font-size: 0.8rem;
  font-weight: bold;

  margin-bottom: 20px;
}

/* =========================================================
   🧩 SUBTÍTULOS INTERNOS (🔥 CLAVE DE TU PROBLEMA)
========================================================= */
.news-content h3 {
  background: linear-gradient(135deg, #f5f5f5, #eaeaea);

  border-left: 6px solid var(--rojo);

  padding: 14px 18px;
  margin: 30px 0 10px 0;

  font-size: 1.15rem;
  font-weight: 800;

  color: var(--rojo); /* 🔥 CAMBIO CLAVE */

  border-radius: 10px;

  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.news-content h3::before {
  content: "▌";
  color: var(--rojo);
  margin-right: 8px;
}

/* =========================================================
   📝 CONTENIDO
========================================================= */
.news-content p {
  margin: 15px 0;
  line-height: 1.7;
  text-align: justify;
  color: #333;
}

/* =========================================================
   🎬 CONTENEDOR VIDEO INTELIGENTE
========================================================= */
.video-wrapper {
  width: 100%;
  max-width: 800px;
  margin: 25px auto;

  position: relative;
  border-radius: 12px;
  overflow: hidden;

  background: #000;
}

/* Horizontal (16:9) */
.video-horizontal {
  aspect-ratio: 16 / 9;
}

/* Vertical (9:16) */
.video-vertical {
  aspect-ratio: 9 / 16;
  max-width: 400px; /* más angosto para que no se vea gigante */
}

/* VIDEO / IFRAME */
.video-wrapper iframe,
.video-wrapper video {
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;
}

/* =========================================================
   ⚡ ANIMACIÓN BASE
========================================================= */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   🧠 CARD (EFECTO FLOTANTE)
========================================================= */
.news-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* =========================================================
   🧩 SUBTÍTULOS (INTERACTIVOS)
========================================================= */
.news-content h3 {
  transition: all 0.25s ease;
}

.news-content h3:hover {
  transform: translateX(6px);
  background: linear-gradient(135deg, #ffffff, #f0f0f0);
}

/* =========================================================
   📸 IMAGEN (ZOOM PRO)
========================================================= */
.news-image img {
  transition: transform 0.4s ease;
}

.news-image img:hover {
  transform: scale(1.03);
}

/* =========================================================
   🔘 BOTÓN
========================================================= */
.boton {
  transition: all 0.3s ease;
}

.boton:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, var(--rojo-hover), var(--morado));
}

/* =========================================================
   🏷️ TIPO NOTICIA
========================================================= */
.tipo-noticia {
  transition: transform 0.2s ease;
}

.tipo-noticia:hover {
  transform: scale(1.08);
}

/* Efecto suave al cargar */
.news-card {
  animation: fadeIn 0.6s ease;
}

/* Cursor elegante en elementos interactivos */
.news-content h3,
.news-image img,
.boton,
.tipo-noticia {
  cursor: pointer;
}

/* =========================================================
   📱 RESPONSIVE REAL
========================================================= */
@media (max-width: 768px) {

  body {
    padding: 10px;
  }

  nav {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .news-card {
    padding: 20px;
  }

  .news-title {
    font-size: 1.5rem;
  }

  .news-subtitle {
    font-size: 1rem;
  }

  .news-content h3 {
    font-size: 1rem;
    padding: 12px;
  }

  h1 {
    font-size: 1.6rem;
  }
}