/* css/style.css */

:root {
    --primary-color: #004d99; /* Azul ITLA/INTEC/Profesional */
    --secondary-color: #28a745; /* Verde para acción/éxito */
    --background-color: #f8f9fa;
    --card-bg: #ffffff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--background-color);
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

#vocational-test-container {
    max-width: 900px;
    width: 100%;
    background-color: var(--card-bg);
    border-radius: 15px;
    box-shadow: var(--shadow);
    padding: 40px;
}

.header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 20px;
}

.header h1 {
    color: var(--primary-color);
    font-size: 2.5em;
    margin-bottom: 5px;
}

/* --- Secciones y Entradas --- */
.form-section {
    margin-bottom: 35px;
    padding: 25px;
    border: 1px solid #ddd;
    border-radius: 10px;
}

.form-section h2 {
    color: #333;
    margin-top: 0;
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #555;
}

.input-group input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.input-group input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 5px rgba(0, 77, 153, 0.2);
}

/* --- Preguntas y Opciones --- */
.instruction {
    font-style: italic;
    color: #777;
    margin-bottom: 20px;
}

.question-item {
    margin-bottom: 25px;
    padding: 15px;
    background-color: #f4f6f9;
    border-left: 5px solid var(--primary-color);
    border-radius: 8px;
}

.question-title {
    font-weight: 600;
    color: #222;
    margin-top: 0;
    margin-bottom: 15px;
}

.rating-options {
    display: flex;
    gap: 10px;
}

.radio-label {
    cursor: pointer;
    background-color: var(--card-bg);
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    transition: background-color 0.2s, border-color 0.2s;
    text-align: center;
}

.radio-label input[type="radio"] {
    display: none; /* Ocultar el radio button nativo */
}

.radio-label span {
    font-weight: bold;
}

.radio-label:has(input[type="radio"]:checked) {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
    box-shadow: 0 2px 5px rgba(40, 167, 69, 0.4);
}

.radio-label:hover {
    background-color: #e9ecef;
}

/* --- Botón de Envío --- */
.submit-button {
    width: 100%;
    padding: 15px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
}

.submit-button:hover {
    background-color: #1e7e34;
    transform: translateY(-1px);
}

/* --- Mensajes y Resultados --- */
#result-message {
    text-align: center;
    padding: 15px;
    margin-top: 20px;
    border-radius: 8px;
    font-weight: bold;
}

#result-message.success {
    background-color: #d4edda;
    color: #155724;
}

#result-display {
    margin-top: 30px;
    padding: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    background-color: #e6f0ff;
}

#result-display h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    border-bottom: 2px dashed #ccc; /* Separator for clarity */
    padding-bottom: 10px;
}

/* New/Improved Result Card Styles */
.result-card {
    background-color: var(--card-bg);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.result-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 77, 153, 0.15); /* Primary color shadow on hover */
}

.result-card h4 {
    color: var(--secondary-color); /* Green for main title */
    font-size: 1.3em;
    margin-top: 0;
    margin-bottom: 10px;
    border-left: 4px solid var(--primary-color);
    padding-left: 10px;
}

.institution-list {
    font-style: italic;
    color: #333;
    font-weight: normal;
}

/* Specific styling for the PDF/Email section */
#pdf-email-section {
    margin-top: 30px;
    padding: 20px;
    border: 1px dashed var(--secondary-color);
    border-radius: 10px;
    text-align: center;
    background-color: #fff;
}

.pdf-button {
    background-color: #dc3545; /* Red for PDF Download */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
    margin-top: 10px;
    display: inline-block;
}

.pdf-button:hover {
    background-color: #c82333;
}

.hidden {
    display: none;
}


/* ... (El CSS existente se mantiene, aquí solo se añade la sección de botones) ... */

/* --- Sección de Botones de Acción (Nuevo) --- */
#action-buttons-section {
    margin-top: 35px;
    padding: 25px;
    border: 1px solid #ddd;
    border-radius: 10px;
    text-align: center;
    background-color: #f7f7f7;
}

#action-buttons-section h4 {
    color: var(--secondary-color);
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.4em;
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap; /* Para que se adapten a móviles */
    margin-top: 20px;
}

.action-button {
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1em;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 200px;
    justify-content: center;
}

.pdf-button {
    background-color: #dc3545; /* Rojo PDF */
    color: white;
}

.pdf-button:hover {
    background-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.whatsapp-button {
    background-color: #25d366; /* Verde WhatsApp */
    color: white;
}

.whatsapp-button:hover {
    background-color: #1fad55;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 211, 102, 0.3);
}

.email-button {
    background-color: var(--primary-color); /* Azul principal */
    color: white;
}

.email-button:hover {
    background-color: #003366;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 77, 153, 0.3);
}

.share-link-info {
    margin-top: 25px;
    font-size: 0.9em;
    color: #666;
    word-break: break-all;
}