﻿/* Estilos para la Ficha Técnica de WD-PRO-4 */
:root {
  --ft-navy: #08195A;
  --ft-navy-dark: #040940;
  --ft-accent: #E58A1F;
  --ft-accent-gold: #F2B705;
  --ft-ink: #1E293B;
  --ft-muted: #64748B;
  --ft-border: #E2E8F0;
  --ft-bg-alt: #F8FAFC;
  --ft-tag-bg: #FEF3C7;
  --ft-tag-text: #B45309;
}

.ft-page-body {
  margin: 0;
  padding: 0;
  background: #ECEFF3;
  color: var(--ft-ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Barra superior de herramientas fija */
.ft-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 25, 90, 0.95);
  backdrop-filter: blur(10px);
  color: #fff;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.ft-topbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 15px;
}

.ft-topbar-brand img {
  height: 28px;
  width: auto;
}

.ft-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ft-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ft-btn-primary {
  background: var(--ft-accent-gold);
  color: var(--ft-navy);
}
.ft-btn-primary:hover {
  background: #FFD04A;
  transform: translateY(-1px);
}

.ft-btn-outline {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: rgba(255,255,255,0.25);
}
.ft-btn-outline:hover {
  background: rgba(255,255,255,0.2);
}

/* Contenedor del documento */
.ft-document-container {
  padding: 32px 16px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

/* Hoja A4 simulada */
.ft-sheet {
  background: #ffffff;
  width: 100%;
  max-width: 860px;
  min-height: 1160px;
  padding: 44px 50px;
  box-sizing: border-box;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Cabecera del documento */
.ft-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 2px solid var(--ft-navy);
  padding-bottom: 14px;
  margin-bottom: 22px;
}

.ft-header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ft-header-brand img {
  height: 42px;
  width: auto;
}

.ft-header-tagline {
  font-size: 12px;
  font-weight: 500;
  color: var(--ft-muted);
  margin-top: 2px;
}

.ft-edition-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #C2410C;
  background: #FFEDD5;
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid #FDBA74;
}

/* Título principal del producto */
.ft-hero {
  margin-bottom: 22px;
}

.ft-title {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 34px;
  font-weight: 800;
  color: var(--ft-navy);
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}

.ft-subtitle {
  font-size: 17px;
  font-weight: 700;
  color: var(--ft-accent);
  margin: 0 0 12px;
}

.ft-intro-lead {
  font-size: 13.5px;
  line-height: 1.6;
  color: #334155;
  margin: 0;
}

/* Tarjetas destacadas en 3 columnas */
.ft-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 20px 0 28px;
}

.ft-feature-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-top: 3.5px solid var(--ft-navy);
  border-radius: 6px;
  padding: 16px 14px;
  text-align: center;
}

.ft-feature-card:nth-child(2) {
  border-top-color: #2563EB;
}

.ft-feature-card:nth-child(3) {
  border-top-color: var(--ft-accent);
}

.ft-feature-card h4 {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ft-navy);
}

.ft-feature-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: #475569;
}

/* Títulos de sección */
.ft-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ft-muted);
  margin: 0 0 2px;
}

.ft-section-heading {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--ft-navy);
  margin: 0 0 14px;
}

/* Lista de características en 2 columnas */
.ft-bullet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  margin-bottom: 28px;
}

.ft-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.45;
  color: #334155;
}

.ft-bullet-item::before {
  content: '•';
  color: var(--ft-accent);
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

/* Tabla de datos técnicos */
.ft-table-wrapper {
  margin-bottom: 12px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--ft-border);
}

.ft-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}

.ft-table th {
  background: var(--ft-navy);
  color: #ffffff;
  padding: 9px 12px;
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ft-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #EDF2F7;
  color: #334155;
}

.ft-table tr:nth-child(even) td {
  background: #F8FAFC;
}

.ft-table tr:hover td {
  background: #F1F5F9;
}

.ft-table-note {
  font-size: 11px;
  font-style: italic;
  color: #64748B;
  margin: 6px 0 0;
}

/* Pie de página de la hoja A4 */
.ft-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid #E2E8F0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--ft-muted);
}

