/* ===== reportes.css — Página Reportes y guías ===== */

/* ══════════════════════════════════
   Hero
══════════════════════════════════ */
.rep-hero {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: .5rem;
  padding: 150px 1.5rem 80px;
  /* mismo fondo que el hero del home: imagen + capa oscura liviana */
  background:
    linear-gradient(135deg, rgba(5, 12, 22, .32), rgba(8, 28, 48, .28)),
    url('../img/banner-quienesomos.png') center / cover no-repeat;
}

.rep-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green, #018a38);
  margin: 0;
}

.rep-hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0;
}

.rep-hero-sub {
  font-size: .95rem;
  color: rgba(255, 255, 255, .7);
  margin: 0;
}

/* ══════════════════════════════════
   Sección de reportes
══════════════════════════════════ */
.rep-section {
  background: #f5f5f3;
  padding: 70px 0 100px;
}

.rep-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.rep-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* ══════════════════════════════════
   Card de reporte
══════════════════════════════════ */
.reporte-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}

.reporte-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .10);
}

.reporte-img-wrap {
  overflow: hidden;
}

.reporte-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}

.reporte-card:hover .reporte-img {
  transform: scale(1.05);
}

.reporte-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem;
}

.reporte-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--black, #0a0a0a);
  margin: 0 0 .5rem;
}

.reporte-desc {
  font-size: .85rem;
  line-height: 1.6;
  color: #555;
  margin: 0 0 1rem;
}

/* Meta (autor / fecha / tamaño) */
.reporte-meta {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-bottom: 1.25rem;
}

.reporte-meta-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  color: #6b7280;
}

.reporte-meta-item i {
  font-size: .95rem;
  color: var(--green, #018a38);
}

/* Botón -> abre modal */
.reporte-btn {
  margin-top: auto;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .7rem 1rem;
  font-family: 'Poppins', sans-serif;
  font-size: .9rem;
  font-weight: 600;
  color: #fff;
  background: #018a38;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background .2s ease;
}

.reporte-btn:hover {
  background: #016e2d;
}

/* Botón deshabilitado — reporte aún no disponible */
.reporte-btn--soon,
.reporte-btn--soon:hover {
  background: #9ca3af;
  color: #fff;
  cursor: not-allowed;
}

/* ══════════════════════════════════
   Modal de descarga
══════════════════════════════════ */
.rep-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}

.rep-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.rep-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* Card glassmorphism */
.rep-modal-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  margin: auto;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 24px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
  transform: scale(0.95);
  transition: transform .3s;
}

.rep-modal.is-open .rep-modal-content {
  transform: scale(1);
}

/* Columna de formulario */
.rep-modal-form-col {
  flex: 1;
  padding: 1.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Ícono de documento */
.rep-modal-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto .75rem;
  border-radius: 16px;
  background: rgba(1, 138, 56, .18);
  border: 1px solid rgba(1, 138, 56, .35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.rep-modal-icon i {
  font-size: 26px;
  color: #2fbd6a;
}

.rep-modal-sub {
  font-size: .85rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, .6);
  text-align: center;
  max-width: 300px;
  margin: 0 auto 1.25rem;
}

.rep-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  transition: background .2s, transform .2s;
}

.rep-modal-close:hover {
  background: rgba(255, 255, 255, .2);
  transform: scale(1.08);
}

.rep-modal-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.3;
  color: #fff;
  text-align: center;
  margin: 0 0 .4rem;
}

/* Formulario */
.rep-form {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.rep-field {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.rep-label {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .05em;
  color: rgba(255, 255, 255, .7);
  margin-bottom: .15rem;
}

.rep-opt {
  color: rgba(255, 255, 255, .45);
  font-weight: 400;
}

.rep-field input {
  width: 100%;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 10px;
  padding: .6rem 1rem;
  font-family: 'Poppins', sans-serif;
  font-size: .9rem;
  color: #fff;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: border-color .2s, box-shadow .2s;
}

.rep-field input::placeholder {
  color: rgba(255, 255, 255, .35);
}

.rep-field input:focus {
  outline: none;
  border-color: rgba(34, 113, 178, .6);
  box-shadow: 0 0 0 3px rgba(34, 113, 178, .15);
}

.rep-submit {
  margin-top: .5rem;
  width: 100%;
  padding: .8rem;
  font-family: 'Poppins', sans-serif;
  font-size: .95rem;
  font-weight: 500;
  color: #fff;
  background: #2271b2;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
}

.rep-submit:hover {
  background: #1b5e96;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .2);
}

/* ══════════════════════════════════
   Responsive
══════════════════════════════════ */
@media (max-width: 1024px) {
  .rep-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .rep-grid {
    grid-template-columns: 1fr;
  }
  .rep-hero-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 600px) {
  .rep-modal-content {
    max-width: 380px;
  }
  .rep-modal-form-col {
    padding: 1.5rem;
  }
}

/* ══════════════════════════════════
   Ventanas de feedback (éxito / error)
══════════════════════════════════ */
.rep-feedback {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}

.rep-feedback.is-open {
  opacity: 1;
  visibility: visible;
}

.rep-feedback-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.rep-feedback-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 340px;
  text-align: center;
  background: rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
  transform: scale(0.95);
  transition: transform .3s;
}

.rep-feedback.is-open .rep-feedback-card {
  transform: scale(1);
}

.rep-feedback-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rep-feedback-icon i {
  font-size: 36px;
}

.rep-feedback-icon--ok {
  background: rgba(1, 138, 56, .18);
  border: 1px solid rgba(1, 138, 56, .4);
}

.rep-feedback-icon--ok i {
  color: #2fbd6a;
}

.rep-feedback-icon--err {
  background: rgba(226, 75, 74, .18);
  border: 1px solid rgba(226, 75, 74, .4);
}

.rep-feedback-icon--err i {
  color: #f08584;
  font-size: 34px;
}

.rep-feedback-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: #fff;
  margin: 0 0 .5rem;
}

.rep-feedback-text {
  font-size: .88rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, .65);
  margin: 0 0 1.5rem;
}

.rep-feedback-btn {
  width: 100%;
  padding: .8rem;
  font-family: 'Poppins', sans-serif;
  font-size: .9rem;
  font-weight: 500;
  color: #fff;
  background: #2271b2;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: background .2s, transform .2s;
}

.rep-feedback-btn:hover {
  background: #1b5e96;
  transform: translateY(-2px);
}
