/* Reset y estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

/* Header */
header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 2rem 1rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin: 1rem 0;
    font-size: 2.5rem;
}

header p {
    font-style: italic;
    opacity: 0.9;
}

/* Menú de navegación */
.menu {
    display: flex;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 0.5rem;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.menu a {
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    margin: 0 0.25rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.menu a:hover, .menu a.active {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Contenido principal */
main {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

main h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #2a5298;
    font-size: 1.8rem;
}

/* Formulario */
.contenedor1 {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.btn-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-control {
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #2a5298;
    box-shadow: 0 0 0 2px rgba(42, 82, 152, 0.2);
}

.form-control[disabled] {
    background-color: #f9f9f9;
    color: #555;
}

#buscarDOC {
    background-color: #2a5298;
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

#buscarDOC:hover {
    background-color: #1e3c72;
    transform: translateY(-2px);
}

/* Footer */
footer {
    text-align: center;
    padding: 1.5rem;
    background-color: #2a5298;
    color: white;
    margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .menu {
        flex-wrap: wrap;
    }
    
    .menu a {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .contenedor1 {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .menu {
        border-radius: 10px;
    }
    
    .menu a {
        margin: 0.1rem;
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    header {
        padding: 1.5rem 1rem;
    }
}