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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: #0010ef;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 1.5rem;
}

header h1 a {
    color: white;
    text-decoration: none;
}

header nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

header nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

header nav a:hover {
    background-color: rgba(255,255,255,0.2);
}

header nav span {
    color: rgba(255,255,255,0.9);
}

/* Main */
main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 3rem;
}

/* Auth */
.auth-container {
    max-width: 500px;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.auth-container h2 {
    margin-bottom: 1.5rem;
    color: #0010ef;
}

.auth-form {
    margin-top: 1.5rem;
}

.auth-link {
    margin-top: 1rem;
    text-align: center;
}

.auth-link a {
    color: #0010ef;
    text-decoration: none;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0010ef;
    box-shadow: 0 0 0 3px rgba(0,16,239,0.1);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background-color: #0010ef;
    color: white;
}

.btn-primary:hover {
    background-color: #0015ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,16,239,0.3);
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-link {
    background: none;
    color: #0010ef;
    text-decoration: underline;
    padding: 0.5rem;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

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

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Filtros */
.filtros {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filtros-form {
    display: flex;
    gap: 1rem;
    align-items: end;
    flex-wrap: wrap;
}

.filtros-form .form-group {
    flex: 1;
    min-width: 200px;
    margin-bottom: 0;
}

/* Ofertas Grid */
.ofertas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.oferta-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.oferta-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.oferta-card h3 {
    margin-bottom: 1rem;
    color: #0010ef;
}

.oferta-card h3 a {
    color: inherit;
    text-decoration: none;
}

.oferta-card h3 a:hover {
    text-decoration: underline;
}

.oferta-info {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.oferta-empresa {
    font-weight: 500;
    color: #666;
    margin-bottom: 0.75rem;
}

.oferta-descripcion {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.oferta-detalles {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.salario {
    font-weight: 500;
    color: #0010ef;
    font-size: 0.95rem;
    line-height: 1.4;
}

.tipo-contrato {
    color: #666;
    font-size: 0.9rem;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.badge.sector {
    background-color: #e3f2fd;
    color: #0010ef;
}

.badge.ubicacion {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

/* Oferta Detalle */
.oferta-detalle {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.oferta-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #eee;
}

.oferta-header h2 {
    color: #0010ef;
    margin-bottom: 1rem;
}

.oferta-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.oferta-empresa {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.oferta-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.info-item {
    color: #555;
}

.info-item strong {
    color: #333;
    display: block;
    margin-bottom: 0.25rem;
}

.oferta-descripcion-completa {
    margin-bottom: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.oferta-descripcion-completa h3 {
    margin-bottom: 1rem;
    color: #333;
}

.oferta-descripcion-completa p {
    line-height: 1.8;
    color: #555;
    white-space: pre-wrap;
}

/* Aplicar Form */
.aplicar-form-container {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eee;
}

.aplicar-form-container h3 {
    margin-bottom: 1rem;
    color: #0010ef;
}

/* Aplicaciones */
.aplicaciones-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.aplicacion-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.aplicacion-card h3 {
    margin-bottom: 1rem;
    color: #0010ef;
}

.aplicacion-card h3 a {
    color: inherit;
    text-decoration: none;
}

.aplicacion-card h3 a:hover {
    text-decoration: underline;
}

.aplicacion-info {
    margin-bottom: 1rem;
}

.aplicacion-info p {
    margin-bottom: 0.5rem;
    color: #555;
}

.estado {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.estado-pendiente {
    background-color: #fff3cd;
    color: #856404;
}

.estado-revisando {
    background-color: #d1ecf1;
    color: #0c5460;
}

.estado-aceptada {
    background-color: #d4edda;
    color: #155724;
}

.estado-rechazada {
    background-color: #f8d7da;
    color: #721c24;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 8px;
    color: #666;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    header nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .filtros-form {
        flex-direction: column;
    }
    
    .filtros-form .form-group {
        width: 100%;
    }
    
    .ofertas-grid {
        grid-template-columns: 1fr;
    }
    
    .oferta-info-grid {
        grid-template-columns: 1fr;
    }
}

