/* noticia.css - versión completa y optimizada */

/* Reset y base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'Montserrat', sans-serif;
  color: #fff;
  line-height: 1.6;
}

body {
  background-color: #0a1428;
  background-image: url('https://static.euronews.com/articles/stories/06/44/65/88/1440x810_cmsv2_d8afb9b6-414d-5d45-8269-10881e82cfe6-6446588.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Superposición para legibilidad */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.55);
  z-index: -1;
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px 30px;
  background: rgba(56,55,141,0.4);
  backdrop-filter: blur(7px);
  z-index: 1000;
  gap: 20px;
}

.logo {
  position: absolute;
  left: 30px;
  font-weight: 700;
  color: #FFD700;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
  transition: color 0.25s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffea80;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  cursor: pointer;
  z-index: 1100;
  position: absolute;
  right: 30px;
  top: 18px;
}
.menu-toggle .bar {
  height: 3px;
  width: 100%;
  background-color: #fff;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Animación de la hamburguesa a X */
.menu-toggle.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Barra de lectura */
#barra-lectura {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0;
  background: linear-gradient(90deg,#FFD700,#ffea80);
  z-index: 1200;
}

/* HERO */
.contact-hero {
  width: 100%;
  min-height: 28vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg,#1c2435 0%, #24304a 100%);
  padding: 42px 20px;
  color: #fff;
  border-bottom: 3px solid #FFD700;
  margin-top: 68px;
}

.hero-noticia .hero-content {
  max-width: 820px;
}

.hero-noticia h1 {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  color: #FFD700;
  margin-bottom: 10px;
}

.hero-noticia p {
  color: #e6e6e6;
  margin-bottom: 14px;
}

/* Botones */
.trailer-button,
.boton-noticia {
  text-decoration: none;
  color: #FFFFFF;
  background-color: #0A1428;
  border: 1px solid #152850;
  padding: 12px 22px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all .25s ease;
  display: inline-block;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.trailer-button:hover,
.boton-noticia:hover {
  background-color: #1c2435;
  border-color: #FFD700;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

/* Contenedor principal */
.principal-contenido {
  max-width: 980px;
  margin: 40px auto;
  padding: 0 16px;
}

/* Tarjeta de noticia */
.isms-card {
  background-color: rgba(38,46,64,0.95);
  padding: 36px 30px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.06);
}

/* Imagen principal */
.imgdetargeta-general {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  margin: 0 auto 18px auto;
  box-shadow: 0 8px 26px rgba(0,0,0,0.6);
}

/* Metas y encabezados */
.meta {
  color: #d6d6d6;
  font-weight: 500;
  margin-bottom: 12px;
}

h2 {
  color: #FFD700;
  margin-top: 18px;
  margin-bottom: 10px;
}

/* Agenda */
.agenda {
  background: rgba(255,255,255,0.02);
  padding: 16px 18px;
  border-left: 4px solid #FFD700;
  border-radius: 10px;
  margin: 14px 0 18px 0;
}

.evento h3 {
  margin-bottom: 6px;
  color: #fff;
}

.evento p {
  color: #e6e6e6;
}

/* Cita destacada */
.cita {
  background: rgba(255,238,240,0.04);
  border-left: 5px solid #FFD700;
  padding: 14px 16px;
  margin: 18px 0;
  font-style: italic;
  color: #fff;
  border-radius: 8px;
}

/* Dos columnas */
.dos-columnas {
  display: flex;
  gap: 20px;
  margin-top: 14px;
}
.columna {
  flex: 1;
  background: rgba(0,0,0,0.03);
  padding: 14px;
  border-radius: 8px;
}
.columna h3 {
  color: #FFD700;
  margin-bottom: 8px;
}

/* Soporte y contacto */
.soporte,
.contacto {
  background: rgba(255,255,255,0.02);
  padding: 12px;
  border-radius: 8px;
  margin-top: 14px;
  color: #e6e6e6;
}

/* Enlaces generales */
a {
  color: #ffffff;
  text-decoration: none;
}
a:hover {
  color: #ffea80;
}

/* Footer */
footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 22px 12px;
  background: linear-gradient(135deg,#1f2637 0%,#262e40 100%);
  margin-top: 36px;
}

/* Efecto fade-in */
.fade-in {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive general */
@media (max-width: 880px) {
  .dos-columnas { flex-direction: column; }
  nav { padding: 12px 18px; }
  .hero-noticia { padding: 28px 14px; margin-top: 64px; }
  .principal-contenido { margin: 24px auto; }
}

/* --- Menú móvil deslizante desde la derecha --- */
/* Responsive general para móviles */
@media (max-width: 768px) {
    nav {
        padding: 25px 20px; /* aumenta el padding vertical (antes 12px) */
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        background: rgba(56,55,141,0.5);
        backdrop-filter: blur(7px);
    }

    .logo {
        position: relative;  /* ya no absoluto */
        left: 0;
        font-size: 1.35rem;
        font-weight: 700;
        color: #FFD700;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -80%;
        width: 80%;
        height: 100vh;
        background: rgba(38, 46, 64, 0.95);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        padding: 30px 20px;
        transition: right 0.35s ease;
        z-index: 999;
        border-radius: 8px 0 0 8px;
        box-shadow: -4px 0 20px rgba(0,0,0,0.5);
    }

    .nav-links.active {
        right: 0;
    }

    .menu-toggle {
        display: flex;
        position: fixed;
        top: 25px; /* más espacio desde arriba */
        right: 25px;
        z-index: 1000;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
    }
}
