/* ═══════════════════════════════════════
   ciudadano.css  —  Al Ciudadano · UCPHDE
   ═══════════════════════════════════════ */

/* ── Logo blanco (hero oscuro) ── */
.logo-txt {
  filter: brightness(0) invert(1);
}

/* ══════════════════════════════════════
   HERO
   ══════════════════════════════════════ */
.cd-hero {
  position: relative;
  min-height: 56vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--dark) 0%, var(--navy) 60%, #1a3a6a 100%);
  overflow: hidden;
}

.cd-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(34, 205, 231, .12) 0%, transparent 70%);
  border-radius: 50%;
}

.cd-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(34, 205, 231, .08) 0%, transparent 70%);
  border-radius: 50%;
}

.cd-hero-inner {
  position: relative;
  z-index: 1;
  padding: 9rem 0 4.5rem;
  max-width: 680px;
}

.cd-hero .badge {
  background: rgba(34, 205, 231, .15);
  color: var(--teal);
  border: 1px solid rgba(34, 205, 231, .25);
}

.cd-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.cd-hero h1 em {
  color: var(--teal);
}

.cd-hero p {
  color: rgba(255, 255, 255, .75);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 540px;
}

/* ══════════════════════════════════════
   SECCIÓN VIDEOS
   ══════════════════════════════════════ */
.cd-videos {
  padding: 6rem 0;
  background: var(--white);
}

.cd-video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.cd-video-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
}

.cd-video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-deep);
  border-color: var(--teal);
}

.cd-video-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--dark);
}

.cd-video-thumb iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.cd-video-body {
  padding: 1.5rem;
}

.cd-video-tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--teal);
  background: var(--teal-soft);
  padding: .2rem .7rem;
  border-radius: var(--radius-lg);
  margin-bottom: .75rem;
}

.cd-video-body h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: .5rem;
  line-height: 1.3;
}

.cd-video-body p {
  font-size: .92rem;
  color: var(--gray-mid);
  line-height: 1.6;
}

/* ══════════════════════════════════════
   SECCIÓN GUÍAS DESCARGABLES
   ══════════════════════════════════════ */
.cd-guias {
  padding: 6rem 0;
  background: linear-gradient(170deg, #f6fbfc 0%, var(--white) 100%);
}

.cd-guias-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.cd-guia-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 2rem 1.75rem;
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cd-guia-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-deep);
}

.cd-guia-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}

.cd-guia-icon svg {
  width: 28px;
  height: 28px;
}

.cd-guia-icon--teal {
  background: var(--teal-soft);
  color: var(--teal);
}

.cd-guia-icon--green {
  background: rgba(97, 206, 112, .12);
  color: var(--green);
}

.cd-guia-icon--orange {
  background: rgba(212, 133, 29, .12);
  color: var(--orange);
}

.cd-guia-icon--magenta {
  background: rgba(127, 32, 151, .12);
  color: var(--magenta);
}

.cd-guia-icon--navy {
  background: rgba(15, 30, 76, .08);
  color: var(--navy);
}

.cd-guia-icon--rozado {
  background: rgba(199, 74, 214, .12);
  color: var(--rozado);
}

.cd-guia-card h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: .6rem;
  line-height: 1.3;
}

.cd-guia-card p {
  font-size: .9rem;
  color: var(--gray-mid);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.cd-guia-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--teal);
  padding: .5rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--teal);
  transition: var(--transition);
  text-decoration: none;
}

.cd-guia-btn:hover {
  background: var(--teal);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(34, 205, 231, .3);
}

/* ══════════════════════════════════════
   SECCIÓN NOTICIAS
   ══════════════════════════════════════ */
.cd-noticias {
  padding: 6rem 0;
  background: var(--white);
}

.cd-noticias-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

/* Noticia destacada */
.cd-noticia-destacada {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.cd-noticia-destacada:hover {
  box-shadow: var(--shadow-deep);
  transform: translateY(-3px);
}

.cd-noticia-img {
  position: relative;
  height: 240px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--dark) 100%);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
}

