/* ========== BASE GLOBAL DEL SITIO ========== */

/* Reset básico */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* HTML y BODY */
html, body {
  height: 100%;
  width: 100%;
  font-family: "Georgia", serif;
  background-color: #faf5f0;
  color: #333;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

/* Variables de color globales (fáciles de ajustar) */
:root {
  --brand-accent: #e1a307; /* amarillo dorado */
  --brand-blue: #0ea5ff; /* azul de acento más claro */
  --bg-dark-soft: #f2f7fb; /* fondo suave y claro */
  --text-default: #111;
}

/* Imágenes */
img {
  max-width: 100%;
  display: block;
  object-fit: cover;
}

/* Enlaces */
a {
  text-decoration: none;
  color: inherit;
}

/* Botones */
button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
  
}

/* Títulos */
h1, h2, h3, h4, h5, h6 {
  font-weight: bold;
  line-height: 1.2;
  color: var(--text-default);
  padding: 10px;
}

/* Animación global para títulos principales (subir al entrar en sección) */
.animated-title {
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.8s cubic-bezier(.2,.9,.2,1), opacity 0.8s ease;
  will-change: transform, opacity;
}

.animated-title.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

h3 {
  font-size: 1.5rem;
}

/* Contenedor base */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Utilidades */
.text-center { text-align: center; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* Responsive básico */
@media (max-width: 768px) {
  html { font-size: 90%; }
}

@media (max-width: 480px) {
  html { font-size: 85%; }
}

.ficha-tecnica {
  max-width: 900px;
  margin: 60px auto;
  padding: 40px;
  background-color: #111;
  color: #f5f5f5;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
  text-align: center;
}

.ficha-tecnica h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.8rem;
  color: #ffb400;
  margin-bottom: 20px;
}

.ficha-contenido {
  display: flex;
  justify-content: center;
}

.ficha-contenido table {
  width: 100%;
  max-width: 700px;
  border-collapse: collapse;
  text-align: left;
  font-size: 1rem;
}

.ficha-contenido th,
.ficha-contenido td {
  padding: 10px 15px;
  border-bottom: 1px solid #444;
}

.ficha-contenido th {
  color: #ffb400;
  font-weight: 600;
  width: 40%;
}

.ficha-contenido tr:last-child td {
  border-bottom: none;
}
.ficha-contenido td {
  color: #dddcdc;
}

/* ========== ESTILO EDITORIAL GLOBAL PARA NOTAS ========== */
body.nota-page,
body.nota-noticias,
body.nota-deportes {
  background: #fafafa;
}

