/* ============================================
   Prensa Mexicali — identidad de marca oficial
   Verde #00FF00 · Blanco #FFFFFF · Negro #111111
   Encabezados: Anton · Cuerpo: Montserrat
   ============================================ */

:root {
  --negro: #111111;
  --negro-alt: #191919;
  --negro-borde: #2a2a2a;
  --blanco: #ffffff;
  --gris: #a8a8a8;
  --gris-suave: #7d7d7d;
  --verde: #00ff00;
  --verde-oscuro: #00b81f;
  --alerta: #ff3b30;
  --radio: 3px;

  --fuente-display: "Anton", "Arial Narrow", sans-serif;
  --fuente-cuerpo: "Montserrat", -apple-system, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--negro);
  color: var(--blanco);
  font-family: var(--fuente-cuerpo);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px;
}

/* ---------- Masthead ---------- */
.masthead {
  padding: 22px 0 14px;
  text-align: center;
  border-bottom: 1px solid var(--negro-borde);
}

.masthead .eyebrow {
  font-family: var(--fuente-cuerpo);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gris);
  margin-bottom: 12px;
}

.masthead .eyebrow strong { color: var(--verde); }

.masthead .logo-img {
  display: inline-block;
  max-width: 320px;
  width: 68vw;
}

.masthead .tagline {
  font-family: var(--fuente-cuerpo);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gris);
  margin-top: 10px;
}

/* ---------- Nav ---------- */
.nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  padding: 15px 0;
  border-bottom: 1px solid var(--negro-borde);
  font-family: var(--fuente-cuerpo);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav a { padding: 4px 2px; border-bottom: 2px solid transparent; color: var(--blanco); }
.nav a:hover, .nav a.activo { color: var(--verde); border-bottom-color: var(--verde); }

/* ---------- Ticker ---------- */
.ticker {
  background: var(--negro-alt);
  color: var(--blanco);
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  border-bottom: 1px solid var(--negro-borde);
}

.ticker .ticker-label {
  position: absolute;
  z-index: 2;
  left: 0; top: 0; bottom: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--verde);
  color: var(--negro);
  padding: 0 16px;
  font-family: var(--fuente-cuerpo);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ticker .ticker-label .punto {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--negro);
  animation: parpadeo 1.6s infinite;
}

@keyframes parpadeo { 0%,100% { opacity: 1; } 50% { opacity: 0.2; } }

.ticker .ticker-track {
  display: inline-flex;
  padding-left: 175px;
  animation: desplazar 32s linear infinite;
}

.ticker:hover .ticker-track { animation-play-state: paused; }

.ticker .ticker-track span {
  padding: 9px 34px;
  font-family: var(--fuente-cuerpo);
  font-weight: 500;
  font-size: 13px;
  border-right: 1px solid var(--negro-borde);
  color: var(--gris);
}

.ticker .ticker-track span:hover { color: var(--verde); }

@keyframes desplazar {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker .ticker-track { animation: none; }
}

/* ---------- Hero / destacada ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  padding: 36px 0;
  border-bottom: 1px solid var(--negro-borde);
}

.hero-principal .cat-tag { margin-bottom: 14px; }

.hero-principal .foto {
  aspect-ratio: 16/9.5;
  overflow: hidden;
  background: var(--negro-alt);
  border-radius: var(--radio);
  margin-bottom: 18px;
  border: 1px solid var(--negro-borde);
}
.hero-principal .foto img { width: 100%; height: 100%; object-fit: cover; }

.hero-principal h2 {
  font-family: var(--fuente-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.06;
  letter-spacing: 0.01em;
  margin: 0 0 12px;
}

.hero-principal h2:hover { color: var(--verde); }

.hero-principal .resumen {
  font-size: 16px;
  color: var(--gris);
  margin-bottom: 10px;
}

.meta {
  font-family: var(--fuente-cuerpo);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--gris-suave);
  text-transform: uppercase;
}

.hero-secundaria { display: flex; flex-direction: column; gap: 22px; }

.nota-mini { display: flex; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--negro-borde); }
.nota-mini:last-child { border-bottom: none; padding-bottom: 0; }
.nota-mini .foto { width: 96px; height: 72px; flex-shrink: 0; border-radius: var(--radio); overflow: hidden; background: var(--negro-alt); border: 1px solid var(--negro-borde); }
.nota-mini .foto img { width: 100%; height: 100%; object-fit: cover; }
.nota-mini h3 { font-family: var(--fuente-display); font-weight: 400; text-transform: uppercase; font-size: 16px; line-height: 1.18; margin: 0 0 6px; }
.nota-mini h3:hover { color: var(--verde); }

/* ---------- Etiquetas de categoría ---------- */
.cat-tag {
  display: inline-block;
  font-family: var(--fuente-cuerpo);
  font-weight: 800;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radio);
  background: var(--verde);
  color: var(--negro);
}

