/* =================== RESET =================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f5f6fa;
}

/* =================== HEADER =================== */
.header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  background-color: #2c3e50;
  color: white;
  padding: 10px 20px;
}

.header .logo img {
  width: 120px;
  height: auto;
  max-width: 40vw;
}

.header .usuario {
  font-size: 22px;
  margin: 5px 0;
}

.header .atras  {
  background-color: #e74c3c;
  color: white;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 4px;
  margin: 5px 0;
}

/* =================== SECCIÓN PRINCIPAL =================== */
.botones-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 25px;
  gap: 20px;
  width: 100%;
}

/* Contenedor de botones */
.botones-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  width: 100%;
  max-width: 900px;
}

/* Botones chatos */
.boton-procedural {
  flex: 1 1 150px;
  max-width: 220px;
  min-width: 130px;
  height: 45px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  transition: transform 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.boton-procedural:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
}

/* Contenedor dinámico */
#contenido-dinamico {
  width: 90%;
  max-width: 1500px;
  min-height: 400px;
  background-color: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  overflow-y: auto;
  transition: width 0.3s ease, min-height 0.3s ease;
  margin: 0 auto;
}

/* =================== RESPONSIVE PRINCIPAL =================== */
@media (max-width: 768px) {
  .boton-procedural {
    flex: 1 1 48%;
    max-width: 48%;
    height: 45px;
    font-size: 16px;
  }

  #contenido-dinamico {
    width: 90%;
    min-height: 350px;
  }
}

@media (max-width: 480px) {
  .botones-container {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .boton-procedural {
    flex: 1 1 90%;
    max-width: 90%;
    min-width: 120px;
    height: 50px;
    font-size: 15px;
  }

  #contenido-dinamico {
    width: 95%;
    min-height: 300px;  
    padding: 15px;
  }

  .header {
    flex-direction: column;
    text-align: center;
  }

  .header .usuario {
    font-size: 18px;
  }
}

/* =================== CONTROL INFORMÁTICO =================== */
.infEfi, .infColores {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  margin: 10px auto;
  table-layout: fixed;
}

.infEfi {
  border: 1px solid #ccc;
  min-width: 700px;
}

.infEfi-Cab {
  background-color: #f0f0f0;
  border: 1px solid black;
  font-size: 28px;
  font-weight: 600;
  padding: 5px;
}

.infEfi-Cab-linea {
  border: 1px solid white;
  border-right: 1px solid black;
  border-bottom: 1px solid black;
  font-size: 28px;
}

.infEfi-row {
  font-size: 30px;
}

.infEfi-cell {
  border: 1px solid black;
  font-size: 24px;
  padding: 8px;
}

.infEfi-cell-Col {
  border: none;
  padding: 10px;
}

/* Lateral */
#EFlateral {
  font-weight: bold;
  font-size: 26px;
  writing-mode: vertical-lr;
  transform: rotate(180deg);
  background-color: #DAE9F8;
  color: #000;
}

/* Colores de estado */
.infEfi-cell.ok {
  background-color: #9EFFA9;
}

.infEfi-cell.error {
  background-color: #FF5C5C;
}

/* Leyenda */
table.infColores {
  border: 1px solid #ccc;
  text-align: center;
  margin: 20px auto;
  width: 80%;
}

.infColores-Cab {
  background-color: #f0f0f0;
  border: 1px solid black;
  padding: 6px;
  font-size: 20px;
  font-weight: 600;
}

.infColores-Cell {
  border: 1px solid black;
  padding: 12px;
  font-size: 18px;
}

/* =================== RESPONSIVE =================== */

/* Tablets */
@media (max-width: 900px) {
  body {
    font-size: 90%;
  }

  .infEfi {
    font-size: 16px;
    min-width: 100%;
    overflow-x: auto;
  }

  .infEfi-Cab,
  .infEfi-cell {
    font-size: 20px;
    padding: 6px;
  }

  .infEfi-row {
    font-size: 22px;
  }

  #EFlateral {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 22px;
    background-color: #d6e9f5;
  }

  .boton-procedural {
    flex: 1 1 48%;
    max-width: 48%;
    height: 45px;
    font-size: 15px;
  }

  #contenido-dinamico {
    width: 95%;
    min-height: 350px;
  }
}

/* Móviles */
@media (max-width: 600px) {
  .header {
    flex-direction: column;
    text-align: center;
  }

  .header .usuario {
    font-size: 18px;
  }

  .botones-container {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .boton-procedural {
    flex: 1 1 90%;
    max-width: 90%;
    min-width: 120px;
    height: 50px;
    font-size: 15px;
  }

  #contenido-dinamico {
    width: 95%;
    padding: 15px;
  }

  /* Tablas se apilan */
  .infEfi, .infColores {
    display: block;
    overflow-x: auto;
    width: 100%;
    font-size: 16px;
  }

  .infEfi-Cab, .infEfi-cell {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px;
  }

  .infEfi-row {
    display: block;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
  }

  .infEfi-cell {
    border: none;
    border-bottom: 1px solid #eee;
  }

  #EFlateral {
    display: block;
    font-size: 20px;
    background-color: #EAF3FF;
    padding: 6px;
    text-align: center;
  }
}
/* =================== Denuncia =================== */
/* Reset básico */
* {
    box-sizing: border-box;
}

/* Contenedor central */
.contenedor {
    width: 100%;
    max-width: 800px;   /* límite en pantallas grandes */
    margin: 0 auto;
    padding: 20px;
}
.asunto-texto{
  width: 100%;
  padding: 12px;
    font-size: 16px;
}
/* Textarea responsive */
.denuncia-texto {
    width: 100%;
    min-height: 200px;
    padding: 12px;
    font-size: 16px;
    resize: vertical; /* permite cambiar altura */
}

/* Botón */
.btn-enviar {
    width: 100%;
    margin-top: 15px;
    margin-bottom: 15px;
    padding: 12px;
    font-size: 16px;
    cursor: pointer;
}

/* Ajustes para pantallas pequeñas */
@media (max-width: 600px) {
    h1 {
        font-size: 22px;
        text-align: center;
    }

    .denuncia-texto {
        min-height: 150px;
    }
}
