/* estilos.css */
:root {
    --fcyt-blue: #0b6bb5;
    --fcyt-blue-dark: #095a9e;
    --fcyt-bg: #f5f8fa;
    --text-main: #1a2d42;
    --text-muted: #5a6b7d;
    --white: #ffffff;
    --error: #e53e3e;
    --success: #38a169;
    --shadow: 0 10px 25px rgba(11, 107, 181, 0.1);
    --radius: 12px;
}

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--fcyt-bg);
    color: var(--text-main);
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 40px auto;
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 3px solid var(--fcyt-blue);
    padding-bottom: 20px;
}

header h1 {
    color: var(--fcyt-blue);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.description {
    font-size: 0.95rem;
    color: var(--text-muted);
    background: #f0f7ff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.propuesta-info {
    border: 1px solid #e1e8ed;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    background: #fdfdfd;
}

.propuesta-info h2 {
    font-size: 1.2rem;
    color: var(--fcyt-blue-dark);
    margin-bottom: 10px;
}

.propuesta-details p {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.propuesta-details strong {
    color: var(--fcyt-blue);
}

form {
    display: grid;
    gap: 20px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label {
    font-weight: 600;
    font-size: 0.9rem;
}

input, select {
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--fcyt-blue);
    box-shadow: 0 0 0 3px rgba(11, 107, 181, 0.1);
}

.btn-submit {
    background: var(--fcyt-blue);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.2s, transform 0.1s;
}

.btn-submit:hover {
    background: var(--fcyt-blue-dark);
}

.btn-submit:active {
    transform: scale(0.98);
}

.msg {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
}

.msg-error { background: #fff5f5; color: var(--error); border: 1px solid #feb2b2; }
.msg-success { background: #f0fff4; color: var(--success); border: 1px solid #9ae6b4; }
.msg-full { background: #fffaf0; color: #dd6b20; border: 1px solid #fbd38d; font-size: 1.2rem; }

footer {
    text-align: center;
    margin-top: 40px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Admin Styles */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #edf2f7;
    font-size: 0.85rem;
}

th {
    background: var(--fcyt-bg);
    color: var(--fcyt-blue);
    font-weight: 700;
}

.btn-delete {
    color: var(--error);
    text-decoration: none;
    font-weight: 600;
}

.btn-export {
    display: inline-block;
    background: #2d3748;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .container {
        padding: 20px;
        margin: 10px;
    }
}