/* ---------- Cuadrícula de secciones ---------- */
.seccion { padding: 38px 0; border-bottom: 1px solid var(--negro-borde); }
.seccion-titulo {
  display: flex; align-items: baseline; gap: 14px;
  font-family: var(--fuente-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 24px;
  margin-bottom: 24px;
}
.seccion-titulo .linea-larga { flex: 1; height: 1px; background: var(--negro-borde); }

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

.tarjeta .foto { aspect-ratio: 4/2.7; border-radius: var(--radio); overflow: hidden; background: var(--negro-alt); margin-bottom: 12px; border: 1px solid var(--negro-borde); }
.tarjeta .foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tarjeta:hover .foto img { transform: scale(1.05); }
.tarjeta h3 { font-family: var(--fuente-display); font-weight: 400; text-transform: uppercase; font-size: 19px; line-height: 1.2; margin: 10px 0 8px; }
.tarjeta:hover h3 { color: var(--verde); }
.tarjeta .resumen { font-size: 14px; color: var(--gris); margin-bottom: 8px; }

.vacio { color: var(--gris); font-style: italic; padding: 30px 0; }

/* ---------- Artículo individual ---------- */
.articulo { padding: 40px 0 60px; max-width: 760px; margin: 0 auto; }
.articulo .cat-tag { margin-bottom: 16px; }
.articulo h1 { font-family: var(--fuente-display); font-weight: 400; text-transform: uppercase; font-size: clamp(30px, 5vw, 48px); line-height: 1.05; margin: 0 0 16px; }
.articulo .resumen-lead { font-size: 19px; color: var(--gris); margin-bottom: 18px; }
.articulo .meta { margin-bottom: 24px; }
.articulo .foto-portada { border-radius: var(--radio); overflow: hidden; margin-bottom: 26px; border: 1px solid var(--negro-borde); }
.articulo .cuerpo { font-size: 17px; color: #e6e6e6; }
.articulo .cuerpo p { margin: 0 0 20px; }
.volver { display: inline-block; margin-bottom: 22px; font-family: var(--fuente-cuerpo); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--verde); }

/* ---------- Formulario de publicación ---------- */
.form-publicar {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 0 70px;
}
.form-publicar h1 { font-family: var(--fuente-display); font-weight: 400; text-transform: uppercase; font-size: 38px; margin: 0 0 8px; }
.form-publicar .sub { color: var(--gris); margin-bottom: 30px; }

.campo { margin-bottom: 20px; }
.campo label {
  display: block;
  font-family: var(--fuente-cuerpo);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gris);
  margin-bottom: 7px;
}

.campo input[type=text],
.campo input[type=password],
.campo select,
.campo textarea,
.campo input[type=file] {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--negro-borde);
  border-radius: var(--radio);
  background: var(--negro-alt);
  font-family: var(--fuente-cuerpo);
  font-size: 15px;
  color: var(--blanco);
}

.campo textarea { resize: vertical; min-height: 160px; }
.campo input:focus, .campo select:focus, .campo textarea:focus {
  outline: 2px solid var(--verde);
  outline-offset: 1px;
  border-color: var(--verde);
}

.fila-dos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.btn-enviar {
  width: 100%;
  padding: 14px 16px;
  background: var(--verde);
  color: var(--negro);
  border: none;
  border-radius: var(--radio);
  font-family: var(--fuente-cuerpo);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.btn-enviar:hover { background: var(--verde-oscuro); }

.aviso {
  padding: 13px 15px;
  border-radius: var(--radio);
  font-size: 14px;
  margin-bottom: 22px;
  font-weight: 500;
}
.aviso.ok { background: rgba(0,255,0,0.1); color: var(--verde); border: 1px solid rgba(0,255,0,0.35); }
.aviso.error { background: rgba(255,59,48,0.1); color: var(--alerta); border: 1px solid rgba(255,59,48,0.35); }

.nota-api {
  margin-top: 40px;
  padding: 17px 18px;
  background: var(--negro-alt);
  border: 1px solid var(--negro-borde);
  border-radius: var(--radio);
  font-family: "Courier New", monospace;
  font-size: 12.5px;
  color: var(--gris);
  line-height: 1.8;
}
.nota-api strong { color: var(--blanco); font-family: var(--fuente-cuerpo); }
.nota-api code { background: rgba(255,255,255,0.06); color: var(--verde); padding: 1px 5px; border-radius: 2px; }

/* ---------- Footer ---------- */
footer {
  padding: 32px 0 54px;
  text-align: center;
  font-family: var(--fuente-cuerpo);
  font-weight: 600;
  font-size: 11.5px;
  color: var(--gris-suave);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .grid-noticias { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .grid-noticias { grid-template-columns: 1fr; }
  .fila-dos { grid-template-columns: 1fr; }
  .nav { gap: 14px; }
}
