/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Estilos generales */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
}

header {
    background-color: #004D40;
    color: white;
    padding: 20px 0;
    text-align: center;
}

header h1 {
    font-size: 2.5em;
}

/* Contenedor principal */
.main-container {
    display: flex;
}

/* Menú lateral */
.sidebar {
    width: 200px;
    background-color: #00796B;
    padding: 20px;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    margin-bottom: 10px;
}

.sidebar ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.1em;
}

.sidebar ul li a:hover {
    color: #81C784;
}

/* Secciones */
.content {
    flex: 1;
    padding: 20px;
}

h2 {
    color: #004D40;
    margin-bottom: 20px;
}

.submenu {
    margin-bottom: 20px;
}

.submenu select {
    padding: 10px;
    width: 100%;
    font-size: 1.1em;
}

.tramite-form {
    display: none;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.tramite-form h3 {
    color: #004D40;
    margin-bottom: 10px;
}

form label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

form input[type="text"],
form input[type="email"],
form input[type="file"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

form button {
    background-color: #00796B;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
}

form button:hover {
    background-color: #004D40;
}

/* Footer */
footer {
    background-color: #004D40;
    color: white;
    padding: 20px 0;
    text-align: center;
}

footer p {
    margin: 5px 0;
}

/* Contenedor del formulario con tres columnas */
.form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

/* Estilos para cada columna de beneficiario */
.beneficiario {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
}

/* Centrar el formulario en la página */
.tramite-form {
    max-width: 1200px;
    margin: 0 auto;
}


@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}


.consulta-form {
    display: block;             /* mostrar siempre */
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0,0,0,0.1);
    margin: 0 auto 30px;        /* centrar y separar */
    max-width: 800px;           /* ajusta a tu gusto */
}

.consulta-form h3 {
    color: #004D40;
    margin-bottom: 10px;
}

.consulta-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

.consulta-form input[type="text"] {
    width: auto; /* o 100% si lo prefieres */
    padding: 10px;
    margin-bottom: 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

.consulta-form button {
    background-color: #00796B;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
}

.consulta-form button:hover {
    background-color: #004D40;
}

.result-table {
  width: 100%;
  border-collapse: collapse;      /* junta los bordes en un sólo trazo */
  border: 2px solid #004D40;      /* borde general de la tabla */
}

.result-table th,
.result-table td {
  border: 1px solid #004D40;      /* líneas internas */
  padding: 8px;
  text-align: left;
}

/* Opcional: destacar la fila de encabezados */
.result-table th {
  background-color: #00796B;
  color: white;
}