body.nota-page .noticia-detalle,
body.nota-noticias .noticia-detalle,
body.nota-deportes .noticia-detalle {
  max-width: min(94vw, 1400px);
  margin: 32px auto 48px;
  padding: 48px 64px 64px;
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

body.nota-page .noticia-detalle h1,
body.nota-noticias .noticia-detalle h1,
body.nota-deportes .noticia-detalle h1 {
  max-width: 100%;
  margin: 20px 0 16px !important;
  padding: 0 0 14px 0 !important;
  font-family: "Georgia", serif !important;
  font-style: normal !important;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #1a1a1a;
  border: none !important;
  border-bottom: 3px solid #e6b410 !important;
  text-align: left;
  width: 100% !important;
}

body.nota-page .entradilla,
body.nota-noticias .entradilla,
body.nota-deportes .entradilla {
  display: none;
}

body.nota-page .datos-destacados,
body.nota-noticias .datos-destacados,
body.nota-deportes .datos-destacados {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 24px 0 36px;
}

body.nota-page .dato-item,
body.nota-noticias .dato-item,
body.nota-deportes .dato-item {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding: 20px 24px;
  border-radius: 8px;
  border-left: 4px solid #08341f;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

body.nota-page .dato-item:hover,
body.nota-noticias .dato-item:hover,
body.nota-deportes .dato-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  border-left-color: #f8ca26;
}

body.nota-page .dato-icono,
body.nota-noticias .dato-icono,
body.nota-deportes .dato-icono {
  font-size: 2rem;
  margin-bottom: 8px;
  display: block;
}

body.nota-page .dato-texto,
body.nota-noticias .dato-texto,
body.nota-deportes .dato-texto {
  font-family: "Georgia", serif;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.5;
  color: #2c3e50;
  font-weight: 500;
}

body.nota-page .noticia-descripcion,
body.nota-noticias .noticia-descripcion,
body.nota-deportes .noticia-descripcion {
  max-width: 100%;
  margin: 0 0 32px 0;
  padding: 0 !important;
  color: #3d3d3d;
  font-family: "Georgia", serif !important;
  font-style: normal !important;
  font-size: clamp(1.1rem, 1.4vw, 1.3rem);
  font-weight: 500;
  line-height: 1.65;
  border-left: 4px solid #f8ca26;
  padding-left: 20px !important;
  background: #fffef9;
  padding: 18px 24px !important;
}

body.nota-page h1,
body.nota-page h2,
body.nota-page h3,
body.nota-page h4,
body.nota-noticias h1,
body.nota-noticias h2,
body.nota-noticias h3,
body.nota-noticias h4,
body.nota-deportes h1,
body.nota-deportes h2,
body.nota-deportes h3,
body.nota-deportes h4 {
  font-style: normal !important;
  font-synthesis: none;
}

body.nota-page .noticia-portada,
body.nota-noticias .noticia-portada,
body.nota-deportes .noticia-portada {
  width: 100%;
  max-width: 100%;
  height: auto !important;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

body.nota-page .noticia-bloque,
body.nota-noticias .noticia-bloque,
body.nota-deportes .noticia-bloque {
  display: flex;
  gap: 36px;
  margin: 48px 0;
  align-items: flex-start;
}

body.nota-page .noticia-bloque .noticia-texto,
body.nota-noticias .noticia-bloque .noticia-texto,
body.nota-deportes .noticia-bloque .noticia-texto {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0 !important;
}

body.nota-page .noticia-titulo,
body.nota-noticias .noticia-titulo,
body.nota-deportes .noticia-titulo {
  font-family: "Georgia", serif !important;
  font-style: normal !important;
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 700;
  line-height: 1.3;
  color: #1a1a1a;
  margin-top: 0 !important;
  margin-bottom: 18px !important;
  padding: 0 0 10px 0 !important;
  border-left: none;
  border-bottom: 2px solid #1f2937;
}

body.nota-page .noticia-bloque .noticia-parrafo,
body.nota-noticias .noticia-bloque .noticia-parrafo,
body.nota-deportes .noticia-bloque .noticia-parrafo {
  font-family: "Georgia", serif;
  font-size: clamp(1.05rem, 1.4vw, 1.375rem);
  line-height: 1.75;
  color: #3d3d3d;
  margin-bottom: 16px;
}

body.nota-page .noticia-bloque img,
body.nota-noticias .noticia-bloque img,
body.nota-deportes .noticia-bloque img {
  flex: 1.4;
  width: 58%;
  max-width: 58%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  object-fit: cover;
}

body.nota-page .noticia-bloque img:hover,
body.nota-noticias .noticia-bloque img:hover,
body.nota-deportes .noticia-bloque img:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Bloque con imagen grande a ancho completo */
body.nota-page .noticia-bloque-full,
body.nota-noticias .noticia-bloque-full,
body.nota-deportes .noticia-bloque-full {
  display: block;
  margin: 56px 0;
}

body.nota-page .noticia-bloque-full img,
body.nota-noticias .noticia-bloque-full img,
body.nota-deportes .noticia-bloque-full img {
  width: 100%;
  max-width: 100%;
  margin-bottom: 28px;
  aspect-ratio: 16/9;
}

body.nota-page .noticia-bloque-full .noticia-texto,
body.nota-noticias .noticia-bloque-full .noticia-texto,
body.nota-deportes .noticia-bloque-full .noticia-texto {
  max-width: 100%;
}

body.nota-page .ficha-tecnica,
body.nota-noticias .ficha-tecnica,
body.nota-deportes .ficha-tecnica,
body.nota-page .ficha-tecnica-profesional,
body.nota-noticias .ficha-tecnica-profesional,
body.nota-deportes .ficha-tecnica-profesional {
  margin: 48px 0;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid #e8e8e8;
}

body.nota-page .ficha-tecnica-profesional,
body.nota-noticias .ficha-tecnica-profesional,
body.nota-deportes .ficha-tecnica-profesional {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  padding: 50px 30px;
  max-width: 1400px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

body.nota-page .ficha-tecnica-profesional h2,
body.nota-noticias .ficha-tecnica-profesional h2,
body.nota-deportes .ficha-tecnica-profesional h2 {
  text-align: center;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: #08341f;
  margin-bottom: 35px;
  border-bottom: 3px solid #e6b410;
  padding-bottom: 18px;
  padding-left: 0;
  padding-right: 0;
  padding-top: 0;
  font-family: "Georgia", serif;
  font-weight: 700;
}

body.nota-page .ficha-tecnica-profesional .ficha-grid,
body.nota-noticias .ficha-tecnica-profesional .ficha-grid,
body.nota-deportes .ficha-tecnica-profesional .ficha-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

body.nota-page .ficha-tecnica-profesional .ficha-item,
body.nota-noticias .ficha-tecnica-profesional .ficha-item,
body.nota-deportes .ficha-tecnica-profesional .ficha-item {
  background: #ffffff;
  padding: 24px;
  border-radius: 8px;
  border-left: 4px solid #e6b410;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.nota-page .ficha-tecnica-profesional .ficha-item:hover,
body.nota-noticias .ficha-tecnica-profesional .ficha-item:hover,
body.nota-deportes .ficha-tecnica-profesional .ficha-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(230, 180, 16, 0.25);
}

body.nota-page .ficha-tecnica-profesional .ficha-item strong,
body.nota-noticias .ficha-tecnica-profesional .ficha-item strong,
body.nota-deportes .ficha-tecnica-profesional .ficha-item strong {
  display: block;
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  color: #08341f;
  margin-bottom: 10px;
  font-weight: 700;
  font-family: "Poppins", sans-serif;
}

body.nota-page .ficha-tecnica-profesional .ficha-item p,
body.nota-noticias .ficha-tecnica-profesional .ficha-item p,
body.nota-deportes .ficha-tecnica-profesional .ficha-item p {
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  line-height: 1.65;
  color: #444;
  margin: 0;
  font-family: "Georgia", serif;
}

body.nota-page .ficha-tecnica-profesional .ficha-item.competidores,
body.nota-noticias .ficha-tecnica-profesional .ficha-item.competidores,
body.nota-deportes .ficha-tecnica-profesional .ficha-item.competidores {
  grid-column: 1 / -1;
  background: #003f2d;
  border-left-color: #e6b410;
}

body.nota-page .ficha-tecnica-profesional .ficha-item.competidores strong,
body.nota-noticias .ficha-tecnica-profesional .ficha-item.competidores strong,
body.nota-deportes .ficha-tecnica-profesional .ficha-item.competidores strong {
  color: #f4c430;
}

body.nota-page .ficha-tecnica-profesional .ficha-item.competidores p,
body.nota-noticias .ficha-tecnica-profesional .ficha-item.competidores p,
body.nota-deportes .ficha-tecnica-profesional .ficha-item.competidores p {
  color: #ffffff;
}

body.nota-noticias .section-noticias {
  max-width: min(94vw, 1080px);
  margin: 32px auto;
  padding: 0 20px;
}

body.nota-noticias .card {
  border: 1px solid #e8e8e8;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

@media (max-width: 1024px) {
  body.nota-page .noticia-detalle,
  body.nota-noticias .noticia-detalle,
  body.nota-deportes .noticia-detalle {
    max-width: min(96vw, 1000px);
    margin: 20px auto 32px;
    padding: 34px 32px 40px;
  }

  body.nota-page .noticia-detalle h1,
  body.nota-noticias .noticia-detalle h1,
  body.nota-deportes .noticia-detalle h1 {
    margin: 18px 0 16px !important;
    font-size: clamp(1.8rem, 3.8vw, 2.6rem);
  }

  body.nota-page .noticia-descripcion,
  body.nota-noticias .noticia-descripcion,
  body.nota-deportes .noticia-descripcion {
    margin-bottom: 24px;
    padding: 14px 18px !important;
  }

  body.nota-page .noticia-bloque,
  body.nota-noticias .noticia-bloque,
  body.nota-deportes .noticia-bloque {
    gap: 24px;
    margin: 34px 0;
  }

  body.nota-page .noticia-bloque .noticia-parrafo,
  body.nota-noticias .noticia-bloque .noticia-parrafo,
  body.nota-deportes .noticia-bloque .noticia-parrafo {
    font-size: clamp(1rem, 1.8vw, 1.18rem);
    line-height: 1.68;
  }

  body.nota-page .noticia-bloque img,
  body.nota-noticias .noticia-bloque img,
  body.nota-deportes .noticia-bloque img {
    flex: 1.1;
    width: 50%;
    max-width: 50%;
  }

  body.nota-page .ficha-tecnica-profesional,
  body.nota-noticias .ficha-tecnica-profesional,
  body.nota-deportes .ficha-tecnica-profesional {
    padding: 34px 22px;
    margin: 36px 0;
  }
}

@media (max-width: 768px) {
  body.nota-page .noticia-detalle,
  body.nota-noticias .noticia-detalle,
  body.nota-deportes .noticia-detalle {
    margin: 0;
    padding: 24px 18px 36px;
    border-radius: 0;
    box-shadow: none;
  }

  body.nota-page .noticia-detalle h1,
  body.nota-noticias .noticia-detalle h1,
  body.nota-deportes .noticia-detalle h1 {
    font-size: clamp(1.5rem, 5vw, 1.85rem);
  }

  body.nota-page .noticia-descripcion,
  body.nota-noticias .noticia-descripcion,
  body.nota-deportes .noticia-descripcion {
    padding: 14px 18px !important;
    margin-bottom: 24px;
  }

  body.nota-page .noticia-portada,
  body.nota-noticias .noticia-portada,
  body.nota-deportes .noticia-portada {
    border-radius: 0;
    margin-left: -18px;
    margin-right: -18px;
    width: calc(100% + 36px);
    max-width: calc(100% + 36px);
  }

  body.nota-page .noticia-bloque,
  body.nota-noticias .noticia-bloque,
  body.nota-deportes .noticia-bloque {
    flex-direction: column;
    gap: 16px;
    margin: 32px 0;
  }

  body.nota-page .noticia-titulo,
  body.nota-noticias .noticia-titulo,
  body.nota-deportes .noticia-titulo {
    margin-bottom: 10px !important;
    font-size: clamp(1.35rem, 4.6vw, 1.7rem);
  }

  body.nota-page .noticia-bloque .noticia-parrafo,
  body.nota-noticias .noticia-bloque .noticia-parrafo,
  body.nota-deportes .noticia-bloque .noticia-parrafo {
    font-size: 1rem;
    line-height: 1.62;
    margin-bottom: 10px;
  }

  body.nota-page .noticia-bloque img,
  body.nota-noticias .noticia-bloque img,
  body.nota-deportes .noticia-bloque img {
    width: 100%;
    max-width: 100%;
  }

  body.nota-page .ficha-tecnica-profesional,
  body.nota-noticias .ficha-tecnica-profesional,
  body.nota-deportes .ficha-tecnica-profesional {
    padding: 24px 16px;
    border-radius: 0;
  }

  body.nota-page .ficha-tecnica-profesional h2,
  body.nota-noticias .ficha-tecnica-profesional h2,
  body.nota-deportes .ficha-tecnica-profesional h2 {
    margin-bottom: 22px;
    padding-bottom: 12px;
  }
}

@media (max-width: 480px) {
  body.nota-page .noticia-detalle,
  body.nota-noticias .noticia-detalle,
  body.nota-deportes .noticia-detalle {
    padding: 18px 14px 28px;
  }

  body.nota-page .noticia-detalle h1,
  body.nota-noticias .noticia-detalle h1,
  body.nota-deportes .noticia-detalle h1 {
    margin: 12px 0 14px !important;
    font-size: clamp(1.45rem, 7vw, 1.75rem);
  }

  body.nota-page .noticia-descripcion,
  body.nota-noticias .noticia-descripcion,
  body.nota-deportes .noticia-descripcion {
    padding: 12px 14px !important;
    margin-bottom: 18px;
    font-size: 1rem;
    line-height: 1.55;
  }

  body.nota-page .noticia-portada,
  body.nota-noticias .noticia-portada,
  body.nota-deportes .noticia-portada {
    margin-bottom: 18px;
    margin-left: -14px;
    margin-right: -14px;
    width: calc(100% + 28px);
    max-width: calc(100% + 28px);
  }

  body.nota-page .noticia-bloque,
  body.nota-noticias .noticia-bloque,
  body.nota-deportes .noticia-bloque,
  body.nota-page .noticia-bloque-full,
  body.nota-noticias .noticia-bloque-full,
  body.nota-deportes .noticia-bloque-full {
    margin: 24px 0;
  }

  body.nota-page .noticia-titulo,
  body.nota-noticias .noticia-titulo,
  body.nota-deportes .noticia-titulo {
    font-size: 1.25rem;
  }

  body.nota-page .ficha-tecnica-profesional .ficha-grid,
  body.nota-noticias .ficha-tecnica-profesional .ficha-grid,
  body.nota-deportes .ficha-tecnica-profesional .ficha-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  body.nota-page .ficha-tecnica-profesional .ficha-item,
  body.nota-noticias .ficha-tecnica-profesional .ficha-item,
  body.nota-deportes .ficha-tecnica-profesional .ficha-item {
    padding: 18px;
  }
}

/* ========== AJUSTES DE ESPACIADO SOLO DEPORTES (NOTAS NUEVAS) ========== */
body.nota-page.nota-deportes .noticia-bloque {
  gap: 20px;
  margin: 0 auto 30px;
  width: 90%;
  align-items: stretch;
}

body.nota-page.nota-deportes .noticia-bloque .noticia-texto {
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body.nota-page.nota-deportes .noticia-bloque img {
  width: calc(50% - 10px);
  max-width: calc(50% - 10px);
  max-height: 500px;
  border-radius: 12px;
}

@media (max-width: 1024px) {
  body.nota-page.nota-deportes .noticia-bloque {
    width: 94%;
    gap: 16px;
    margin: 0 auto 24px;
  }

  body.nota-page.nota-deportes .noticia-bloque .noticia-texto {
    padding: 24px;
  }

  body.nota-page.nota-deportes .noticia-bloque img {
    width: calc(50% - 8px);
    max-width: calc(50% - 8px);
  }
}

@media (max-width: 768px) {
  body.nota-page.nota-deportes .noticia-bloque,
  body.nota-page.nota-deportes .noticia-bloque.imagen-izquierda {
    width: 100%;
    gap: 14px;
    margin: 0 auto 20px;
  }

  body.nota-page.nota-deportes .noticia-bloque .noticia-texto,
  body.nota-page.nota-deportes .noticia-bloque img {
    width: 100%;
    max-width: 100%;
  }

  body.nota-page.nota-deportes .noticia-bloque .noticia-texto {
    padding: 20px;
  }
}

