/* ============================================================
   HEADER
   ============================================================ */

.header-band {
  padding: 18px 22px 0;
}


/* ============================================================
   LOGO + FECHA
   ============================================================ */

.header-top {
  display: flex;
  align-items: stretch;
  gap: 20px;
  margin-bottom: 14px;
}


/* ── Logo ─────────────────────────────────────────────────── */

.logo-box {
  width: 280px;
  height: 105px;
  border: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  background: transparent;
}

.logo-box img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  display: block;
}

.logo-box__fallback {
  font-family: var(--ff-label);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-ink-4);
  text-align: center;
}


/* ============================================================
   FECHA
   ============================================================ */

.fecha-table {
  flex: 1;
  min-width: 0;
  border: 1.4px solid var(--c-accent);
  border-radius: var(--r-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.fecha-table__head {
  display: flex;
  width: 100%;
  background: var(--c-accent);
}

.fecha-table__head span {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  color: #fff;
  font-family: var(--ff-label);
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 0;
}

.fecha-table__body {
  display: flex;
  flex: 1;
  width: 100%;
  min-width: 0;
}

.fecha-table__input {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  height: 100%;
  border: none;
  border-right: 1px solid var(--c-line);
  text-align: center;
  text-align-last: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--c-accent);
  outline: none;
  background: transparent;
  padding: 0 4px;
  box-sizing: border-box;
}

.fecha-table__input:last-child {
  border-right: none;
}

/* ============================================================
   DATOS DEL PACIENTE — FICHA CLÍNICA MODERNA
   ============================================================ */

.pt-box {
  border: 1.4px solid var(--c-accent);
  border-radius: 11px;
  overflow: hidden;
  margin-bottom: 12px;
  background: #fff;
  padding: 5px;
}


/* ============================================================
   FILAS
   ============================================================ */

.pt-row {
  display: flex;
  gap: 5px;
  border: none !important;
}

.pt-row + .pt-row {
  margin-top: 5px;
}


/* ============================================================
   CAMPOS
   ============================================================ */

.pt-cell {
  flex: 1;
  min-width: 0;

  display: flex;
  flex-direction: column;
  align-items: stretch;

  gap: 5px;

  padding: 8px 11px 9px;

  border: none !important;
  border-left: none !important;
  border-right: none !important;
  border-top: none !important;
  border-bottom: none !important;

  border-radius: 8px;

  background: #f7f9fd;

  box-shadow: inset 0 0 0 1px rgba(50, 84, 157, 0.06);

  transition:
    background .15s ease,
    box-shadow .15s ease;
}


/* ============================================================
   EFECTO AL EDITAR
   ============================================================ */

.pt-cell:focus-within {
  background: var(--c-accent-ghost);

  box-shadow:
    inset 0 0 0 1.2px var(--c-accent);
}


/* ============================================================
   ETIQUETAS
   ============================================================ */

.pt-label {
  display: flex;
  align-items: center;
  gap: 6px;

  font-family: var(--ff-label);
  font-size: 8px;
  font-weight: 800;

  letter-spacing: .08em;
  text-transform: uppercase;

  color: var(--c-accent);

  white-space: nowrap;
  line-height: 1;
}


/* pequeño indicador visual */
.pt-label::before {
  content: '';

  width: 4px;
  height: 4px;

  flex-shrink: 0;

  border-radius: 50%;

  background: var(--c-accent);
}


/* ============================================================
   INPUT
   ============================================================ */

.pt-input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;

  border: none !important;
  border-bottom: none !important;

  outline: none;

  background: transparent;

  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 500;

  color: var(--c-ink);

  padding: 1px 0 2px;

  line-height: 1.4;
}


/* ============================================================
   PLACEHOLDER
   ============================================================ */

.pt-input::placeholder {
  color: #91a0b7;
  opacity: 1;
}


/* ============================================================
   INPUT ACTIVO
   ============================================================ */

.pt-cell:focus-within .pt-label {
  color: var(--c-accent);
}

.pt-cell:focus-within .pt-label::before {
  transform: scale(1.35);
}


/* ============================================================
   PROPORCIONES
   ============================================================ */

.pt-row:first-child .pt-cell:first-child {
  flex: 1.6;
}

.pt-row:nth-child(2) .pt-cell:first-child {
  flex: 1.6;
}

.pt-row:nth-child(2) .pt-cell:nth-child(2) {
  flex: 1.4;
}


/* ============================================================
   FECHA DE NACIMIENTO
   ============================================================ */

.pt-input[type="date"] {
  color-scheme: light;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 700px) {

  .pt-box {
    padding: 4px;
  }

  .pt-row {
    gap: 4px;
  }

  .pt-row + .pt-row {
    margin-top: 4px;
  }

  .pt-cell {
    padding: 7px 9px 8px;
  }

  .pt-label {
    font-size: 7.5px;
  }

  .pt-input {
    font-size: 12px;
  }
}
/* ============================================================
   DISTRIBUCIÓN
   ============================================================ */

.pt-row:first-child .pt-cell:first-child {
  flex: 1.6;
}

.pt-row:nth-child(2) .pt-cell:first-child {
  flex: 1.6;
}

.pt-row:nth-child(2) .pt-cell:nth-child(2) {
  flex: 1.4;
}


/* ============================================================
   FECHA DE NACIMIENTO
   ============================================================ */

.pt-input[type="date"] {
  color-scheme: light;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 700px) {

  .pt-cell {
    padding: 8px 10px 9px;
  }

  .pt-label {
    font-size: 7.5px;
  }

  .pt-input {
    font-size: 12px;
  }
}

/* ============================================================
   DISTRIBUCIÓN DE LOS CAMPOS
   ============================================================ */

/* Nombre */
.pt-row:first-child .pt-cell:first-child {
  flex: 1.6;
}

/* Segunda fila: Doctor */
.pt-row:nth-child(2) .pt-cell:first-child {
  flex: 1.6;
}

/* Segunda fila: E-mail */
.pt-row:nth-child(2) .pt-cell:nth-child(2) {
  flex: 1.4;
}


/* ============================================================
   AJUSTE PARA FECHA
   ============================================================ */

.fecha-table__input:focus {
  background: rgba(255, 255, 255, 0.15);
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 700px) {

  .header-top {
    gap: 12px;
  }

  .logo-box {
    width: 220px;
    height: 90px;
  }

  .pt-cell {
    padding: 6px 9px 7px;
  }

  .pt-label {
    font-size: 8px;
  }

  .pt-input {
    font-size: 11.5px;
  }
}