/* :root{
  
  --bg: #F5F7FA;
  --card: #FFFFFF;

  
  --text-main: #2E2E2E;
  --text-secondary: #6E6E6E;

  
  --border: #E5E7EB;


  --accent: #1E4F7A;
  --accent-hover: #163A59;

  
  --accent-soft: #E6EEF6;
} */
:root{
  /* Fondo */
  --bg: #F6F8F7;
  --card: #FFFFFF;

  /* Texto */
  --text-main: #2B2F33;
  --text-secondary: #6B737B;

  /* Bordes */
  --border: #E3E6E8;

  /* Marca */
  --accent: #2F5D62;
  --accent-hover: #214347;

  /* Apoyo suave */
  --accent-soft: #E7F0F1;
}


/* Reset básico */
*{
  box-sizing: border-box;
}

html, body{
  margin: 0;
  height: 100%;
}

body{
  
font-family: "Roboto Condensed", system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  
  background: var(--bg);
  color: var(--text-main);
}

/* Layout general */
.viewport{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.logo-container {
  text-align: center;
  margin-bottom: 18px;
}

.logo {
  max-width: 420px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Caja central */
.card{
  width: 100%;
  max-width: 500px;
  background: var(--card);
   border: 1px solid var(--border);
  padding: 40px 32px;
  text-align: center;
   box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}.cv-summary p{
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-main);
  margin-bottom: 16px;
  text-align: justify;
}

.cv-summary strong{
  font-weight: 600;
}


/* Títulos */
h1{
  margin: 0 0 6px;
  font-size: 42px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

h2{
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.location{
  margin: 0 0 14px;
  font-size: 16px;
  color: var(--text-secondary);
}

/* Botones principales */
.actions{
  display: flex;
  gap: 14px;
  margin-bottom: 32px;
}



/* Hover con texto contextual */
/* Botón base */
/* Botón base */
.btn{
  flex: 1;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 10px;
  margin-top: 5px;
  border: 1px solid var(--accent);
  background-color: var(--accent);
  color: #FFFFFF;

  border-radius: 0;
  text-align: center;
  text-decoration: none;

  transition:
    background-color .2s ease,
    color .2s ease,
    border-color .2s ease;
}



/* Texto alternativo */
.btn::after{
  content: attr(data-hover);
  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 15px;             /* 👈 igual al original */
  font-weight: 500;
  line-height: 1.2;
  text-align: center;

  background: transparent;
  color: var(--text-main);

  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}


.actions .btn:hover{
  background-color: var(--accent-soft); /* amarillo grisáceo */
  color: var(--text-main);              /* color principal */
  border-color: var(--accent-soft);
}

/* .actions .btn:hover::after{
  opacity: 1;
} */



/* Botón volver sin recuadro */
.back-link{
  justify-content: center;
}

.back-link a{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
}

.back-link a:hover{
  color: var(--accent);
}

.btn-icon{
  width: 24px;     /* 👈 tamaño correcto */
  height: 24px;
  margin-right: 8px;
  flex-shrink: 0;
}
.btn:hover .btn-icon{
  filter: brightness(0) invert(1);
}
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
}


/* Contacto */
.contact{
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

/* Línea LinkedIn + WhatsApp */
.contact-line{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  /* font-size: 14px; */
  color: var(--text-secondary);
}

.contact a{
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.contact img{
  width: 18px;
  height: 18px;
}

/* Botón formulario */
.form-btn{
  padding: 10px 18px;
  border: 1px solid var(--accent);
  text-decoration: none;
  font-weight: 500;
  color: var(--accent);
  border-radius: 0;
  transition: background .2s ease, color .2s ease;
}

.form-btn:hover{
  background: var(--accent);
  color: #FFFFFF;
}
.contact-actions{
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.contact-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid;
  gap: 10px;
}

.contact-link img{
  width: 16px;
  height: 16px;
}

.contact-link:hover{
  color: var(--accent-hover);
}

/* Icono formulario (más sobrio que emoji grande) */
.icon-form{
  font-size: 15px;
  line-height: 1;
}
/* Botón formulario (secundario, sobrio) */
.btn-form{
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  font-size: 14px;
  padding: 10px 18px;
}

.btn-form:hover{
  background: var(--accent);
  color: #FFFFFF;
}


/* Email (sin link) */
.email{
  /* font-size: 14px; */
  color: var(--text-secondary);
}

/* Trademark */
.trademark{
  margin-top: 18px;
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
}

/* Formulario */
.field{
  margin-bottom: 14px;
}

input, textarea{
  width: 100%;
  padding: 12px;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 14px;
  border: 1px solid var(--border);
  background: #fff;
}

textarea{
  resize: vertical;
}

.status{
  margin-top: 14px;
  font-size: 14px;
  color: var(--text-secondary);
  min-height: 18px;
}

/* Botón volver */
.btn.secondary{
  background: transparent;
  color: var(--accent);
}

/* Lista informativa sutil */
.info-list{
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.info-list li{
  list-style: none;
  position: relative;
  padding-left: 14px;
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-main);
  text-align: left;
}



/* Viñeta tipo punto centrado */
/* Punto alineado a la primera línea */
.info-list li::before{
  /* content: "•"; */
  position: absolute;
  left: 0;
  top: 0.2em;           /* 👈 CLAVE */
  font-size: 20px;
  line-height: 1;
  color: var(--text-secondary);
}
/* Viñeta mínima */

.separator {
  border: none;
  height: 1px;
  background: var(--accent);
  opacity: 0.35;
  margin: 12px auto;
  max-width: 120px;
}
.section-divider {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 20px auto;
  max-width: 800px;
}

.trayectoria {
  padding: 40px 20px 80px;
}

.trayectoria .container {
  max-width: 800px;
  margin: 0 auto;
}

.section-title {
  font-size: 1 rem;
  font-weight: 500;
  text-align: left;
}

.cv-block h3 {
  font-size: 0.95rem;
  font-weight: 500;
  text-align: left;
}


.cv-block {
  margin-bottom: 40px;
}



.cv-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
    font-size: 0.75rem;
}

.cv-block li {
  margin-bottom: 10px;
  line-height: 1.5;
  color: var(--text-main);
    font-size: 0.75rem;

}

.cv-block strong {
  font-weight: 600;
  color: var(--accent);
    font-size: 0.75rem;
}

.cv-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
    font-size: 0.75rem;
}

.cv-list li {
  margin-bottom: 10px;
  
  line-height: 1.5;
  color: var(--text-main);
    font-size: 0.75rem;
}

.periodo {
  font-weight: 300;
  margin-right: 6px;
}

.cv-list strong {
  font-weight: 600;
  color: var(--text-main);
}
.link-acerca{
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}

.link-acerca:hover{
  color: var(--accent-hover);
  border-bottom: 1px solid var(--accent-hover);
}

.page-consent {
  padding: 60px 20px 80px;
}
.page-consent .card{
  text-align: left;
  max-width: 600px; /* mantiene proporción con tu diseño */
}

.page-consent h3{
  text-align: center;
}

/* Secciones */
.page-consent .section{
  margin-bottom: 28px;
}

.page-consent .section-title{
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

/* Texto legal */
.page-consent .legal-text{
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 14px;
  text-align: justify;
}

/* CHECKBOX A LA DERECHA */
.page-consent .checkbox-group{
  margin-bottom: 14px;
}

.page-consent .checkbox-group label{
  display: flex;
  justify-content: space-between; /* 👈 clave */
  align-items: flex-start;
  gap: 16px;
  font-size: 15px;
  line-height: 1.5;
  cursor: pointer;
}

/* Texto ocupa todo el ancho disponible */
.page-consent .checkbox-group span{
  flex: 1;
}

/* Checkbox alineado a la derecha */
.page-consent .checkbox-group input{
  width: 16px;
  height: 16px;
  margin-top: 4px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

/* Firma */
.page-consent .signature-field{
  margin-top: 10px;
}

/* Botón */
.page-consent .btn-primary{
  width: 100%;
  padding: 14px;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid var(--accent);
  background-color: var(--accent);
  color: #fff;
  margin-top: 12px;
  transition: background .2s ease, border-color .2s ease;
}

.page-consent .btn-primary:hover{
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* Nota legal pequeña */
.page-consent .disclaimer{
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 18px;
  line-height: 1.4;
  text-align: center;
}

/* Separador elegante */
.page-consent .section-divider{
  border: none;
  height: 1px;
  background: var(--border);
  margin: 32px 0;
}

.row{
  display: flex;
  gap: 14px;
}

.row .field{
  flex: 1;
}
select{
  width: 100%;
  padding: 12px;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 14px;
  border: 1px solid var(--border);
  background: #fff;
  height: 44px;           /* igual que input */
  appearance: none;       /* elimina estilo nativo */
  -webkit-appearance: none;
  -moz-appearance: none;
}

.paciente-row{
  display: flex;
  gap: 16px;
  align-items: flex-end;
}

.dni-field{
  width: 140px; /* ancho suficiente para 10 dígitos */
}

.nombre-field{
  flex: 1;
}

#dni{
  text-align: center;
  letter-spacing: 1px;
}

.esquema-table{
  margin-top: 20px;
}

.esquema-header{
  font-weight: 600;
  margin-bottom: 8px;
}

.col-medicamento{
  flex: 2;
}

.col-dosis{
  flex: 1;
}

.esquema-row{
  margin-bottom: 10px;
}
.page-admision .card{
  max-width: 880px;
}

.page-admision .field-wide{
  flex: 1 1 100%;
}

.page-admision .row-2 .field{
  flex: 1 1 0;
}

.page-admision .row-3 .field{
  flex: 1 1 0;
}

.page-admision .row-4 .field{
  flex: 1 1 0;
}

.page-admision .section-header-inline{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 12px;
}

.page-admision .section-header-inline .section-title{
  margin-bottom: 0;
}

.page-admision .field-date-inline{
  width: 220px;
  margin-bottom: 0;
}

.page-admision .field-date-inline label{
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  display: block;
}

.page-admision .section-divider-tight{
  margin: 18px 0;
}

.page-admision textarea{
  resize: vertical;
}

.page-admision textarea[name="alimentacion"],
.page-admision textarea[name="alergias"]{
  min-height: 72px;
}
.page-admision .field-date-small{
  max-width: 220px;
}

.page-admision .btn-primary{
  width: auto;
  min-width: unset;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ==============================
   EVOLUCIONAR
============================== */

.page-evolucionar .card{
  max-width: 760px;
  text-align: left;
}

.page-evolucionar h3{
  text-align: center;
  margin-bottom: 22px;
}

.page-evolucionar .field-date-small{
  max-width: 190px;
}

.page-evolucionar .btn-primary-compact{
  width: auto;
  min-width: unset;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.autocomplete-wrap{
  position: relative;
}

.autocomplete-list{
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-top: none;
  z-index: 20;
  max-height: 260px;
  overflow-y: auto;
}

.autocomplete-item{
  width: 100%;
  text-align: left;
  background: #fff;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 10px 12px;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 14px;
  cursor: pointer;
}

.autocomplete-item:hover{
  background: var(--accent-soft);
}

.paciente-elegido{
  margin-top: 12px;
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
}

/* ==============================
   ADMISION / EVOLUCIONAR 1
============================== */

.page-admision .card,
.page-evolucionar .card{
  max-width: 760px;
  text-align: left;
}

.page-admision h3,
.page-evolucionar h3{
  text-align: center;
  margin-bottom: 22px;
}

.page-admision .btn-primary-compact,
.page-evolucionar .btn-primary-compact{
  width: auto;
  min-width: unset;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.page-admision .field-date-small,
.page-evolucionar .field-date-small{
  max-width: 190px;
}

.autocomplete-wrap{
  position: relative;
}

.autocomplete-list{
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-top: none;
  z-index: 20;
  max-height: 260px;
  overflow-y: auto;
}

.autocomplete-item{
  width: 100%;
  text-align: left;
  background: #fff;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 10px 12px;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 14px;
  cursor: pointer;
}

.autocomplete-item:hover{
  background: #f4f4f1;
}

.paciente-elegido{
  margin-top: 12px;
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
}


@media (max-width: 600px) {
  .logo {
    max-width: 300px;
  }
  .page-consent .card{
    padding: 32px 22px;
  }

  .page-consent h1{
    font-size: 22px;
  }
   .row{
    flex-direction: column;
  }
  .page-evolucionar .card{
    padding: 32px 22px;
  }

  .page-evolucionar .field-date-small{
    max-width: 100%;

    
  }
   .page-admision .card,
  .page-evolucionar .card{
    padding: 32px 22px;
  }

  .page-admision .field-date-small,
  .page-evolucionar .field-date-small{
    max-width: 100%;
  }

  @media (max-width: 600px){

  .viewport{
    padding: 18px;
  }

  .card{
    padding: 28px 22px;
    max-width: 100%;
  }

  h1{
    font-size: 28px;
    line-height: 1.2;
  }

  h2{
    font-size: 13px;
    margin-bottom: 14px;
  }

  .info-list li{
    font-size: 17px;
    line-height: 1.55;
  }

  .contact{
    margin-top: 12px;
  }

  .contact a{
    font-size: 17px;
  }

  .contact img{
    width:20px;
    height:20px;
  }

  .back-link a{
    font-size:16px;
  }

}


/* Pantallas muy chicas */
@





/* Mobile */
@media (max-width: 520px){
  .actions{
    flex-direction: column;
  }

  h1{
    font-size: 34px;
  }
  .page-consent .checkbox-group label{
    flex-direction: column-reverse;
    gap: 6px;
  }

  .page-consent .checkbox-group input{
    align-self: flex-end;
  }
}

@media (max-width: 720px){
  .page-admision .section-header-inline{
    flex-direction: column;
    align-items: stretch;
  }

  .page-admision .field-date-inline{
    width: 100%;
  }


}

@media (max-width: 380px){

  h1{
    font-size:24px;
  }

  .info-list li{
    font-size:16px;
  }

}


