/* header.css */

/* ══ BANNER PRINCIPAL ═══════════════════════════════════ */
.form-banner {
  display: grid;
  grid-template-columns: 280px 1fr;
  background: linear-gradient(135deg, var(--c-blue-deep) 0%, var(--c-blue-dk) 60%, var(--c-blue) 100%);
  position: relative;
  overflow: hidden;
  min-height: 100px;
}

/* Franja decorativa diagonal verde */
.form-banner::before {
  content: '';
  position: absolute;
  top: 0; right: 140px;
  width: 80px; height: 100%;
  background: linear-gradient(to bottom, var(--c-green), var(--c-green-dk));
  opacity: 0.18;
  transform: skewX(-10deg);
  pointer-events: none;
}
.form-banner::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-green) 0%, var(--c-blue-md) 50%, var(--c-green) 100%);
}

.logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: #fff;
  border-right: 4px solid var(--c-blue);
}
.logo-box img {
  width: 100%;
  height: 80px;
  object-fit: contain;
  display: block;
}
.logo-placeholder {
  width: 140px; height: 44px;
  border: 1.5px dashed rgba(26,143,209,0.4);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: var(--c-blue-md);
  letter-spacing: 0.1em; font-family: var(--ff-mono);
}

/* Zona de texto a la derecha del logo */
.banner-title-area {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 28px;
  gap: 6px;
}
.banner-title {
  font-family: var(--ff-title);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.2;
}
.banner-title span {
  color: var(--c-green);
}
.banner-sub {
  font-size: 10px;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--ff-body);
}

/* Bloque fecha */
.banner-fecha {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 14px 18px;
  gap: 5px;
  background: rgba(255,255,255,0.06);
  border-left: 3px solid var(--c-green);
}
.banner-fecha .lbl {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-green);
  font-family: var(--ff-title);
}
.banner-fecha input[type="date"] {
  background: transparent;
  border: none;
  border-bottom: 1.5px solid rgba(255,255,255,0.25);
  padding: 2px 0;
  font-family: var(--ff-mono);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  outline: none;
  color-scheme: dark;
  width: 100%;
}

/* ══ BARRA INTERPRETACIÓN DIAGNÓSTICA ═══════════════════ */
.interp-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px;
  background: var(--c-blue);
  border-bottom: 2px solid var(--c-blue-dk);
}
.interp-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  font-family: var(--ff-title);
}
.interp-options { display: flex; gap: 6px; }
.interp-btn {
  padding: 3px 16px;
  border-radius: var(--r-pill);
  border: 1.5px solid rgba(255,255,255,0.3);
  background: transparent;
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: 0.08em;
}
.interp-btn:hover { border-color: #fff; color: #fff; }
.interp-btn.selected {
  background: var(--c-green);
  border-color: var(--c-green);
  color: #fff;
}

/* ══ DATOS PACIENTE ══════════════════════════════════════ */
.patient-header {
  background: var(--c-bg);
  border-bottom: 3px solid var(--c-blue);
  position: relative;
}
.patient-header::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--c-blue), var(--c-green));
}

.prow {
  display: grid;
  border-bottom: 1px solid var(--c-line);
}
.prow:last-child { border-bottom: none; }
.prow-1 { grid-template-columns: 2.5fr 1.5fr; }
.prow-2 { grid-template-columns: 1.6fr 0.8fr 1.2fr; }
.prow-3 { grid-template-columns: 1.4fr 2fr; }

.fg {
  padding: 8px 16px 8px 20px;
  border-right: 1px solid var(--c-line);
  display: flex; flex-direction: column; gap: 3px; min-width: 0;
}
.fg:last-child { border-right: none; }

.fg__label {
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--c-blue);
  font-family: var(--ff-title);
}

.fg__input {
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--c-line-md);
  
  /* 1. Disminuimos el radius (antes era pill, ahora algo más sutil) */
  border-radius: 4px; 
  
  /* 2. Aumentamos la altura mediante el padding vertical (8px arriba, 8px abajo) */
  padding: 8px 12px; 
  
  width: 100%;
  font-family: var(--ff-body);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--c-ink);
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.fg__input:focus {
  border-bottom-color: var(--c-blue);
  background: var(--c-blue-lt);
}
.fg__input::placeholder { color: var(--c-ink-4); font-size: 11px; font-weight: 400; }
.fg__input[readonly] { color: var(--c-ink-3); cursor: default; }
#fechaNacimiento { color-scheme: light; }

/* Eliminar el fondo de autocompletado en Chrome, Edge y Safari */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  /* Tapamos el fondo con una sombra interna del color que quieras (blanco en este caso) */
  -webkit-box-shadow: 0 0 0px 1000px #ffffff inset !important;
  
  /* Si quieres que el texto siga siendo oscuro */
  -webkit-text-fill-color: #333333 !important;
  
  /* Ajusta la fuente si el navegador intenta cambiarla */
  font-family: inherit !important;
  transition: background-color 5000s ease-in-out 0s;
}