.cd-noticia-img::before {
  content: '';
  position: absolute;
  top: 10%;
  right: 10%;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(34, 205, 231, .18) 0%, transparent 70%);
  border-radius: 50%;
}

.cd-noticia-categoria {
  position: relative;
  z-index: 1;
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--white);
  background: var(--teal);
  padding: .25rem .75rem;
  border-radius: var(--radius-lg);
}

.cd-noticia-contenido {
  padding: 1.75rem;
}

.cd-noticia-fecha {
  display: block;
  font-size: .78rem;
  color: var(--gray);
  font-weight: 500;
  margin-bottom: .6rem;
}

.cd-noticia-contenido h3 {
  font-size: 1.2rem;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: .75rem;
}

.cd-noticia-contenido p {
  font-size: .92rem;
  color: var(--gray-mid);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

/* Noticias mini */
.cd-noticias-lateral {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cd-noticia-mini {
  display: flex;
  align-items: flex-start;
  gap: 1.15rem;
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.cd-noticia-mini:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-soft);
  transform: translateX(4px);
}

.cd-mini-icono {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cd-mini-icono svg {
  width: 20px;
  height: 20px;
}

.cd-mini-icono--teal {
  background: var(--teal-soft);
  color: var(--teal);
}

.cd-mini-icono--green {
  background: rgba(97, 206, 112, .12);
  color: var(--green);
}

.cd-mini-icono--orange {
  background: rgba(212, 133, 29, .12);
  color: var(--orange);
}

.cd-mini-icono--magenta {
  background: rgba(127, 32, 151, .12);
  color: var(--magenta);
}

.cd-mini-texto time {
  display: block;
  font-size: .72rem;
  color: var(--gray);
  font-weight: 500;
  margin-bottom: .3rem;
}

.cd-mini-texto h4 {
  font-size: .92rem;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: .4rem;
  font-weight: 600;
}

.cd-mini-texto a {
  font-size: .8rem;
  color: var(--teal);
  font-weight: 600;
  transition: var(--transition);
}

.cd-mini-texto a:hover {
  color: var(--teal-dark);
}

/* ══════════════════════════════════════
   CTA
   ══════════════════════════════════════ */
.cd-cta {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--dark) 0%, var(--navy) 100%);
}

.cd-cta-inner {
  text-align: center;
  max-width: 600px;
  margin-inline: auto;
}

.cd-cta h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--white);
  margin-bottom: 1rem;
}

.cd-cta h2 em {
  color: var(--teal);
}

.cd-cta p {
  color: rgba(255, 255, 255, .7);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* ══════════════════════════════════════
   ANIMACIONES SCROLL REVEAL
   ══════════════════════════════════════ */
.cd-reveal,
.cd-reveal--left,
.cd-reveal--right,
.cd-reveal--scale {
  opacity: 0;
  transition: opacity .7s cubic-bezier(.4, 0, .2, 1),
    transform .7s cubic-bezier(.4, 0, .2, 1);
}

.cd-reveal {
  transform: translateY(30px);
}

.cd-reveal--left {
  transform: translateX(-40px);
}

.cd-reveal--right {
  transform: translateX(40px);
}

.cd-reveal--scale {
  transform: scale(.92);
}

.cd-reveal.visible,
.cd-reveal--left.visible,
.cd-reveal--right.visible,
.cd-reveal--scale.visible {
  opacity: 1;
  transform: none;
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 960px) {
  .cd-video-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin-inline: auto;
  }

  .cd-guias-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cd-noticias-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .cd-hero-inner {
    padding: 7rem 0 3rem;
  }

  .cd-hero h1 {
    font-size: 1.8rem;
  }

  .cd-videos,
  .cd-guias,
  .cd-noticias {
    padding: 4rem 0;
  }

  .cd-guias-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-inline: auto;
  }

  .cd-noticia-img {
    height: 180px;
  }

  .cd-noticia-mini {
    flex-direction: column;
    gap: .75rem;
  }
}