/* PÁGINA 2 - Procedimiento */
.ft-process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 24px;
}

.ft-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #F8FAFC;
  border: 1px solid var(--ft-border);
  border-radius: 6px;
  padding: 10px 14px;
}

.ft-step-number {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--ft-accent);
  background: #FFF7ED;
  border: 1px solid #FFEDD5;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.ft-step-content strong {
  display: block;
  font-size: 13px;
  color: var(--ft-navy);
  margin-bottom: 2px;
}

.ft-step-content p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: #475569;
}

/* Ensayos citados */
.ft-box-nace {
  background: #F0F7FF;
  border: 1px solid #BAE6FD;
  border-left: 4px solid #0284C7;
  border-radius: 6px;
  padding: 14px 18px;
  font-size: 12px;
  line-height: 1.55;
  color: #0369A1;
  margin-bottom: 24px;
}

/* Almacenamiento y Seguridad en 2 columnas */
.ft-safety-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.ft-safety-card {
  border-radius: 6px;
  padding: 14px 16px;
  font-size: 12px;
  line-height: 1.5;
}

.ft-storage-card {
  background: #F8FAFC;
  border: 1px solid var(--ft-border);
  border-left: 4px solid var(--ft-navy);
}

.ft-storage-card h5 {
  margin: 0 0 6px;
  color: var(--ft-navy);
  font-size: 13px;
  font-weight: 700;
}

.ft-danger-card {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-left: 4px solid #DC2626;
  color: #991B1B;
}

.ft-danger-card h5 {
  margin: 0 0 6px;
  color: #B91C1C;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Caja de advertencia previa a revisión */
.ft-warning-box {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 11.5px;
  line-height: 1.5;
  color: #92400E;
  margin-bottom: 18px;
}

.ft-legal-note {
  font-size: 10.5px;
  line-height: 1.4;
  color: #94A3B8;
  margin: 0;
}

/* MODAL OVERLAY PARA INDEX.HTML */
.ft-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(4, 9, 64, 0.78);
  backdrop-filter: blur(8px);
  padding: 20px;
  overflow-y: auto;
  align-items: flex-start;
  justify-content: center;
}

.ft-modal-overlay.open {
  display: flex;
  animation: ftFadeIn 0.25s ease-out;
}

@keyframes ftFadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.ft-modal-dialog {
  background: transparent;
  width: 100%;
  max-width: 900px;
  position: relative;
  margin: 10px auto 40px;
}

.ft-modal-header-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #08195A;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.ft-modal-close-btn {
  background: rgba(255,255,255,0.15);
  border: 0;
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 18px;
  transition: background 0.2s ease;
}

.ft-modal-close-btn:hover {
  background: rgba(255,255,255,0.3);
}

.ft-modal-content {
  background: #ECEFF3;
  padding: 24px 16px;
  border-radius: 0 0 8px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* REGLAS DE IMPRESIÓN (PRINT) */
@media print {
  body.ft-page-body, body {
    background: #ffffff !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .no-print, .ft-topbar, .ft-modal-header-actions, .ft-modal-overlay {
    display: none !important;
  }

  .ft-document-container {
    padding: 0 !important;
    gap: 0 !important;
  }

  .ft-sheet {
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 15mm 15mm !important;
    width: 100% !important;
    max-width: none !important;
    min-height: auto !important;
    page-break-after: always !important;
    break-after: page !important;
  }

  .ft-sheet:last-child {
    page-break-after: avoid !important;
    break-after: avoid !important;
  }

  .ft-table th {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    background-color: #08195A !important;
    color: #fff !important;
  }

  .ft-feature-card, .ft-box-nace, .ft-storage-card, .ft-danger-card, .ft-warning-box, .ft-edition-badge, .ft-step-number {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .ft-sheet {
    padding: 24px 18px;
  }

  .ft-cards-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .ft-bullet-grid {
    grid-template-columns: 1fr;
  }

  .ft-safety-grid {
    grid-template-columns: 1fr;
  }

  .ft-header {
    flex-direction: column;
    gap: 12px;
  }

  .ft-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .ft-topbar-actions {
    justify-content: flex-end;
  }
}
