/* ============================================================= */
/* SISTEMA:      GraxSoft Sitio Web                              */
/* ARCHIVO:      css/hpefs.css                                   */
/* MÓDULO:       Estilos Portal Financiero HPEFS (HUD Sci-Fi)    */
/*                                                               */
/* AUTOR:        Ing. Gabriel Amilcar Cruz Canto, CEO Graxsoft   */
/* DEPTO:        DevLabs Division (Diseño e Investigación) en Graxsoft */
/*                                                               */
/* PROPÓSITO:                                                    */
/* Clases de presentación específicas de la página hpefs.html,   */
/* incluyendo la consola del timeline, el reproductor de video   */
/* integrado y el acordeón del FAQ.                              */
/*                                                               */
/* DEPENDENCIAS:                                                 */
/* - css/design-system.css                                       */
/*                                                               */
/* CONTROL DE VERSIÓN:                                           */
/* v1.0 2026-03-05 DevIAn -> Estilos de consola y rejilla de TI. */
/* ============================================================= */

/* Hero HPEFS Section */
.hpefs-hero {
  padding: 120px 0 40px 0;
  position: relative;
}

.hpefs-hero-card {
  min-height: auto !important;
  padding: 40px 30px !important;
}

.hpefs-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
}

.hpefs-hero-text {
  flex: 1;
}

.hpefs-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.3);
  color: var(--accent-secondary);
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 6px 12px;
  border-radius: 2px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.05);
}

.hpefs-hero-text h1 {
  font-family: var(--font-header);
  font-size: 40px;
  font-weight: 800;
  line-height: 1.15;
  color: transparent;
  background: linear-gradient(180deg, #FFFFFF 0%, #94A3B8 100%);
  background-clip: text;
  -webkit-background-clip: text;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  text-transform: lowercase;
}

.hpefs-hero-text p {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.hpefs-hero-text p strong {
  color: var(--accent-secondary);
  font-weight: 600;
}

.hpefs-meta {
  display: flex;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  padding-top: 15px;
  text-transform: uppercase;
}

.hpefs-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hpefs-meta i {
  color: var(--accent-secondary);
}

.hpefs-hero-logo {
  flex-shrink: 0;
  width: 240px;
  height: 240px;
  background: rgba(4, 10, 15, 0.9);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 4px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(0, 229, 255, 0.05);
  transform: perspective(1000px) rotateY(-8deg);
  transition: all 0.5s ease;
}

.hpefs-hero-logo:hover {
  transform: perspective(1000px) rotateY(0deg) scale(1.02);
  border-color: var(--accent-secondary);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 229, 255, 0.15);
}

.hpefs-hero-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.1));
}

/* Video Section HUD */
.hpefs-video-hud {
  min-height: auto !important;
  padding: 35px 25px 25px 25px !important;
}

.video-hud-content {
  width: 100%;
  display: flex;
  justify-content: center;
}

.video-container {
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
  position: relative;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Section Header Styled (Cyber Grid Style) */
.section-header-styled {
  margin-bottom: 40px;
}

.section-header-styled .sub-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-secondary);
  letter-spacing: 2px;
  display: block;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.section-header-styled h2 {
  font-family: var(--font-header);
  font-size: 32px;
  font-weight: 800;
  color: transparent;
  background: linear-gradient(180deg, #FFFFFF 0%, #94A3B8 100%);
  background-clip: text;
  -webkit-background-clip: text;
  letter-spacing: -1px;
  margin-bottom: 12px;
  text-transform: lowercase;
}

.section-header-styled .divider-line {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-secondary), transparent);
  box-shadow: 0 0 8px var(--accent-secondary);
}

