/* =============================================
   FORMULARIO - SEGUIMIENTO A GRADUADOS
   Instituto Superior Tecnológico Babahoyo
   ============================================= */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f0f4f8;
    color: #333;
    min-height: 100vh;
    padding: 30px 15px;
}

.contenedor {
    max-width: 820px;
    margin: 0 auto;
}

/* Cabecera institucional */
.cabecera {
    background: #1a3a5c;
    color: white;
    padding: 28px 35px;
    border-radius: 10px 10px 0 0;
    text-align: center;
}

.cabecera h1 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.cabecera h2 {
    font-size: 1.1rem;
    font-weight: 400;
    opacity: 0.88;
    margin-bottom: 4px;
}

.cabecera p {
    font-size: 0.85rem;
    opacity: 0.75;
    margin-top: 6px;
}

/* Introducción */
.introduccion {
    background: #e8f0fe;
    border-left: 5px solid #1a3a5c;
    padding: 16px 20px;
    font-size: 0.92rem;
    line-height: 1.6;
    color: #2c3e50;
}

/* Formulario principal */
form {
    background: white;
    padding: 0;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Secciones */
.seccion {
    padding: 28px 35px;
    border-bottom: 1px solid #e8ecf0;
}

.seccion:last-of-type {
    border-bottom: none;
}

.seccion-titulo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.seccion-numero {
    background: #1a3a5c;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    flex-shrink: 0;
}

.seccion-titulo h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a3a5c;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Grupos de campos */
.campo-grupo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

.campo-grupo.uno {
    grid-template-columns: 1fr;
}

.campo-grupo.tres {
    grid-template-columns: 1fr 1fr 1fr;
}

.campo {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #444;
}

label .requerido {
    color: #c0392b;
    margin-left: 3px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    padding: 10px 14px;
    border: 1.5px solid #dce1e7;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: inherit;
    color: #333;
    background: #fafbfc;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #1a3a5c;
    box-shadow: 0 0 0 3px rgba(26,58,92,0.1);
    background: white;
}

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

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23555' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

/* Escala de valoración */
.escala-wrapper {
    margin-top: 4px;
}

.escala-etiquetas {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: #888;
    margin-bottom: 6px;
}

.escala-opciones {
    display: flex;
    gap: 10px;
    align-items: center;
}

.escala-opciones label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 500;
    color: #555;
    flex: 1;
    text-align: center;
}

.escala-opciones input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #1a3a5c;
}

/* Radio y checkbox normales */
.opciones-radio,
.opciones-check {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 4px;
}

.opciones-radio label,
.opciones-check label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: 400;
    cursor: pointer;
    font-size: 0.9rem;
}

.opciones-radio input[type="radio"],
.opciones-check input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: #1a3a5c;
    cursor: pointer;
}

/* Nota condicional */
.nota-condicional {
    background: #f8f9fa;
    border: 1px dashed #bdc3c7;
    border-radius: 6px;
    padding: 14px 18px;
    margin-top: 10px;
    display: none;
}

.nota-condicional.visible {
    display: block;
}

/* Botón enviar */
.seccion-envio {
    padding: 28px 35px;
    background: #f8f9fa;
    text-align: center;
}

.btn-enviar {
    background: #1a3a5c;
    color: white;
    border: none;
    padding: 14px 50px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: background 0.2s, transform 0.1s;
}

.btn-enviar:hover {
    background: #24527a;
    transform: translateY(-1px);
}

.btn-enviar:active {
    transform: translateY(0);
}

/* Mensajes de respuesta */
.mensaje {
    padding: 18px 24px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
}

.mensaje.exito {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.mensaje.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Footer */
.pie {
    text-align: center;
    margin-top: 20px;
    font-size: 0.8rem;
    color: #888;
}

/* Responsive */
@media (max-width: 600px) {
    .cabecera {
        padding: 20px;
    }

    .cabecera h1 {
        font-size: 1.1rem;
    }

    .seccion {
        padding: 20px;
    }

    .campo-grupo,
    .campo-grupo.tres {
        grid-template-columns: 1fr;
    }

    .seccion-envio {
        padding: 20px;
    }
}
