/* Paleta de colores */
:root {
  --colorFondo: #c3f2c3;
  --colorBtn: #033603;
  --colorLetra: #021a02;
  --colorSuave: #d2f8b9cc;
  --colorCent: #ccc;
  --colorVerd: #1a8b0b;
  --colorAzul: #0656b1;
  --colorGris: #333;
  --colorHead: #fff;
  --colorFondo: #c3f2c3;
  --colorBtn: #033603;
  --colorLetra: #021a02;
  --colorSuave: #d2f8b9cc;
  --colorCent: #ccc;
  --colorVerd: #1a8b0b;
  --colorAzul: #0656b1;
  --colorPend: rgb(255, 124, 36);
  --colorRojo: rgb(255, 23, 34);
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  background-color: var(--colorFondo);
  color: var(--colorLetra);
}

/* HEADER */
/* Contenedor header */
header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  /* alinea contenido a la izquierda */
  gap: 30px;
  /* espacio horizontal entre elementos (aprox. 5 espacios visuales) */
  padding: 10px 20px;
  background: var(--colorVerd);
  color: var(--colorHead);
}

/* Opcional: hacer que los textos estén en columna */
header p {
  margin: 0;
  font-size: 0.9rem;
  display: inline-block;
  /* para que se alineen con el reloj en fila */
}

/* Reloj */
#reloj {
  font-weight: bold;
}

header img#logo {
  width: 60px;
  height: auto;
  background-color: var(--colorVerd);
  /* el color verde aparecerá detrás */
}
#pro{
  width: 50%;
  height: 50%;
}
#pros{
  width: 30%;
}

header h1 {
  font-size: 1.8rem;
  flex: 1;
  text-align: center;
}



/* MAIN: 3 columnas exactas */
.contenedor-principal {
  display: flex;
  width: 100vw;
  height: calc(100vh - 100px);
  /* altura menos header/footer aprox */
}

/* Cada columna ocupa 33.3333% exacto */
.seccion {
  flex: 0 0 33.3333%;
  height: 100%;
  padding: 5px;
  margin-bottom: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 100%;
}

/* Diferenciar colores de columnas */
.seccion:nth-child(1) {
  background: var(--colorFondo);
}

.seccion:nth-child(2) {
  background: var(--colorSuave);
}

.seccion:nth-child(3) {
  background: var(--colorCent);
}

/* LOGIN: Agrandar todo visualmente */
.seccion:first-child h2 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.seccion:first-child input,
.seccion:first-child select {
  width: 90%;
  padding: 6px;
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.seccion:first-child button {
  padding: 12px 20px;
  font-size: 1.1rem;
}

/* Botones generales */
.seccion button {
  background: var(--colorBtn);
  color: var(--colorHead);
  border-radius: 8px;
  cursor: pointer;
  margin-top: 0px;
}

.seccion button:hover {
  background: var(--colorVerd);
}

/* Imágenes internas */
.seccion img {
  max-width: 30%;
  height: auto;
  margin-top: 0px;
}

/* Responsive */
@media (max-width: 768px) {
  .contenedor-principal {
    flex-direction: column;
    height: auto;
  }
}

.container {
  width: 90%;
  max-width: 700px;
  margin: 8px auto;
  flex-grow: 1;
}

.containerCabecera {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo svg {
  display: block;
}

.reloj {
  font-weight: bold;
  font-size: 1.8rem;
  min-width: 80px;
  text-align: center;
}

#saludo {
  font-weight: 600;
  font-size: 1rem;
  color: #f0f0f0;
}

h1 {
  margin-bottom: 4px;
  font-weight: 400;
}

form {
  background-color: var(--colorSuave);
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--colorLetra);
}

input[type="text"],
input[type="datetime-local"],
select,
textarea {
  width: 40%;
  padding: 4px;
  margin-bottom: 5px;
  border: 1px solid var(--colorCent);
  border-radius: 4px;
  font-size: 0.5rem;
  font-family: inherit;
  color: var(--colorLetra);
}

textarea {
  resize: vertical;
  min-height: 50px;
}

button {
  width: 60%;
  background-color: var(--colorBtn);
  color: var(--colorFondo);
  border: none;
  padding: 6px 10px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 400;
  font-size: 0.8rem;
  transition: background-color 0.3s ease;
  margin-top: 5px;
 
}

button:hover {
  background-color: var(--colorAzul);
}

footer {
  background-color: var(--colorVerd);
  color: var(--colorHead);
  text-align: center;
  padding: 15px 0;
  font-size: 0.9rem;
  margin-top: auto;
}

#iconoProfesion svg {
  width: 60px;
  height: 60px;
  fill: var(--colorBtn);
}