:root {
    --primary-color: #004080;
    --secondary-color: #003366;
    --accent-color: #e94e77;
    --bg-light: #f5f7fa;
    --text-light: #fff;
    --border-radius: 8px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: 0.3s ease;
    --font-primary: 'Roboto', 'Segoe UI', sans-serif;
}

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

body {
    font-family: var(--font-primary);
    background: var(--bg-light);
    color: #334;
    line-height: 1.6;
    font-size: 16px;
}

/* Header mejorado */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    padding: 2.5rem 1.5rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.1), transparent 70%);
    z-index: 1;
}

header .logo {
    position: relative;
    z-index: 2;
    margin-bottom: 1.5rem;
}

header img {
    height: 150px;
    transition: transform var(--transition);
}

header h1 {
    position: relative;
    z-index: 2;
    font-size: 1.5rem;
    font-weight: 500;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.4;
}



/* Contenedor principal */
.container {
    max-width: 1000px;
    margin: 2.5rem auto;
    padding: 0 1.5rem;
}

/* Tarjeta del formulario */
.form-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform var(--transition);
    position: relative;
    overflow: hidden;
}

.form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--accent-color);
}

/* Grupos de formulario */
.form-group {
    margin-bottom: 1.8rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.7rem;
    font-weight: 500;
    color: #445;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid #dde;
    border-radius: var(--border-radius);
    transition: all var(--transition);
    font-size: 1rem;
    background-color: #fcfcfc;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(233, 78, 119, 0.15);
    background-color: #fff;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* Grid del formulario */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* Botón mejorado */
button {
    display: inline-block;
    background: var(--accent-color);
    color: var(--text-light);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 4px 10px rgba(233, 78, 119, 0.3);
    position: relative;
    overflow: hidden;
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.6s;
}

button:hover {
    background: #d43c66;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(233, 78, 119, 0.4);
}

button:hover::before {
    left: 100%;
}

button:active {
    transform: translateY(-1px);
}

/* Checkbox personalizado */
.form-check {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.form-check-input {
    margin-right: 10px;
    margin-top: 3px;
}

.form-check-label {
    font-size: 0.9rem;
    line-height: 1.4;
}

.form-check-label a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition);
}

.form-check-label a:hover {
    text-decoration: underline;
}

/* Footer mejorado */
footer {
    background: var(--secondary-color);
    color: var(--text-light);
    padding: 3rem 1.5rem;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1000px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    justify-content: space-between;
}

.footer-column img {
    max-height: 100px;
    margin-bottom: 1.2rem;
    filter: brightness(1.1);
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-column h4 {
    margin-bottom: 1.2rem;
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-color);
}

.footer-column a {
    display: block;
    color: var(--text-light);
    text-decoration: none;
    margin-bottom: 0.7rem;
    transition: all var(--transition);
    opacity: 0.9;
}

.footer-column a:hover {
    color: var(--accent-color);
    opacity: 1;
    transform: translateX(3px);
}

.footer-column p {
    margin-bottom: 0.7rem;
    opacity: 0.9;
}

.footer-copy {
    text-align: center;
    margin-top: 3rem;
    font-size: 0.85rem;
    color: #c5d2e1;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Mensajes y errores */
.mensaje-container {
    margin-bottom: 25px;
}

.mensaje {
    padding: 18px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.mensaje.exito {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.mensaje.error {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.error-message {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 6px;
    display: block;
    font-weight: 500;
    transition: all var(--transition);
}

input.error,
select.error,
textarea.error {
    border-color: #dc3545;
    background-color: #fff8f8;
}

/* Toast mejorado con efectos */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 25px;
    border-radius: var(--border-radius);
    color: white;
    font-weight: 500;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
    max-width: 350px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.toast-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    border-left: 5px solid #1e7e34;
}

.toast-error {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
    border-left: 5px solid #bd2130;
}

.toast-info {
    background: linear-gradient(135deg, #17a2b8, #0dcaf0);
    border-left: 5px solid #138496;
}

.toast::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* Media queries para responsive */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-card {
        padding: 1.8rem;
    }
    
    header h1 {
        font-size: 1.3rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-column {
        min-width: 100%;
    }
    
    .toast {
        left: 20px;
        right: 20px;
        max-width: calc(100% - 40px);
    }
}

@media (max-width: 480px) {
    header {
        padding: 2rem 1rem;
    }
    
    .logo img {
        height: 50px;
    }
    
    header h1 {
        font-size: 1.1rem;
    }
    
    .form-card {
        padding: 1.5rem;
    }
    
    button {
        width: 100%;
        padding: 0.9rem;
    }
}