/* Grids HUD */
.hpefs-grid-hud {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.hpefs-grid-hud .hud-card {
  min-height: auto !important;
  padding: 30px 25px 25px 25px !important;
}

/* Disclaimer note style */
.hpefs-disclaimer-hud {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: rgba(4, 10, 15, 0.7);
  border: 1px solid rgba(229, 57, 53, 0.2);
  border-left: 3px solid #E53935;
  padding: 20px 25px;
  border-radius: 2px;
  margin-top: 40px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.hpefs-disclaimer-hud i {
  color: #E53935;
  font-size: 20px;
  margin-top: 2px;
  animation: cyber-blink 2s infinite ease-in-out;
}

@keyframes cyber-blink {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; text-shadow: 0 0 10px #E53935; }
}

.hpefs-disclaimer-hud span {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

.hpefs-disclaimer-hud strong {
  color: #ffffff;
  text-transform: uppercase;
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 1px;
}

/* Images HUD Panel */
.hpefs-images-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.image-hud-panel {
  min-height: auto !important;
  padding: 30px 25px 25px 25px !important;
}

.image-hud-panel .hud-content {
  flex-direction: column;
}

.image-wrapper {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  position: relative;
  margin-bottom: 20px;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  filter: grayscale(40%) contrast(110%);
}

.image-hud-panel:hover img {
  filter: grayscale(0%) contrast(100%);
  transform: scale(1.05);
}

.image-overlay-text h4 {
  font-family: var(--font-header);
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  text-transform: lowercase;
}

.image-overlay-text p {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* Timeline Console */
.hpefs-timeline-console {
  background: rgba(4, 10, 15, 0.9);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(0, 229, 255, 0.02);
}

.timeline-console-header {
  background: rgba(11, 25, 47, 0.8);
  border-bottom: 1px solid rgba(0, 229, 255, 0.1);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.timeline-console-header .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.timeline-console-header .dot.red { background-color: #E53935; }
.timeline-console-header .dot.yellow { background-color: #FFB300; }
.timeline-console-header .dot.green { background-color: #43A047; }

.console-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  margin-left: 10px;
  letter-spacing: 1px;
}

.timeline-console-body {
  padding: 30px;
  font-family: var(--font-mono);
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.timeline-console-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  line-height: 1.6;
}

.trace-status {
  font-weight: bold;
  font-size: 11px;
  letter-spacing: 1px;
  flex-shrink: 0;
  width: 90px;
}

.trace-status.green { color: #00E676; text-shadow: 0 0 8px rgba(0, 230, 118, 0.3); }
.trace-status.blue { color: #29B6F6; text-shadow: 0 0 8px rgba(41, 182, 246, 0.3); }
.trace-status.gray { color: rgba(255, 255, 255, 0.25); }

.trace-step {
  color: var(--accent-secondary);
  flex-shrink: 0;
}

.trace-desc {
  color: var(--text-muted);
}

.trace-desc strong {
  color: #ffffff;
  font-weight: 600;
}

/* FAQ Accordion */
.hpefs-faq-accordion-wrap {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.hpefs-faq-item {
  background: rgba(4, 10, 15, 0.7);
  border: 1px solid rgba(0, 229, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.hpefs-faq-item[open] {
  border-color: rgba(0, 229, 255, 0.4);
  background: rgba(4, 10, 15, 0.9);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.05);
}

.hpefs-faq-item summary {
  padding: 20px 25px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  color: #ffffff;
  cursor: pointer;
  outline: none;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.hpefs-faq-item summary::-webkit-details-marker {
  display: none;
}

.hpefs-faq-item summary::after {
  content: '\f107';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--accent-secondary);
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  font-size: 16px;
}

.hpefs-faq-item[open] summary::after {
  transform: rotate(180deg);
}

.hpefs-faq-item p {
  padding: 0 25px 20px 25px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  margin: 0;
}

.hpefs-faq-item p strong {
  color: var(--accent-secondary);
  font-weight: 600;
}

/* Call to Action HUD */
.hpefs-cta-hud {
  min-height: auto !important;
  padding: 40px 30px !important;
}

.cta-hud-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-hud-content h2 {
  font-family: var(--font-header);
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
  text-transform: lowercase;
  letter-spacing: -1px;
}

.cta-hud-content p {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.large-cta-btn {
  animation: cyber-pulse 4s infinite ease-in-out;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .hpefs-hero-text h1 {
    font-size: 34px;
  }
}

@media (max-width: 900px) {
  .hpefs-hero-inner {
    flex-direction: column-reverse;
    text-align: center;
    gap: 30px;
  }
  .hpefs-meta {
    justify-content: center;
  }
  .hpefs-hero-logo {
    transform: none;
    width: 200px;
    height: 200px;
  }
  .hpefs-grid-hud,
  .hpefs-images-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .timeline-console-row {
    flex-direction: column;
    gap: 4px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
  }
  .timeline-console-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  .trace-status {
    width: auto;
  }
}

@media (max-width: 600px) {
  .hpefs-hero-text h1 {
    font-size: 28px;
  }
  .timeline-console-body {
    padding: 15px;
  }
  .hpefs-disclaimer-hud {
    flex-direction: column;
    gap: 10px;
  }
}

/* ============================================================= */
/* FIN css/hpefs.css                                             */
/* ============================================================= */
