/* ============================================================================
   ESTILOS CSS ADICIONALES PARA EPSEP
   ============================================================================ */

/* Banner de presentación */
.banner-container {
  width: 100%;
  margin-bottom: 2rem;
}

.banner-container img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Resumen ejecutivo - Key Facts */
.resumen-ejecutivo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.fact-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border: 1px solid #dee2e6;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.fact-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2C3E50;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.fact-label {
  font-size: 0.9rem;
  color: #7F8C8D;
  font-weight: 500;
}

/* Tarjetas de muestra */
.muestra-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.muestra-card {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 1.25rem;
  border-left: 4px solid;
}

.muestra-card.panel {
  border-left-color: #2C3E50;
}

.muestra-card.r1 {
  border-left-color: #E74C3C;
}

.muestra-card.r2 {
  border-left-color: #3498DB;
}

.muestra-card h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  color: #2C3E50;
}

.muestra-card p {
  margin: 0;
  font-size: 0.9rem;
  color: #7F8C8D;
}

/* Timeline horizontal de olas */
.olas-timeline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  margin: 3rem 0;
  padding: 0 1rem;
}

.olas-timeline::before {
  content: '';
  position: absolute;
  top: 25px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2C3E50, #E74C3C, #3498DB);
  z-index: 0;
}

.ola-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.ola-marker {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #2C3E50;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.ola-marker.refresco {
  background-color: #E74C3C;
}

.ola-info {
  text-align: center;
}

.ola-info .fecha {
  font-size: 0.8rem;
  color: #7F8C8D;
}

.ola-info .tipo {
  font-size: 0.75rem;
  color: #95A5A6;
  font-style: italic;
}

/* Tabla de atrición con colores */
.atricion-alta {
  background-color: rgba(231, 76, 60, 0.15) !important;
}

.atricion-media {
  background-color: rgba(243, 156, 18, 0.15) !important;
}

.atricion-baja {
  background-color: rgba(39, 174, 96, 0.15) !important;
}

/* Badges de estado */
.badge {
  display: inline-block;
  padding: 0.25em 0.6em;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-panel {
  background-color: #2C3E50;
  color: white;
}

.badge-r1 {
  background-color: #E74C3C;
  color: white;
}

.badge-r2 {
  background-color: #3498DB;
  color: white;
}

/* Cajas informativas */
.info-box {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border: 1px solid #dee2e6;
}

.info-box.destacado {
  border-left: 4px solid #2C3E50;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.info-box h4 {
  color: #2C3E50;
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

/* Cita sugerida */
.cita-sugerida {
  background-color: #f8f9fa;
  border-left: 4px solid #3498DB;
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  font-family: monospace;
  font-size: 0.9rem;
  line-height: 1.6;
}

.cita-sugerida::before {
  content: 'Cita sugerida';
  display: block;
  font-family: "Source Sans Pro", sans-serif;
  font-weight: 600;
  color: #3498DB;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Financiamiento logos */
.logos-financiamiento {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 2rem 0;
  padding: 1.5rem;
  background-color: #f8f9fa;
  border-radius: 8px;
}

.logos-financiamiento img {
  max-height: 60px;
  width: auto;
  filter: grayscale(30%);
  transition: filter 0.3s ease;
}

.logos-financiamiento img:hover {
  filter: grayscale(0%);
}

/* Print styles para PDF */
@media print {
  .no-print {
    display: none !important;
  }
  
  .page-break-before {
    page-break-before: always;
  }
  
  .page-break-after {
    page-break-after: always;
  }
  
  table {
    page-break-inside: avoid;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .resumen-ejecutivo {
    grid-template-columns: 1fr 1fr;
  }
  
  .muestra-cards {
    grid-template-columns: 1fr;
  }
  
  .olas-timeline {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .olas-timeline::before {
    top: 0;
    bottom: 0;
    left: 25px;
    width: 3px;
    height: auto;
  }
  
  .ola-item {
    flex-direction: row;
    gap: 1rem;
  }
  
  .ola-info {
    text-align: left;
  }
}
